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

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
xor esi, esi
push eax
push 1
push esi
push str.SystemCurrentControlSetControlWindows
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ce5f
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push 0x444548
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ce54
mov esi, dword [esp + 0xc]
and esi, 0xffff
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
shr eax, 8
add esp, 0xc
ret

Function at 0x40ce70
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40ceae
cmp dword [esp + 0x10], 2
jne 0x40ceae
cmp dword [esp + 4], 6
jne 0x40ceae
call fcn.0040ce00
cmp eax, 1
jb 0x40ceae
mov al, 1
add esp, 0x94
ret
xor al, al
add esp, 0x94
ret
Function at 0x40d710
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40d75c
cmp dword [esp + 0x10], 2
jne 0x40d753
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x40d753
cmp eax, 6
ja 0x40d753
call fcn.0040ce70
neg al
sbb eax, eax
inc eax
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
mov eax, 1
add esp, 0x94
ret

Function at 0x40d770
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str._install
push esi
call edi
test eax, eax
je 0x40d7b7
mov ecx, 0x445300
call fcn.00409be0
mov ecx, 0x445620
call fcn.00430ce0
cmp dword [0x445674], 1
jne 0x40d7af
push 1
call fcn.0041f3d0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str._uninstall
push esi
call edi
test eax, eax
je 0x40d7d5
mov ecx, 0x445300
call fcn.00409f70
pop edi
mov eax, 1
pop esi
ret
push str._open
push esi
call edi
test eax, eax
je 0x40d7ed
mov dword [0x4458e8], 1
jmp 0x40d803
push str._close
push esi
call edi
test eax, eax
je 0x40d803
mov dword [0x4458ec], 1
push str._wrun
push esi
call edi
test eax, eax
je 0x40d821
push 1
call fcn.0041f0d0
add esp, 4
mov eax, 1
pop edi
pop esi
ret
push str._drun
push esi
call edi
test eax, eax
je 0x40d83f
push 0
call fcn.0041f0d0
add esp, 4
mov eax, 1
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x40dca0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43b0dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.0040e470
xor ebx, ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esi + 0x2c], ebx
lea edi, [esi + 0x30]
mov dword [esp + 0x10], edi
mov dword [edi], ebx
lea ecx, [edi + 8]
mov byte [esp + 0x24], 2
mov dword [edi + 4], ebx
call fcn.00406920
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
lea edi, [esi + 0x50]
push ebx
push 8
mov ecx, edi
mov byte [esp + 0x2c], 3
call fcn.004029d0
mov dword [edi], 0x43e5f0
lea edi, [esi + 0x94]
push ebx
push 8
mov ecx, edi
mov byte [esp + 0x2c], 4
call fcn.004029d0
mov dword [edi], 0x43e5f0
lea edi, [esi + 0xd8]
push ebx
push 8
mov ecx, edi
mov byte [esp + 0x2c], 5
call fcn.004029d0
mov dword [edi], 0x43e5f0
mov dword [esi + 0x11c], ebx
mov dword [esp + 0x10], ebx
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 1
push 1
push 0x18
push 0x18
push 2
mov byte [esp + 0x38], 7
call edi
push ecx
mov dword [esi + 0x20], eax
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov dword [eax], 0xea
call fcn.00402330
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x20]
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_Add]
push ebx
push eax
push ecx
call ebp
cmp dword [esp + 0x10], ebx
je 0x40dda1
lea ecx, [esp + 0x10]
call fcn.00402350
mov dword [esp + 0x10], ebx
push 1
push 1
push 0x18
push 1
push 3
mov byte [esp + 0x38], 8
call edi
push ecx
mov dword [esi + 0x24], eax
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov dword [eax], 0xe8
call fcn.00402330
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x24]
push ebx
push edx
push eax
call ebp
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40ddea
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x10], ebx
push 1
push 1
push 0x18
push 0xa
push 3
mov byte [esp + 0x38], 9
call edi
push ecx
mov dword [esi + 0x28], eax
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov dword [eax], 0xe9
call fcn.00402330
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push ebx
push ecx
push edx
call ebp
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40de33
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x10], ebx
push 1
push 1
push 0x18
push 0x5b
push 1
mov byte [esp + 0x38], 0xa
call edi
push ecx
mov dword [esi + 0x11c], eax
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov dword [eax], 0xfd
call fcn.00402330
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x11c]
push ebx
push eax
push ecx
call ebp
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40de82
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0xf3efe3
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x4150d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, ecx
push esi
push edi
lea esi, [ebp + 0x154]
push esi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x445924]
push str.antiarp.log
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [esp + 0x14]
push 0x444880
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x4151bf
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x41519a
push 0
push 0
push edi
call esi
mov eax, 0xcccccccd
push ebx
mul ebx
mov esi, edx
shr esi, 8
call dword [sym.imp.MSVCRT.dll_malloc]
push edi
mov ebx, eax
push esi
push 0x140
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x20
test esi, esi
jle 0x415190
add ebp, 4
mov eax, dword [ebp + 8]
push ebx
push 1
push eax
mov ecx, ebp
call fcn.004154a0
add ebx, 0x140
dec esi
jne 0x415175
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret
Function at 0x4151e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0x154]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x445924]
push str.antiarp.log
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [esp + 0x14]
push 0x444890
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
je 0x41530c
mov eax, dword [ebx + 8]
test eax, eax
je 0x41525f
mov ecx, dword [ebx + 0xc]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 0x7d0
jbe 0x41525f
mov edx, 0x7d0
jmp 0x415280
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41526a
xor edx, edx
jmp 0x415280
mov ecx, dword [ebx + 0xc]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
test edx, edx
push ebp
jle 0x4152b7
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
xor esi, esi
mov ebp, edx
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
push edx
push 1
add eax, esi
push 0x140
push eax
call edi
add esp, 0x10
add esi, 0x140
dec ebp
jne 0x41528f
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ebp, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov eax, ebp
add esp, 4
cmp eax, ebp
je 0x4152eb
mov esi, eax
mov edi, edx
add eax, 0x140
mov ecx, 0x50
add edx, 0x140
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4152cd
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xc]
push edi
mov dword [esp + 0x14], ecx
mov dword [ebx + 0xc], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10c
ret
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x4157b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43b6eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 0x14], al
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov cl, byte [esp + 0xb]
push 0x28
mov dword [esp + 0x1c], edi
mov byte [esi + 0x24], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [esi + 0x30]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
push edx
mov dword [esi], 0x43ea50
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x416080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43b7d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebx + 4]
lea esi, [ebx + 4]
lea eax, [esp + 0x14]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi]
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
push edi
push edi
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ebx, dword [ebx + 0x24]
mov eax, dword [esp + 0x24]
push ebx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0xc], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x74], 3
push ecx
mov ecx, esi
call fcn.00404680
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edi
push edx
push 0xffffffffffffffff
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 4
Function at 0x41f010
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f0ba
lea eax, [esp + 8]
push edi
push eax
push ebx
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41f0a7
mov edi, dword [esp + 0x138]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x41f069
lea ecx, [esp + 0xc]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x41f0a7
cmp dword [esp + 0x14], edi
jne 0x41f054
mov ecx, dword [esp + 0x140]
cmp ecx, 0x7fffffff
ja 0x41f0a2
mov eax, dword [esp + 0x13c]
mov esi, ecx
test ecx, ecx
je 0x41f0a2
lea edx, [esp + 0x30]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x41f09a
mov byte [eax], cl
inc eax
dec esi
jne 0x41f08b
jmp 0x41f09e
test esi, esi
jne 0x41f09f
dec eax
mov byte [eax], 0
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x128
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x128
ret
Function at 0x41f0d0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x108
push esi
push edi
call fcn.0041f250
mov edi, dword [esp + 0x114]
cmp eax, edi
jne 0x41f0f6
pop edi
mov eax, 1
pop esi
add esp, 0x108
ret
mov edx, dword [0x445914]
lea ecx, [esp + 0xc]
mov esi, 0x104
lea eax, [esp + 0xc]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x41f11a
mov byte [eax], cl
inc eax
dec esi
jne 0x41f10b
jmp 0x41f11e
test esi, esi
jne 0x41f11f
dec eax
lea edx, [esp + 0xc]
push 0x5c
push edx
mov byte [eax], 0
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
jne 0x41f13f
pop edi
pop esi
add esp, 0x108
ret
mov byte [eax], 0
mov ecx, 0x104
lea eax, [esp + 0xc]
cmp byte [eax], 0
je 0x41f156
inc eax
dec ecx
jne 0x41f14b
jmp 0x41f19a
test ecx, ecx
je 0x41f19a
lea eax, [esp + 8]
test eax, eax
je 0x41f16b
mov eax, 0x104
sub eax, ecx
jmp 0x41f16f
mov eax, dword [esp + 8]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0xc]
je 0x41f19a
mov esi, str.AntiArp.exe
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x41f192
mov byte [eax], cl
inc eax
dec edx
jne 0x41f183
jmp 0x41f196
test edx, edx
jne 0x41f197
dec eax
mov byte [eax], 0
mov ecx, 0x104
lea eax, [esp + 0xc]
cmp byte [eax], 0
je 0x41f1ae
inc eax
dec ecx
jne 0x41f1a3
jmp 0x41f1f2
test ecx, ecx
je 0x41f1f2
lea edx, [esp + 8]
test edx, edx
je 0x41f1c3
mov eax, 0x104
sub eax, ecx
jmp 0x41f1c7
mov eax, dword [esp + 8]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0xc]
je 0x41f1f2
mov esi, str.__start
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x41f1ea
mov byte [eax], cl
inc eax
dec edx
jne 0x41f1db
jmp 0x41f1ee
test edx, edx
jne 0x41f1ef
dec eax
mov byte [eax], 0
test edi, edi
je 0x41f22c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0xc]
push eax
push ecx
push 1
push str.360Antiarp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x108
ret
push str.360Antiarp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x108
ret
Function at 0x41f250
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov al, byte [0x445264]
push esi
push edi
mov byte [esp + 0x118], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov edx, dword [0x445914]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esp + 0x14]
xor edi, edi
mov dword [esp + 0x10], 0x104
mov esi, 0x104
lea eax, [esp + 0x14]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x41f2a5
mov byte [eax], cl
inc eax
dec esi
jne 0x41f296
jmp 0x41f2a9
test esi, esi
jne 0x41f2aa
dec eax
lea edx, [esp + 0x14]
push 0x5c
push edx
mov byte [eax], 0
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
jne 0x41f2ca
pop edi
pop esi
add esp, 0x214
ret
mov byte [eax], 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.00420b50
test eax, eax
jl 0x41f300
mov eax, dword [esp + 8]
mov edx, 0x104
sub edx, eax
push str.AntiArp.exe
lea eax, [esp + eax + 0x18]
push edx
push eax
call fcn.0041ac40
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push 0x104
push edx
call fcn.00420b50
test eax, eax
jl 0x41f333
mov eax, dword [esp + 8]
mov ecx, 0x104
sub ecx, eax
push str.__start
lea edx, [esp + eax + 0x18]
push ecx
push edx
call fcn.0041ac40
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41f3bc
mov esi, dword [esp + 8]
mov dword [esp + 0xc], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x118]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.360Antiarp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f3b1
lea edx, [esp + 0x118]
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x41f3b1
mov edi, 1
test esi, esi
je 0x41f3bc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x214
ret

