joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100029f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, eax
mov dword [ebp - 4], ebx
cmp ebx, edi
ja 0x10002a06
mov dword [ebp - 4], edi
mov esi, dword [sym.imp.MSVCRT.dll_calloc]
push 4
push ebx
call esi
add esp, 8
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x10002a23
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 4]
push 4
push eax
call esi
mov esi, eax
add esp, 8
test esi, esi
jne 0x10002a3c
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ecx
push ebx
push edx
push esi
push eax
mov eax, edi
call fcn.10002040
test edi, edi
je 0x10002a6b
mov eax, dword [ebp + 8]
mov ecx, esi
sub ecx, eax
lea esp, [esp]
mov edx, dword [ecx + eax]
mov dword [eax], edx
add eax, 4
dec edi
jne 0x10002a60
mov eax, ebx
test ebx, ebx
je 0x10002a7b
dec eax
mov dword [esi + eax*4], 0
jne 0x10002a71
mov eax, dword [esi]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
add esp, 4
mov eax, ebx
test ebx, ebx
je 0x10002aa2
mov edx, dword [ebp + 0x10]
dec eax
mov dword [edx + eax*4], 0
jne 0x10002a95
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
push eax
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10002ac0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
lea edi, [ebx + ebx]
push 4
push edi
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10002ae6
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
mov eax, esi
call fcn.10001e00
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push edx
push edi
push esi
push eax
mov eax, ebx
call fcn.100029f0
test edi, edi
je 0x10002b1a
jmp 0x10002b10
dec edi
mov dword [esi + edi*4], 0
jne 0x10002b10
mov ecx, dword [esi]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp + 0x18]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x14
Function at 0x100034a0
Capabilities:
Check if file exists
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
push 0xff
lea eax, [ebp - 0x113]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xff0ff
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
mov byte [ebp - 0x114], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
xor ecx, ecx
push str.SystemDrive
mov word [ebp - 0x14], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x10]
push eax
push 0x10045f08
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea edx, [ebp - 4]
push edx
push 0x101
push 0
push str.softwaremicrosoftwindows_ntcurrentversionwinlogon
push 0x80000002
call edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push 0x1005abf0
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x218]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10003590
sub eax, ecx
push esi
xor ecx, ecx
mov esi, eax
mov word [ebp - 0x14], 1
xor edx, edx
jmp 0x100035b0
mov byte [ebp + edx - 0x114], dl
inc edx
cmp edx, 0x100
jl 0x100035b0
xor edx, edx
jmp 0x100035d0
mov al, byte [ebp + ecx - 0x218]
xor byte [ebp + edx - 0x114], al
inc ecx
cmp ecx, esi
jl 0x100035e5
xor ecx, ecx
inc edx
cmp edx, 0x100
jl 0x100035d0
push 0x1005abf0
push 0x1005abf0
mov edx, 0x104
lea eax, [ebp - 0x114]
call fcn.10016320
push 0x1005abf0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop esi
test eax, eax
jne 0x1000364c
lea ecx, [ebp - 4]
push ecx
push 0x101
push eax
push str.softwaremicrosoftwindowscurrentversion_run
push 0x80000001
call edi
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x1005abf0
lea eax, [ebp - 0xc]
push eax
push 0
push str.userinit
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
pop edi
test eax, eax
je 0x1000365b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x10003660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 4
test eax, eax
jne 0x100036d7
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000001
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x100036cc
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1005b8e4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
jne 0x1000372f
lea ecx, [ebp - 8]
push ecx
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000002
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x10003726
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x1005b8e4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp ecx, dword [ebp - 4]
sbb eax, eax
neg eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb esi, esi
neg esi
add esi, 0x80000001
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.softwaremicrosoft
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x100037aa
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push 0x1005b8e4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x10003a20
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
xor dword [0x1004f110], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor dword [0x1004f110], eax
push 0x1004665c
call ebx
test eax, eax
je 0x10003a61
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003a61
push 0x1004f110
call eax
mov ecx, dword [0x1004f110]
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
lea esi, [ecx + eax]
rdtsc
xor ecx, eax
mov dword [0x1004f110], ecx
call edi
xor dword [0x1004f110], eax
push 0x1004665c
call ebx
test eax, eax
je 0x10003aa7
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003aa7
push 0x1004f110
call eax
mov ecx, dword [0x1004f110]
push esi
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
add eax, ecx
push eax
push str._x_x
push 0x104
push 0x1005acf8
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x10004b20
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x108], bl
call sub.MSVCRT.dll_memset
push 0x103
lea edx, [ebp - 0x20b]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 8], cx
mov byte [ebp - 0x20c], bl
call sub.MSVCRT.dll_memset
add esp, 0x18
cmp esi, ebx
je 0x10004bda
push 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov word [ebp - 8], 1
xor ecx, ecx
lea esp, [esp]
mov byte [ebp + ecx - 0x108], cl
inc ecx
cmp ecx, 0x100
jl 0x10004b90
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x108], dl
inc eax
cmp eax, 0x20
jl 0x10004bb7
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10004ba2
lea eax, [ebp - 0x20c]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x108]
call fcn.10016320
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0x102
push ebx
push str.softwaremicrosoft
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004c2a
cmp esi, ebx
je 0x10004c1b
mov edx, dword [ebp - 4]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 1
push ebx
push 0x1005c208
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x10004c2a
mov eax, dword [ebp - 4]
push 0x1005c208
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 4]
cmp eax, ebx
pop ebx
je 0x10004c39
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x10004cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
xor esi, esi
push 0xff
lea eax, [ebp - 0x10f]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
push 0x103
xor ecx, ecx
lea edx, [ebp - 0x213]
push esi
push edx
mov word [ebp - 0x10], cx
mov byte [ebp - 0x214], cl
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push esi
push str.softwaremicrosoft
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004e04
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 8]
push ecx
push esi
push 0x1005c208
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004e04
mov word [ebp - 0x10], 1
xor ecx, ecx
jmp 0x10004d70
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x10004d70
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x20
jl 0x10004d97
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10004d82
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.10016320
cmp byte [ebp - 0x214], 0
je 0x10004e04
push 0x110
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10004e04
push 0x110
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x10004e04
push 0x104
lea edx, [ebp - 0x214]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10004e12
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10004e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
xor esi, esi
push 0xff
lea eax, [ebp - 0x10f]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
push 0x103
xor ecx, ecx
lea edx, [ebp - 0x213]
push esi
push edx
mov word [ebp - 0x10], cx
mov byte [ebp - 0x214], cl
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push esi
push str.softwaremicrosoft
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004f64
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 8]
push eax
push esi
push 0x1005c208
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004f64
mov word [ebp - 0x10], 1
xor ecx, ecx
jmp 0x10004ed0
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x10004ed0
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x20
jl 0x10004ef7
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10004ee2
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.10016320
cmp byte [ebp - 0x214], 0
je 0x10004f64
push 0x110
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10004f64
push 0x110
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x10004f64
push 0x104
lea edx, [ebp - 0x214]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10004f72
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10004f85
push 0x80000001
call fcn.10004cc0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004f90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
push 0x40c
lea eax, [ebp - 0x410]
push edi
push eax
mov dword [ebp - 0x414], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.10013230
test eax, eax
jne 0x10004fd8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
call fcn.10013230
test eax, eax
je 0x10004fc8
cmp dword [ebp + 8], edi
jne 0x10004ff4
mov eax, dword [0x1005af1c]
cmp eax, edi
je 0x10004ff4
push eax
call fcn.100047c0
test eax, eax
jne 0x100050de
mov dword [0x1005af18], edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add eax, 0x80000001
push eax
xor esi, esi
call fcn.10004b20
jmp 0x10005020
mov dword [0x1004f510], 0x45ae94b2
xor ebx, ebx
xor esi, esi
cmp ebx, 0x3e8
jge 0x1000506d
cmp esi, 0x40
jge 0x1000506d
call fcn.10004520
push 0
push 0
push eax
push 0x10004c40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10005061
mov dword [ebp + esi*4 - 0x414], eax
jmp 0x10005063
dec esi
dec ebx
inc ebx
inc esi
cmp ebx, 0x3e8
jl 0x10005036
push 0xffffffffffffffff
push 1
lea ecx, [ebp - 0x414]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
jmp 0x10005090
mov edi, dword [ebp + esi*4 - 0x414]
mov dword [ebp + 8], 0
test edi, edi
je 0x100050be
lea edx, [ebp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100050be
test byte [ebp + 8], 2
jne 0x100050be
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x40
jl 0x10005090
cmp dword [0x1005af18], 0
jne 0x100050de
cmp ebx, 0x3e8
jge 0x10005020
jmp 0x1000502c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10005550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x10005620
cmp dword [ebp + 8], edi
je 0x10005620
cmp ebx, edi
je 0x10005620
push esi
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005615
push 1
push edi
push edi
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push ebx
push 0
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp + 8], 0
je 0x100055eb
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, 1
test eax, eax
jne 0x100055ee
mov edi, dword [ebp - 4]
mov dword [ebp + 8], 0
test esi, esi
je 0x10005615
lea edx, [ebp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10005615
test byte [ebp + 8], 2
jne 0x10005615
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005630
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
test eax, eax
je 0x10005776
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10005776
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1000574f
cmp dword [ebp + 0xc], edi
je 0x1000568b
inc esi
xor edi, edi
test esi, esi
je 0x100056bf
lea eax, [esi + 0x13]
and eax, 0xfffffff0
push eax
push 8
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100056bf
mov ecx, dword [ebp - 4]
push ecx
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], edi
test edi, edi
je 0x1000574c
cmp dword [ebp + 0xc], 0
je 0x100056d1
dec esi
mov dword [ebp + 0xc], 0
test esi, esi
je 0x10005721
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
push 0
push eax
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea edx, [ebp + 0xc]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0xc], 0
jne 0x1000574c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10005745
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 4]
mov dword [ebp + 0xc], 0
test ebx, ebx
je 0x10005776
lea ecx, [ebp + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10005776
test byte [ebp + 0xc], 2
jne 0x10005776
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10005797
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
mov eax, edi
jne 0x10005799
mov dword [ebx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005b50
Capabilities:
Delete file
Set file attributes

Disassembly:
xor eax, eax
test esi, esi
je 0x10005b65
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x10005c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x213]
push ebx
push eax
xor edi, edi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], ebx
mov byte [ebp - 0x214], bl
call sub.MSVCRT.dll_memset
push 0xff
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov byte [ebp - 0x110], bl
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push ebx
push str.softwaremicrosoft
xor edx, edx
push ecx
mov word [ebp - 0x10], dx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005deb
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005deb
mov word [ebp - 0x10], 1
xor ecx, ecx
jmp 0x10005d40
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x10005d40
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x20
jl 0x10005d67
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10005d52
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.10016320
lea eax, [ebp - 0x214]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005d93
sub eax, edx
push esi
inc eax
xor esi, esi
cmp eax, ebx
je 0x10005dcb
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x10005dcb
push edi
push ebx
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, esi
cmp esi, ebx
je 0x10005dea
lea eax, [ebp - 0x214]
mov edx, eax
sub esi, edx
jmp 0x10005de0
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
cmp cl, bl
jne 0x10005de0
pop esi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10005df9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x10005f8e
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x213]
push ebx
push eax
xor edi, edi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], ebx
mov byte [ebp - 0x214], bl
call sub.MSVCRT.dll_memset
push 0xff
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov byte [ebp - 0x110], bl
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push ebx
push str.softwaremicrosoft
xor edx, edx
push 0x80000001
mov word [ebp - 0x10], dx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005f7b
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x214]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005f7b
mov word [ebp - 0x10], 1
xor ecx, ecx
jmp 0x10005ed0
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x10005ed0
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x20
jl 0x10005ef7
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10005ee2
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.10016320
lea eax, [ebp - 0x214]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005f23
sub eax, edx
push esi
inc eax
xor esi, esi
cmp eax, ebx
je 0x10005f5b
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x10005f5b
push edi
push ebx
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, esi
cmp esi, ebx
je 0x10005f7a
lea eax, [ebp - 0x214]
mov edx, eax
sub esi, edx
jmp 0x10005f70
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
cmp cl, bl
jne 0x10005f70
pop esi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10005f89
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop ebx
jne 0x10005fa3
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call fcn.10005c90
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4