joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ead
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x40c4c0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x40ebc8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x40703d
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40ebe0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x40703d
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x406f0c
xor eax, eax
jmp 0x407051
test al, 0x20
je 0x406f1d
push 2
push edi
push edi
push ecx
call fcn.0040892c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x406fd9
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x407011
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x406f73
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406f64
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x406f49
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x406fb3
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x406fbc
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x406f3d
jmp 0x406fbe
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x407038
cmp dword [ebp + 8], edi
je 0x407011
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x407006
mov dword [0x40d780], eax
jmp 0x407044
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x406ffb
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x406fbe
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x406fbe
push dword [ebp + 8]
call fcn.00408817
pop ecx
jmp 0x40704e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407026
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x406f05
mov dword [0x40d77c], 0x1c
mov dword [0x40d780], edi
jmp 0x40704e
sub eax, dword [ebp - 0x14]
jmp 0x407051
and dword [0x40d780], 0
mov dword [0x40d77c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0040721d
leave
ret
Function at 0x407b6c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40d928], ebx
push esi
push edi
jne 0x407bec
push 0x40acf8
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407c27
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x40acec
push edi
call esi
test eax, eax
mov dword [0x40d928], eax
je 0x407c27
push 0x40acdc
push edi
call esi
push 0x40acc8
push edi
mov dword [0x40d92c], eax
call esi
cmp dword [0x40d788], 2
mov dword [0x40d930], eax
jne 0x407bec
push 0x40acac
push edi
call esi
test eax, eax
mov dword [0x40d938], eax
je 0x407bec
push 0x40ac94
push edi
call esi
mov dword [0x40d934], eax
mov eax, dword [0x40d934]
test eax, eax
je 0x407c31
call eax
test eax, eax
je 0x407c18
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40d938]
test eax, eax
je 0x407c18
test byte [ebp - 8], 1
jne 0x407c31
cmp dword [0x40d794], 4
jb 0x407c2b
or byte [ebp + 0x12], 0x20
jmp 0x407c50
xor eax, eax
jmp 0x407c60
or byte [ebp + 0x12], 4
jmp 0x407c50
mov eax, dword [0x40d92c]
test eax, eax
je 0x407c50
call eax
mov ebx, eax
test ebx, ebx
je 0x407c50
mov eax, dword [0x40d930]
test eax, eax
je 0x407c50
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40d928]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4091e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x1c]
or eax, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x34], 0
jne 0x4091fe
mov ecx, dword [sym.imp.kernel32.dll_CreateProcessA]
mov dword [ebp + 0x34], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x34]
test eax, eax
jne 0x409231
xor eax, eax
jmp 0x4092a9
cmp dword [ebp + 0x30], 0
je 0x40924b
mov eax, dword [ebp + 0x30]
push eax
call fcn.00406a10
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x409252
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x30]
push edx
call fcn.004091c0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004092b0
add esp, 0x14
test eax, eax
jne 0x409278
xor eax, eax
jmp 0x4092a9
cmp dword [ebp + 0x2c], 0
je 0x409290
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x2c]
push eax
call fcn.004020a0
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
and ecx, 4
test ecx, ecx
jne 0x4092a4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x10001b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x10001b1a
xor esi, esi
jmp 0x10001b48
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.10098080
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x10001b85
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10001b70
call esi
mov esi, eax
jmp 0x10001c1a
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10001c1a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x10001bb6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x10001bc9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10001c11
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x10001bcd
jmp 0x10001b98
call esi
jmp 0x10001c0f
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x10001c03
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.10098080
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.10097840
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.10001c81
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10002690
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x10180de4
call fcn.10098054
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.10002652
mov edi, eax
cmp edi, esi
je 0x100026da
cmp dword [ebp - 0x10], esi
je 0x100026d3
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10002777
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], pe_nt_image_headers32
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1000274b
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.10002690
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x10002738
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], pe_nt_image_headers32
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x100026fd
cmp dword [ebp - 0x10], esi
je 0x10002746
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x10002777
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1000275e
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x10002775
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10002788
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.10098080
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.10001dda
xor edi, edi
cmp eax, edi
jl 0x10002940
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.1000294d
pop ecx
test eax, eax
pop ecx
jne 0x100027d3
mov eax, 0x80020009
jmp 0x10002940
mov ecx, esi
call fcn.10001db2
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.10001dda
cmp eax, edi
jl 0x10002940
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x10002908
sub eax, 9
je 0x1000286d
dec eax
dec eax
jne 0x1000292f
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x10002818
xor ebx, ebx
jmp 0x1000284d
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.10098080
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x10002920
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x100028a9
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.10098080
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.10098520
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x100028b3
mov eax, 0x80004005
jmp 0x10002940
cmp dword [ebp - 8], 0
jle 0x100028ed
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.100029d4
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x100028b9
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x1000292f
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.10001dda
cmp eax, edi
jl 0x10002940
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10005bbe
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push 1
push ebx
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsA
xor eax, eax
cmp dword [ebp - 4], ebx
jbe 0x10005c08
mov edx, dword [ebp - 0xc]
lea ecx, [edx + 8]
cmp dword [ecx], ebx
je 0x10005bfd
inc eax
add ecx, 0xc
cmp eax, dword [ebp - 4]
jb 0x10005bee
jmp 0x10005c08
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4]
cmp eax, 0xffffffff
jne 0x10005c4b
push edi
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0xff
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.100011a1
mov eax, dword [ebp + 8]
pop edi
jmp 0x10005c59
push eax
push dword [ebp + 8]
call fcn.10005c5c
mov eax, dword [ebp + 8]
pop ecx
pop ecx
pop ebx
leave
ret

Function at 0x10005c5c
Capabilities:
Get session information
Get session user name

Disassembly:
mov eax, 0x1018113c
call fcn.10098054
push ecx
push ecx
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
push 5
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
push esi
mov dword [ebp - 0x14], esi
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
jne 0x10005c9d
mov ecx, dword [ebp + 8]
push 0x1027fbfc
call fcn.100011a1
mov eax, dword [ebp + 8]
jmp 0x10005ce5
push dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
call fcn.100011a1
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], esi
mov esi, dword [ebp + 8]
lea eax, [ecx - 0xc]
jl 0x10005ccc
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10005cdb
mov eax, dword [0x101bf0e0]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.100012ef
lea ecx, [ebp + 0xc]
call fcn.10001469
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10005cf2
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
cmp dword [section..pskss2], 0
jne 0x10005d00
xor eax, eax
pop ecx
ret
test byte [0x10283dc4], 1
jne 0x10005d22
or byte [0x10283dc4], 1
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov dword [0x10283dc8], eax
xor eax, eax
cmp dword [0x10283dc8], eax
sete al
pop ecx
ret
Function at 0x10006b4e
Capabilities:
Read file via mapping

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
jne 0x10006bb7
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esi], eax
mov ebp, 0xb7
je 0x10006ba4
call ebx
cmp eax, ebp
je 0x10006ba4
push edi
push edi
push edi
push 0xf001f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 4
push edi
push eax
mov dword [esi + 4], eax
call fcn.10098520
add esp, 0xc
cmp dword [esp + 0x1c], edi
je 0x10006bbb
call ebx
cmp eax, ebp
je 0x10006bbb
mov ecx, esi
call fcn.10006bc9
xor eax, eax
jmp 0x10006bc2
xor eax, eax
cmp dword [esi], edi
setne al
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x10007222
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, 0x101813d8
call fcn.10098054
sub esp, 0x10
push esi
push edi
push 1
lea eax, [ebp - 0x18]
pop edi
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_GetPriorityClipboardFormat]
dec eax
jne 0x100072da
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100072da
push ebx
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea ecx, [ebp - 0x10]
call fcn.100011a1
and dword [ebp - 4], 0
mov ebx, str._BR_
mov edi, 0x101bfa34
push ebx
push edi
lea ecx, [ebp - 0x10]
call fcn.100058e4
push dword [ebp - 0x10]
mov eax, dword [esi + 0x20]
add esi, 0x20
push eax
call fcn.10098e13
pop ecx
test eax, eax
pop ecx
je 0x100072bf
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.10004792
push ebx
push edi
mov ecx, esi
call fcn.100058e4
mov ecx, dword [ebp - 0x14]
call fcn.10007303
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x10]
call fcn.10001469
mov esi, dword [ebp - 0x14]
pop ebx
mov esi, dword [esi + 0x24]
test esi, esi
je 0x100072f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x1000d167
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000d1ae
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000d1b7
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, 0x80
cmp eax, ecx
je 0x1000d1d4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x100100b2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100100cf
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100100cb
push 0
push 0
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100100cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x10010357
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x10182596
call fcn.10098054
sub esp, 0x278
mov al, byte [ebp + 0xb]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov esi, 0x128
push ebx
push 2
mov dword [ebp - 4], 1
mov dword [ebp - 0x284], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x10010428
lea ecx, [ebp - 0x284]
push ecx
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1001041f
push edi
mov dword [ebp - 0x284], esi
mov al, byte [ebp + 0xb]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x34], al
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push 0x4a
lea eax, [ebp - 0x34]
pop ecx
lea esi, [ebp - 0x284]
push eax
lea edi, [ebp - 0x15c]
push dword [ebp - 0x27c]
mov byte [ebp - 4], 2
rep movsd dword es:[edi], dword [esi]
call fcn.10010457
pop ecx
lea eax, [ebp - 0x15c]
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.10010851
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.1001077f
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100103bb
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.100107b0
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.1001081b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10010457
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
cmp dword [ebp + 8], 0
push esi
je 0x100104c9
push edi
mov ecx, 0x88
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x220]
rep stosd dword es:[edi], eax
push 8
mov dword [ebp - 0x224], 0x224
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
pop edi
cmp esi, 0xffffffff
je 0x100104c9
lea eax, [ebp - 0x224]
push eax
push esi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x100104c2
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x224]
push eax
call fcn.1001079f
lea eax, [ebp - 0x224]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
jmp 0x100104a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret
Function at 0x100188ff
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push ecx
mov eax, dword [esi]
mov dword [ebp - 4], esp
mov ecx, esp
cmp dword [eax - 0xc], 0
jl 0x10018923
mov dword [ecx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10018931
mov eax, dword [0x101bf0e0]
mov dword [ecx], eax
push dword [esi]
call fcn.100012ef
call fcn.1000508d
test eax, eax
pop ecx
je 0x1001894d
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov esi, dword [esi]
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10098c54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1009ac3d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10098c77
test byte [esp + 8], 2
je 0x10098c77
call fcn.1009acb0
mov dword [eax], 0xd
call fcn.1009acb9
mov dword [eax], 5
jmp 0x10098c50
xor eax, eax
ret