Function at 0x41f4d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41f54c
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41f543
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, 0x7fffffff
ja 0x41f533
test esi, esi
je 0x41f533
mov edx, edi
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x41f52b
mov byte [eax], cl
inc eax
dec esi
jne 0x41f51c
jmp 0x41f52f
test esi, esi
jne 0x41f530
dec eax
mov byte [eax], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret
Function at 0x41f970
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x80
mov al, byte [0x445264]
push edi
mov byte [esp + 4], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 4]
push 0x100
push ecx
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [esp + 4]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
pop edi
jne 0x41f9b7
add esp, 0x80
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
add esp, 0x80
ret
Function at 0x41fbe0
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push edi
push 0x280
xor edi, edi
mov dword [esp + 0x10], 0x280
call esi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41fc76
lea eax, [esp + 0xc]
push ebp
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
mov ebp, dword [sym.imp.MSVCRT.dll_free]
cmp eax, 0x6f
jne 0x41fc39
push ebx
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41fc68
lea edx, [esp + 0x10]
push edx
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x41fc68
mov ecx, dword [ebx + 0x190]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
ja 0x41fc68
mov edi, dword [esp + 0x18]
mov eax, ecx
lea esi, [ebx + 0x194]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 1
push ebx
call ebp
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41fc80
Capabilities:
Check if file exists
Create directory

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x208
push ebx
xor ebx, ebx
push esi
push edi
test edx, edx
je 0x41fd65
mov al, byte [0x445264]
mov ecx, 0x40
mov byte [esp + 0xc], al
xor eax, eax
lea edi, [esp + 0xd]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [esp + 0x10]
push edx
push ecx
stosb byte es:[edi], al
call esi
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41fd56
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRootA]
test eax, eax
jne 0x41fd56
mov dl, byte [0x445264]
mov ecx, 0x40
lea edi, [esp + 0x111]
mov byte [esp + 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
lea ecx, [esp + 0x114]
push eax
push ecx
call esi
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x110]
push eax
call fcn.0041fc80
add esp, 4
test eax, eax
je 0x41fd65
lea ecx, [esp + 0xc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x420230
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42026f
cmp dword [esp + 0x10], 2
jne 0x42026f
cmp dword [esp + 4], 5
jne 0x42026f
mov eax, dword [esp + 8]
test eax, eax
jne 0x42026f
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x4205d0
Capabilities:
Get local ipv4 addresses

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c128
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
xor ebp, ebp
cmp eax, 8
push esi
jb 0x420706
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x280
mov dword [esp + 0x40], 0x280
call esi
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x420706
lea eax, [esp + 0x3c]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x420652
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x40]
push ecx
call esi
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x4206fc
lea edx, [esp + 0x3c]
push edx
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebp
jne 0x4206fc
push edi
lea ecx, [esp + 0x10]
call fcn.0042f160
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebp
call fcn.0042f390
test eax, eax
je 0x4206ea
mov edi, dword [esp + 0x3c]
mov esi, ebx
mov al, byte [esi + 0x1b0]
test al, al
je 0x4206a8
mov cl, byte [esi + 0x1d8]
lea eax, [esi + 0x1d8]
test cl, cl
je 0x4206a8
push 3
push 0xa
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.0042f5a0
test eax, eax
jne 0x4206b0
mov esi, dword [esi]
test esi, esi
jne 0x42067b
jmp 0x4206ea
mov ecx, dword [esp + 0x38]
cmp ecx, 0x7fffffff
ja 0x4206e5
mov eax, dword [esp + 0x34]
lea edx, [esi + 0x1d8]
test ecx, ecx
mov esi, ecx
je 0x4206e5
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x4206dd
mov byte [eax], cl
inc eax
dec esi
jne 0x4206ce
jmp 0x4206e1
test esi, esi
jne 0x4206e2
dec eax
mov byte [eax], 0
mov ebp, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042f1a0
pop edi
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x420870
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4208e0
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4208e0
push eax
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret