joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9f80
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x4aa181
cmp dword [esp + 0x2f8], 0
je 0x4aa181
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0048f0a0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x4bca58
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4aa148
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4aa13b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4aa109
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aa0fe
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0048f0a0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.004a9e70
add esp, 0x14
test eax, eax
je 0x4aa0fe
cmp byte [esp + 0x24], 0
je 0x4aa0c2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x4aa0fe
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x4aa0f1
mov cl, byte [esi + eax]
test cl, cl
je 0x4aa0f1
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4aa0d6
jmp 0x4aa0f5
test edx, edx
jne 0x4aa0f6
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4aa020
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x4aa181
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.004a9490
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0048ac3c
add esp, 0x2ec
ret
Function at 0x4aa520
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x4aa69d
cmp ebp, 0x20
jb 0x4aa69d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.0048f0a0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4bce1c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4aa69d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aa5b0
sub eax, edx
cmp eax, 0x40
jne 0x4aa69d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x4aa5ee
mov cl, byte [esi + eax]
test cl, cl
je 0x4aa5ee
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4aa5d6
jmp 0x4aa5f2
test edx, edx
jne 0x4aa5f3
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x4aa62b
mov cl, byte [edx + eax]
test cl, cl
je 0x4aa62b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x4aa610
jmp 0x4aa62f
test esi, esi
jne 0x4aa630
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.0048f0a0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.004a95f0
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x4aa69d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.004a9490
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0048ac3c
add esp, 0x50c
ret
Function at 0x4aa6c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x290
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0048f0a0
push 0x80
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.004a95f0
lea eax, [esp + 0x1a0]
mov edx, edi
mov ecx, eax
add esp, 0x10
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x4aa72b
mov cl, byte [edx + eax]
test cl, cl
je 0x4aa72b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x4aa710
jmp 0x4aa72f
test esi, esi
jne 0x4aa730
dec eax
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x198]
push eax
call fcn.004a9500
push 0xff
lea ecx, [esp + 0x95]
push 0
push ecx
mov dword [esp + 0x18], 1
mov byte [esp + 0x9c], 0
call fcn.0048f0a0
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4bce1c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], pe_nt_image_headers32
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x4aa80b
mov ecx, edi
lea eax, [esp + 0x90]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4aa7d3
test dl, dl
je 0x4aa7cf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4aa7d3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4aa7b3
xor eax, eax
jmp 0x4aa7d8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4aa80b
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aa7e6
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [esp + 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aa815
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
push 1
push 0x4bce1c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x294]
pop esi
pop ebx
xor ecx, esp
call fcn.0048ac3c
add esp, 0x290
ret
Function at 0x584eb2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
and dword [esp + 4], 0
xor eax, eax
push ebx
push esi
push edi
mov ebx, edx
lea edi, [esp + 0x1c]
mov edx, ecx
mov esi, 0x41f6d0
push 9
pop ecx
rep stosd dword es:[edi], eax
or dword [esp + 0x3c], 0xffffffff
xor edi, edi
or dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
cmp dword [0x41f6d0], eax
je 0x584f35
mov eax, dword [edx]
lea ecx, [esp + 0x10]
push ecx
push edi
push 0x10
push edi
push dword [esi]
push edx
call dword [eax + 0x10]
test eax, eax
jne 0x584f2a
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
mov edx, esi
call fcn.0058458e
test eax, eax
jne 0x584f95
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x18]
add esi, 0x10
cmp dword [esi], edi
jne 0x584ef3
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov eax, dword [ebx]
push ecx
push 2
push dword [esp + 0x30]
push esi
push ebx
call dword [eax + 0x34]
test eax, eax
jne 0x584f95
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
add edx, 4
test esi, esi
je 0x584f78
mov eax, dword [edx]
xor eax, dword [ecx]
movzx eax, ax
xor eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 0x10]
sub esi, 1
jne 0x584f5e
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x1c], edi
je 0x584f8a
mov eax, dword [ebx]
push edi
push ecx
push dword [esp + 0x24]
push ebx
call dword [eax + 0x20]
lea edx, [esp + 0x1c]
mov ecx, ebx
call fcn.00584d48
push dword [esp + 0x14]
call dword [0x41f220]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x584fad
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x1c]
call fcn.00583fd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5858e5
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x5858f9
cmp dl, 0xcc
jne 0x585943
inc eax
cmp eax, 0xffffffff
jle 0x5858ec
mov al, byte [ecx]
cmp al, 0x8b
je 0x585909
cmp al, 0x89
jne 0x585943
cmp byte [ecx + 1], 0xff
jne 0x585943
mov eax, 0x40189c
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x436a10], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [fcn.0042a014]
push eax
call dword [0x42a034]
mov al, 1
ret 0xc
xor al, al
jmp 0x585940
Function at 0x42e002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x2526249
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x21b54478
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x3002ac0d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3002ac27
test al, 0x10
je 0x3002ac27
xor eax, eax
inc eax
jmp 0x3002ac29
xor eax, eax
pop ebp
ret 4

