joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65241849
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [0x6526e014]
test eax, eax
je 0x65241876
mov eax, dword [0x6526e014]
mov dword [esp], eax
call sym._free
mov dword [0x6526e014], 0
mov dword [esp], str.LOCALAPPDATA
call sym._getenv
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x652418ad
mov dword [esp + 0xc], str._.magic_magic.mgc
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x652670b1
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym.__w32_append_path
mov dword [esp], str.USERPROFILE
call sym._getenv
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x652418e4
mov dword [esp + 0xc], str._.magic_magic.mgc
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_Local_Settings_Application_Data_s
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym.__w32_append_path
mov dword [esp], str.COMMONPROGRAMFILES
call sym._getenv
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x6524191b
mov dword [esp + 0xc], str._.magic_magic.mgc
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x652670b1
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym.__w32_append_path
mov dword [esp + 4], 0
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym.__w32_get_magic_relative_to
mov eax, dword [0x6526e010]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym.__w32_get_magic_relative_to
mov eax, dword [ebp - 0x10]
mov dword [0x6526e014], eax
mov eax, dword [0x6526e014]
leave
ret

Function at 0x65241951
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x65241962
mov eax, dword [ebp + 8]
jmp 0x6524198e
mov dword [esp], str.MAGIC
call sym._getenv
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x6524197c
mov eax, dword [ebp + 8]
jmp 0x6524198e
cmp dword [ebp + 0xc], 0
jne 0x65241989
call sym._get_default_magic
jmp 0x6524198e
mov eax, str._usr_local_share_misc_magic
leave
ret
Function at 0x65250caf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
nop
jmp 0x65250cc3
nop
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._read
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x65250ced
cmp dword [ebp - 0x10], 0
je 0x65250d02
jmp 0x65250d0a
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
cmp eax, 4
je 0x65250d18
mov eax, 0xffffffff
jmp 0x65250d22
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0x10]
jmp 0x65250d22
mov eax, dword [ebp - 0x10]
sub dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp + 0xc], eax
jmp 0x65250d19
nop
cmp dword [ebp + 0x10], 0
jne 0x65250cc2
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x65257846
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov dword [esp], 1
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp], eax
call sym._fflush
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x652578a0
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x34]
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x30]
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x6526b1f0
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.Warning:
call sym._fwrite
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 8], ebx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
nop
add esp, 0x20
pop ebx
pop esi
pop ebp
ret

