joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51f770
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x2b0], 0xffffffff
push edi
jne 0x51f799
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2b8], eax
mov dword [esi + 0x2b4], eax
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0x18]
je 0x51f7ea
mov eax, dword [esi + 0x88]
add eax, dword [ebp + 8]
mov ecx, dword [esi + 0x8c]
adc ecx, dword [ebp + 0xc]
push 0
push 0x64
push ecx
push eax
call fcn.00533240
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
push edx
push eax
call fcn.005331d0
mov edi, eax
cmp edi, dword [esi + 0x2b0]
je 0x51f7ea
mov edx, dword [esi - 0x78]
mov eax, dword [edx + 0x170]
lea ecx, [esi - 0x78]
push edi
call eax
mov dword [esi + 0x2b0], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
sub eax, dword [esi + 0x2b4]
cmp eax, 0x3e8
jbe 0x51f914
fild qword [ebp + 8]
mov edx, dword [esi - 0x78]
lea edi, [esi - 0x78]
mov dword [esp + 0x2c], eax
fst qword [esp + 0x38]
fild qword [esi + 0x2a8]
fsubp st(1)
fild dword [esp + 0x2c]
test eax, eax
jge 0x51f82c
fadd qword [0x592838]
fdivp st(1)
mov eax, dword [edx + 0x178]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call eax
cmp dword [ebp + 0x10], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
mov dword [esi + 0x2b4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x2a8], eax
mov dword [esi + 0x2ac], ecx
je 0x51f914
mov edx, eax
or edx, ecx
je 0x51f914
mov ecx, dword [esi + 0x88]
fild dword [esp + 0x28]
mov edx, dword [esi + 0x8c]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x3c], edx
mov eax, edx
adc eax, dword [ebp + 0xc]
mov edx, dword [edi]
push eax
push ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
jge 0x51f8a8
fadd qword [0x592838]
mov eax, dword [esi + 0x2b8]
fild dword [esi + 0x2b8]
test eax, eax
jge 0x51f8be
fadd qword [0x592838]
fsubp st(1)
mov eax, dword [ebp + 0x14]
fld qword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov edx, dword [edx + 0x174]
fnstcw word [esp + 0x38]
fdiv st(1), st(0)
sbb ebx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
movzx eax, word [esp + 0x38]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fild qword [esp + 0x40]
fsubrp st(1)
fmulp st(1)
fdiv qword [0x592830]
fldcw word [esp + 0x3c]
fistp qword [esp + 0x48]
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, edi
fldcw word [esp + 0x3c]
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x520570
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x34]
push edi
mov edi, dword [esi + 0x40]
sar eax, 2
cmp edi, eax
jb 0x520587
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x34]
mov edi, dword [ecx + edi*4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
ret
Function at 0x520ab0
Capabilities:
Connect to http server

Disassembly:
push 0xffffffffffffffff
push 0x536ad8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [esi + 0xd4]
push eax
lea ecx, [esp + 0x10]
call sub.mfc90u.dll_CSingleLock::CSingleLock
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x50]
cmp dword [eax - 0xc], 0
push esi
push 0
push 3
je 0x520b14
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0xb4]
push ecx
movzx ecx, word [esi + 0xbc]
push eax
push ecx
push edx
jmp 0x520b27
movzx ecx, word [esi + 0xbc]
mov eax, dword [esi + 0xb4]
push 0
push 0
push ecx
push eax
mov edx, dword [esi + 0xa8]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0xac], eax
test eax, eax
jne 0x520b77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x20]
push 0x48d
mov ecx, esi
call eax
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 8]
call sub.mfc90u.dll_CSingleLock::Unlock
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 8]
call sub.mfc90u.dll_CSingleLock::Unlock
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
Function at 0x521f00
Capabilities:
Check os version
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x544561
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebp
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ecx, 0x5c7280
push 0
mov dword [esp + 0x10], ecx
call fcn.00532328
mov dword [esp + 0x138], 0
push 0x5c733c
mov dword [0x5c7280], 0x58f76c
call fcn.0051b860
mov byte [esp + 0x138], 1
push 0x5c7360
call fcn.005008a0
mov byte [esp + 0x138], 2
push 0x5c7380
call fcn.004cf4b0
mov byte [esp + 0x138], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x5c7358], eax
mov dword [0x5c735c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x118
mov dword [0x5c6e20], eax
lea eax, [esp + 0x18]
push 0
push eax
mov dword [0x5c6e24], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [esp + 0x20], 2
mov edx, eax
mov ecx, eax
mov edi, eax
mov dword [0x5c7324], edx
mov dword [0x5c7328], ecx
mov dword [0x5c732c], edi
mov dword [0x5c7330], eax
mov dword [0x5c7334], eax
jne 0x522098
mov ebp, dword [esp + 0x14]
cmp ebp, 5
jne 0x522069
mov ebp, dword [esp + 0x18]
cmp ebp, 1
jb 0x522098
cmp word [esp + 0x124], 2
mov ecx, 1
mov dword [0x5c7324], ecx
jae 0x522040
cmp ebp, ecx
jbe 0x5220a2
mov dword [0x5c732c], ecx
test eax, eax
je 0x5220d0
push 0x10
push 0x58f40c
push str.Ten_program_wymaga_nowszego_systemu_operacyjnego_ni
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x5220db
cmp ebp, 6
jb 0x522098
mov ecx, 1
mov dword [0x5c7328], ecx
cmp dword [esp + 0x18], ecx
jne 0x522098
cmp dword [esp + 0x1c], 0x1b91
jb 0x522091
mov dword [0x5c7330], ecx
jmp 0x522098
mov eax, ecx
mov dword [0x5c7334], eax
test edx, edx
jne 0x5220a2
test ecx, ecx
je 0x5220a6
jmp 0x522046
test edi, edi
jne 0x522046
push 0x10
push 0x58f40c
push str.Przykro_mi_to_stwierdzi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x5220db
push 0x522b50
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [esp + 0x138], 0xffffffff
mov eax, 0x5c7280
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00532776
add esp, 0x130
ret
Function at 0x523740
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0xafc8
push 8
push 0
push ecx
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x5237ca
push 0x14
push str.RPC_Error
push str.Main_process_does_not_respond_to_RPC_command__maybe_its_waiting_for_something__dunno._Anyway__we_may_kill_him_and_then_restart__are_you_okay_with_that_
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x5237ca
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 8]
cmp ecx, eax
je 0x5237ca
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x5237ca
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret
Function at 0x52a310
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x54a1a9
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov dword [esp + 0x10], 0
push 0
push 0x561530
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
test eax, eax
je 0x52a3e8
push 0
push str.unc:
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
test eax, eax
je 0x52a3e8
push 0
push str.shell:
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
test eax, eax
je 0x52a3dc
push 0
push str.unc:
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
test eax, eax
je 0x52a3dc
push 0
push 0x57c8dc
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
lea ecx, [esp + 0x1c]
cmp eax, 0xffffffff
je 0x52a3c8
push 0x58eeb4
push 0x58eeb8
jmp 0x52a3f6
push 0
push str.mailto:
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
cmp eax, 0xffffffff
jne 0x52a3fc
jmp 0x52a416
push 0x55ae9c
push str.shell:
jmp 0x52a3f2
push 0x55ae9c
push str.unc:
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x20]
push 5
push 0
push 0
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 0x10
Function at 0x530cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x536e48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov eax, dword [esi - 0xd0]
add esi, 0xffffff14
push eax
lea ecx, [esp + 0xc]
call sub.mfc90u.dll_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, esi
call sub.mfc90u.dll_CCmdTarget::ExternalQueryInterface
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x530d60
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
cmp dword [esp + 0x14], 0
je 0x530d73
mov edx, dword [esp + 0x10]
push edx
push 0
call sub.mfc90u.dll_AfxDeactivateActCtx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0xc