Function at 0x3002bbf6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call dword [sym.imp.MSVCR80.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.300305d2
leave
ret

Function at 0x3002f383
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x3006bb84
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x3002f3d4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x3006bb88], eax
mov ax, word [ebp - 0x30]
mov word [0x3006bb8c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x3006bb90], eax
mov eax, dword [ebp - 0x40]
mov dword [0x3006bb94], eax
mov eax, esi
pop esi
leave
ret

Function at 0x300305d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3001b290]
jne 0x30031279
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3006bce0], eax
mov dword [0x3006bcdc], ecx
mov dword [0x3006bcd8], edx
mov dword [0x3006bcd4], ebx
mov dword [0x3006bcd0], esi
mov dword [0x3006bccc], edi
mov word [0x3006bcf8], ss
mov word [0x3006bcec], cs
mov word [0x3006bcc8], ds
mov word [0x3006bcc4], es
mov word [0x3006bcc0], fs
mov word [0x3006bcbc], gs
pushfd
pop dword [0x3006bcf0]
mov eax, dword [ebp]
mov dword [0x3006bce4], eax
mov eax, dword [ebp + 4]
mov dword [0x3006bce8], eax
lea eax, [ebp + 8]
mov dword [0x3006bcf4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3006bc30], 0x10001
mov eax, dword [0x3006bce8]
mov dword [0x3006bbe4], eax
mov dword [0x3006bbd8], 0xc0000409
mov dword [0x3006bbdc], 1
mov eax, dword [0x3001b290]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300671ac]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x3006bc28], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x3001b568
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3006bc28], 0
jne 0x30031369
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x300305df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x3000da20
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30030637
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x3000da18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30030637
mov al, 1
jmp 0x30030639
xor al, al
leave
ret 8
Function at 0x30031694
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x300316c2
xor eax, eax
jmp 0x300316ea
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x300316df
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x300316ef
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 4

Function at 0x300317a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
je 0x300317f1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp eax, edi
je 0x300317dc
cmp eax, esi
jbe 0x30031801
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0x30303030
call fcn.3001d0f8
xor eax, eax
jmp 0x30031862
push 1
push 0x1c
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x300317e2
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x3001b648
call fcn.300273d2
cmp dword [ebp + 8], edi
jne 0x30031830
push 0x3001b670
lea eax, [ebp - 0x20c]
push eax
call fcn.30031709
test eax, eax
je 0x30031830
xor edi, edi
inc edi
push 0x3001b684
lea eax, [ebp - 0x20c]
push eax
call fcn.30031709
test eax, eax
je 0x30031848
or edi, 2
push 0x3001b698
lea eax, [ebp - 0x20c]
push eax
call fcn.30031709
test eax, eax
je 0x30031860
or edi, 4
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.300305d2
leave
ret 4

Function at 0x30031896
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x300318fe
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x300318f5
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.300305d2
leave
ret
Function at 0x10001060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001078
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100010aa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100010a6
cmp esi, eax
jae 0x100010aa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001098
cmp esi, eax
jb 0x100010b0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x100010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x1000c3fc
call fcn.10007ea5
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10001174
test esi, esi
jne 0x10001174
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x10001158
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001152
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001152
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x10001141
cmp esi, eax
jae 0x10001145
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001133
cmp esi, eax
jb 0x10001149
xor eax, eax
jmp 0x10001152
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x1000117d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x1000c3fc
call fcn.10007ea5
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x100010e5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001730
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x1000c018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0xa38], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100017ac
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x804]
push 0x10009438
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000747e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0xa30]
push eax
push esi
mov dword [ebp - 0xa30], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1000181c
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x802]
push edx
mov word [ebp - 0x804], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x804]
push 0x10009484
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000747e
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push edi
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
lea ebx, [ebx]
lea ecx, [ebp - 0xa0c]
push 0x100092ac
push ecx
call edi
add esp, 8
test eax, eax
jne 0x1000186a
lea edx, [ebp - 0xa34]
mov dword [ebp - 0xa34], eax
mov eax, dword [ebp - 0xa28]
push edx
push eax
call ebx
test eax, eax
je 0x1000186a
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0xa34], ecx
je 0x1000189e
lea edx, [ebp - 0xa30]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10001830
mov edi, dword [ebp - 0xa38]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.1000747e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0xa28]
jmp 0x10001882
Function at 0x10003520
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100083d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x1000c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x28]
cmp esi, dword [eax + 0x2c]
je 0x10003628
jmp 0x10003560
mov eax, dword [esi + 0xc]
mov ecx, 0x10009660
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000358e
test dx, dx
je 0x1000358a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000358e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10003568
xor eax, eax
jmp 0x10003593
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x10003619
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ebx, 0x1000966c
call fcn.100058b0
lea edx, [esi + 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
mov ebx, eax
mov dword [ebp - 4], 0
call fcn.10005800
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100035f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10003619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0xc]
add esi, 0x1c
cmp esi, dword [ecx + 0x2c]
jne 0x10003560
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8