Function at 0x6525eb88
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.lseek64
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
xor eax, 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
xor eax, 0xffffffff
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov eax, ecx
or eax, edx
test eax, eax
jne 0x6525ebea
mov eax, 0xffffffff
jmp 0x6525ec54
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._read
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x6525ec13
mov eax, 0xffffffff
jmp 0x6525ec54
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.lseek64
mov ecx, eax
xor ecx, 0xffffffff
mov esi, ecx
mov eax, edx
xor eax, 0xffffffff
mov edi, eax
mov eax, edi
or eax, esi
test eax, eax
jne 0x6525ec51
mov eax, 0xffffffff
jmp 0x6525ec54
mov eax, dword [ebp - 0x14]
add esp, 0x30
pop esi
pop edi
pop ebp
ret
Function at 0x6525f790
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6525f7f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6526e398]
test esi, esi
jle 0x6525f8f0
mov eax, dword [0x6526e39c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6525f820
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6525f89f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6525f810
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x6525f917
mov eax, dword [0x6526e39c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x6526e39c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6525f8f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6525f898
sub eax, 4
and eax, 0xfffffffb
jne 0x6525f8a6
add dword [0x6526e398], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x6526e39c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6525f898
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x6525f82a
mov eax, dword [0x6526e39c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x65260340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [esp + 0x140]
call sym.__errno
mov dword [eax], 0
test ebx, ebx
je 0x652604e0
cmp byte [ebx], 0
je 0x652604c0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x652604f8
test al, 0x10
je 0x652604c0
lea esi, [esp + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov ebx, esi
mov dword [esp], esi
call sym.__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x652603a4
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
mov ecx, eax
add cl, al
sbb ebx, 3
sub ebx, esi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sym._malloc
mov ebp, eax
test eax, eax
je 0x6526050a
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
cmp eax, 4
jb 0x65260470
mov ecx, dword [esp + eax + 0x18]
mov edi, edx
mov dword [edx + eax - 4], ecx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp + 0x22c], 0
jne 0x65260490
add ebx, edx
mov eax, 0x2a
lea edx, [ebp + 0x120]
mov ecx, 0x41
mov word [ebx], ax
mov edi, edx
xor eax, eax
mov dword [ebp + 0x224], 0xffffffff
mov dword [ebp + 0x228], 0
mov dword [ebp + 0x118], 0
mov dword [ebp + 0x11c], 0
rep stosd dword es:[edi], eax
add esp, 0x12c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x6526040d
movzx ecx, byte [esi]
mov byte [edx], cl
test al, 2
je 0x6526040d
movzx ecx, word [esi + eax - 2]
mov word [edx + eax - 2], cx
jmp 0x6526040d
movzx ecx, byte [ebp + ebx + 0x22b]
add ebx, edx
cmp cl, 0x5c
je 0x65260418
cmp cl, 0x2f
je 0x65260418
mov ecx, 0x5c
mov word [ebx], cx
lea ebx, [edx + eax]
jmp 0x65260418
call sym.__errno
xor ebp, ebp
mov dword [eax], 0x14
add esp, 0x12c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.__errno
xor ebp, ebp
mov dword [eax], 0xe
jmp 0x65260459
call sym.__errno
xor ebp, ebp
mov dword [eax], 2
jmp 0x65260459
call sym.__errno
mov dword [eax], 0xc
jmp 0x65260459
Function at 0x401000
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x350
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
jne 0x40103d
pop edi
or eax, eax
pop esi
add esp, 0x350
ret 0x10
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401062
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x350
ret 0x10
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x13c]
mov dword [esp + 0x138], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x138]
mov edi, eax
push edx
push edi
mov dword [esp + 0x140], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4011a5
lea eax, [esp + 0x158]
mov esi, str.CERTREGX.EXE
push eax
call fcn.004047a6
add esp, 4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4010ec
test cl, cl
je 0x4010e8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4010ec
add eax, 2
add esi, 2
test cl, cl
jne 0x4010c8
xor eax, eax
jmp 0x4010f1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40111f
mov eax, dword [esp + 0x140]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
lea ecx, [esp + 0x158]
mov esi, str.EKEY_CLI.EXE
push ecx
call fcn.004047a6
add esp, 4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401158
test cl, cl
je 0x401154
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401158
add eax, 2
add esi, 2
test cl, cl
jne 0x401134
xor eax, eax
jmp 0x40115d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40118b
mov eax, dword [esp + 0x140]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
lea ecx, [esp + 0x138]
push ecx
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4010b3
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401069
push esi
call ebp
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x350
ret 0x10
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401dfa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401e39
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401e39
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e39
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401e39
cmp dword [ecx + 0x74], 0xe
jbe 0x401e39
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40d4d3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404cb5
mov dword [ebp - 0x14], eax
cmp dword [0x44a924], esi
jne 0x40d5c6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d553
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d6a6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d6a6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d6a6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44a924], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44a928], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44a92c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44a934], eax
test eax, eax
je 0x40d5c3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44a930], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d5eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d5de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d600
push 4
pop eax
jmp 0x40d6a8
cmp dword [ebp - 0x14], esi
je 0x40d600
push dword [0x44a924]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d5e5
mov eax, dword [0x44a930]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d65e
cmp dword [0x44a934], edi
je 0x40d65e
push eax
call ebx
push dword [0x44a934]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d65e
test eax, eax
je 0x40d65e
call ecx
test eax, eax
je 0x40d653
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d653
test byte [ebp - 8], 1
jne 0x40d65e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d68e
mov eax, dword [0x44a928]
cmp eax, edi
je 0x40d68b
push eax
call ebx
test eax, eax
je 0x40d68b
call eax
mov esi, eax
test esi, esi
je 0x40d68b
mov eax, dword [0x44a92c]
cmp eax, edi
je 0x40d68b
push eax
call ebx
test eax, eax
je 0x40d68b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44a924]
call ebx
test eax, eax
je 0x40d6a6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d6a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f34
mov esp, ebp
pop ebp
ret
Function at 0x402483
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0051fdd5
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0051fdd5
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x402519
mov dword [ebp - 0x18], esp
mov eax, 0
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x402516
push 6
call fcn.0051fde1
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 1
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x402545
push 6
call fcn.0051fde1
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 2
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x402573
push 6
call fcn.0051fde1
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0
mov eax, 3
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x40259f
push 6
call fcn.0051fde1
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 4
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x40262e
push 6
call fcn.0051fde1
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 5
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x402653
push 6
call fcn.0051fde1
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x40265b
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x5312c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5f3b4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005e757f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x531342
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005e49de
mov eax, dword [eax]
push 0xb90d7c
push eax
call fcn.005b88f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005e780a
test bl, bl
je 0x531342
push 0xb90d7c
lea ecx, [esp + 0xc]
call fcn.005e7b9a
push 0xb90d88
lea ecx, [esp + 0xc]
call fcn.005e7b9a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x53137e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005e780a
jmp 0x531449
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x531402
lea edx, [esp + 0x7c]
push 0xb90d84
push edx
call fcn.005b88f4
add esp, 8
test eax, eax
je 0x531402
lea eax, [esp + 0x7c]
push 0xb90d80
push eax
call fcn.005b88f4
add esp, 8
test eax, eax
je 0x531402
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x531392
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.005e780a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x5326d0
Capabilities:
Query or enumerate registry value

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