Function at 0x532776
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c403c]
jne 0x532780
repz ret
jmp fcn.00532df9
Function at 0x1001398
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.010016dd
add esi, 4
mov eax, dword [esi]
xor edi, edi
inc edi
test eax, eax
je 0x10013db
cmp byte [eax], 0x2d
jne 0x10013d6
jmp 0x10013c6
cmp cl, 0x6c
jne 0x10013db
mov dword [0x1002060], edi
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x10013bb
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x10013b4
cmp dword [esi], 0
jne 0x10013e4
call fcn.01001118
mov eax, edi
jmp 0x100143a
push 0x1002080
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x1001433
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x271a
call fcn.010016a1
jmp 0x1001433
push 0xa
call dword [sym.imp.msvcrt.dll_putchar]
pop ecx
push dword [esi]
call fcn.01001127
test eax, eax
jne 0x1001430
push dword [esi]
push 0x2710
push edi
call fcn.01001632
add esp, 0xc
add esi, 4
cmp dword [esi], 0
jne 0x100140c
xor eax, eax
pop edi
pop esi
ret

Function at 0x10016e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0xa
pop esi
jmp 0x100170a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2747
jne 0x100171f
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [esi + esi*4]
shl esi, 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10016f1
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x10

Function at 0x403910
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fe], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404670], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404604], eax
mov dword [0x4040f6], eax
mov dword [0x4045f0], 0x30
mov dword [0x4045f4], 2
jmp 0x403955
mov dword [0x4045f8], 0x402f69
mov dword [0x4045fc], 0
mov dword [0x404600], 0
mov dword [0x404618], 0x404564
mov dword [0x404610], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404608], eax
mov dword [0x40461c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40460c], eax
push 0x4045f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040f6]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push str.first
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404668], eax
push 5
push dword [0x404668]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404668]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404620]
jmp 0x403a29
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a1b
mov eax, dword [0x404628]
jmp 0x403a44
call 0x402a90
ret
Function at 0x419175
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x419184
pop dword [ebp - 0x10]
mov eax, 0x419184
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3ec7c
push 0
mov eax, 0x1c9bdd1f
add eax, 0xe3a5f4f5
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xd146af81
sub ecx, 0xd1466218
xor edx, edx
add edx, eax
mov edi, 0x5cff3f29
add edi, 0xa34420d7
add edi, dword [ebp - 0x10]
mov esi, 0x24707d66
sub esi, 0x550f136
mov dword [ebp - 8], 0xcb830507
mov ebx, dword [edi]
xor dword [ebp - 4], 0xe6321031
add ebx, esi
mov dword [ebp - 4], 0x6bd2898e
mov dword [edx], ebx
add dword [ebp - 4], eax
add edx, 0xb3ca9eb1
sub edx, 0xb3ca9ead
add edi, 4
loop 0x4191e0
add eax, 0x12877
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

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 0x10014d0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100b21c]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 2
push edi
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
mov dword [ebp - 0x14], ebx
jne 0x10015d5
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10015d5
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x100154a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100154a
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x10015be
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x10015be
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10015be
cmp dword [esi], ebx
mov dword [ebp - 8], ebx
jbe 0x10015b5
lea edi, [esi + 4]
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10015aa
inc dword [ebp - 8]
add edi, 8
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
jb 0x100158c
jmp 0x10015b5
push 1
pop eax
mov dword [0x100b21c], eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x10015d2
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001a12
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001a3e
xor esi, esi
push esi
push 0x10
push esi
push esi
push 0x4f5
jmp 0x1001a95
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x10012e8
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
push esi
jne 0x1001a7f
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001a95
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001a9f
push esi
push 0x10
push esi
push esi
push 0x4f7
push esi
call fcn.01003ae7
xor eax, eax
jmp 0x1001aa2
push 1
pop eax
pop esi
leave
ret

Function at 0x1001aa5
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
je 0x1001ab1
push 2
pop eax
jmp 0x1001ab6
call fcn.010019e8
cmp eax, 2
jne 0x1001afe
test byte [esp + 4], 4
je 0x1001ac7
push 6
pop eax
jmp 0x1001ade
push 4
push 0x40
push 0
push 0x10012c4
push 0x522
push 0
call fcn.01003ae7
cmp eax, 6
jne 0x1001afe
cmp word [0x100fe04], 0
jne 0x1001af9
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1001afe
call fcn.01001a12
ret 4

Function at 0x1001b01
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x100b5a0], 0
je 0x1001b44
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001b44
push 0x100b5a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x1001d3b
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
xor ebx, ebx
cmp byte [0x100b5a0], bl
je 0x1001e33
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001e33
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x344]
push eax
push ebx
mov esi, 0x100b5a0
push ebx
push esi
mov dword [ebp - 8], 0x238
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001e29
mov al, byte [0x10012c4]
push edi
push 0x40
mov byte [ebp - 0x10c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001de4
lea eax, [ebp - 0x10c]
push 0x10012c4
push eax
call fcn.01005925
lea eax, [ebp - 0x10c]
push 0x100f084
push eax
lea eax, [ebp - 0x344]
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x344]
push eax
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret
Function at 0x1001e36
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x1001f5f
cmp byte [ebx], 0
je 0x1001f5f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push ebx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push 0x1001320
push eax
call esi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1001f5f
lea eax, [ebp - 0x104]
push ebx
push eax
call edi
test byte [ebp - 0x244], 0x10
je 0x1001f08
lea eax, [ebp - 0x218]
push 0x100131c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1001f37
lea eax, [ebp - 0x218]
push 0x1001318
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1001f37
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push 0x10012c4
push eax
call fcn.01005925
lea eax, [ebp - 0x104]
push eax
call fcn.01001e36
jmp 0x1001f37
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001e9a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001f9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001ff9
lea eax, [ebp - 0x104]
push 0x1001324
push eax
call fcn.01005925
lea eax, [ebp - 0x104]
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ff9
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1001fff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push esi
push eax
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002042
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1002039
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 8