joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c2a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x433e00]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x433e00]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x40d260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x40d2af
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 2]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40d2a5
mov edx, dword [ebp + 0x14]
mov byte [edx + 6], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40d309
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x10]
jbe 0x40d2cf
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + 0x14]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x14]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00421550
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40ead0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40eaeb
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x40eaf5
mov eax, 0x1000000
jmp 0x40ec0b
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0x244
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx]
mov word [ebp - 0x22], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x22], 0
jne 0x40eb1e
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov cx, word [eax + edx*2 + 0x242]
mov word [ebp - 8], cx
movzx edx, word [ebp - 8]
cmp edx, 0x5c
je 0x40eb8f
movzx eax, word [ebp - 8]
cmp eax, 0x2f
je 0x40eb8f
mov ecx, dword [ebp - 0x18]
add ecx, 0x242
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 2]
mov word [ebp - 0x2e], ax
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x2e], 0
jne 0x40eb6e
mov edi, dword [ebp - 0x2c]
mov ecx, dword [0x434298]
mov dword [edi], ecx
cmp dword [ebp + 0x10], 1
jne 0x40ebc3
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
setne al
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x40ebc3
mov eax, 0x2000000
jmp 0x40ec0b
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040cf40
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ebe9
mov eax, dword [ebp - 0xc]
jmp 0x40ec0b
mov eax, dword [ebp - 4]
push eax
call fcn.0040d610
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
jne 0x40ec09
mov eax, 0x200
jmp 0x40ec0b
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a6ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439c20]
jne 0x41a6b7
repz ret
jmp fcn.0041ef6d

Function at 0x429a7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041f242
and dword [ebp - 4], 0
cmp dword [0x43dabc], 0
mov ebx, eax
jne 0x429b30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x429be1
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x429be1
push eax
call fcn.0041f1d0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43dabc], eax
call esi
push eax
call fcn.0041f1d0
mov dword [esp], 0x4316ac
push edi
mov dword [0x43dac0], eax
call esi
push eax
call fcn.0041f1d0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43dac4], eax
call esi
push eax
call fcn.0041f1d0
pop ecx
mov dword [0x43dacc], eax
test eax, eax
je 0x429b30
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041f1d0
pop ecx
mov dword [0x43dac8], eax
mov eax, dword [0x43dac8]
cmp eax, ebx
je 0x429b88
cmp dword [0x43dacc], ebx
je 0x429b88
push eax
call fcn.0041f24b
push dword [0x43dacc]
mov esi, eax
call fcn.0041f24b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x429b88
test edi, edi
je 0x429b88
call esi
test eax, eax
je 0x429b7f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x429b7f
test byte [ebp - 0xc], 1
jne 0x429b88
or dword [ebp + 0x10], 0x200000
jmp 0x429bc1
mov eax, dword [0x43dac0]
cmp eax, ebx
je 0x429bc1
push eax
call fcn.0041f24b
pop ecx
test eax, eax
je 0x429bc1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x429bc1
mov eax, dword [0x43dac4]
cmp eax, ebx
je 0x429bc1
push eax
call fcn.0041f24b
pop ecx
test eax, eax
je 0x429bc1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43dabc]
call fcn.0041f24b
pop ecx
test eax, eax
je 0x429be1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x429be3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c93d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4643e8
sub esp, 0x24
mov eax, dword [0x512154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x464456
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.0044d0a4
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.0044f17e
pop ecx
pop ecx
test al, al
jne 0x46446d
lea ecx, [esp + 0x18]
add edi, 4
call fcn.0044f101
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x464421
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e549
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.0044f101
jmp 0x464458

Function at 0x44ebb6
Capabilities:
Terminate process

Disassembly:
jmp 0x49e0be
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x49e0cf
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004514fb
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x44ed41
Capabilities:
Query environment variable

Disassembly:
jmp 0x4dc40f
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4dc423
xor edi, edi
jmp 0x4dc45a
push ebx
push esi
call fcn.004dc319
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044f7a5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4dc44a
push ebx
push esi
push edi
call fcn.00451271
add esp, 0xc
push 0
call fcn.00452013
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x44f336
Capabilities:
Encode data using xor

Disassembly:
jmp 0x464de3
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x464ed7
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x515508
mov bl, byte [esi + edi]
push str.ugAyuisyx
push ebp
call fcn.0044e210
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0x451e88
push str.Bicycle_water
mov bh, byte [edx + section..1cc]
push 0x5155f0
xor bh, bl
call fcn.0044e210
pop ecx
pop ecx
mov ecx, eax
call fcn.00451262
mov bl, byte [esi + edi]
push 0x451e88
push str.dijovhyuGSYYSyus
push ebp
call fcn.0044e210
pop ecx
pop ecx
mov ecx, eax
call fcn.00451262
add byte [esi + edi], bh
push 0x451e88
push str.fdiogiuAsdoiHYUAUAY87234
push ebp
call fcn.0044e210
pop ecx
pop ecx
mov ecx, eax
call fcn.00451262
dec byte [esi + edi]
push str.suih89Ah3
push ebp
call fcn.0044e210
add byte [esi + edi], 0xfe
push str.XScdyhjkujktyyt
push ebp
call fcn.0044e210
sub byte [esi + edi], bl
push str.sJBCsKJ2BJN
push ebp
call fcn.0044e210
inc byte [esi + edi]
push str.sDGTFsE
push ebp
call fcn.0044e210
inc byte [esi + edi]
push str.ZASwe23
push ebp
call fcn.0044e210
inc byte [esi + edi]
push str.uhgiyGAuyisua
push ebp
call fcn.0044e210
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0x464dfc
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x451357
Capabilities:
Parse pe header

Disassembly:
jmp 0x48cfd0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48d00f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48d00f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48d00f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48d00f
cmp dword [ecx + 0x74], 0xe
jbe 0x48d00f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

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

Disassembly:
jmp 0x4644b3
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x546190], eax
pop edi
pop esi
ret
Function at 0x1001908
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100c1f4]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
jne 0x1001a37
lea eax, [ebp - 0x10]
push eax
call fcn.01001858
test eax, eax
jne 0x1001a25
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1001a37
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x1001a19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1001a19
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x1001a18
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1001a11
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001a11
cmp dword [esi], ebx
jbe 0x1001a08
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10019fd
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x10019e4
jmp 0x1001a08
xor eax, eax
inc eax
mov dword [0x100c1f4], eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x1001a34
cmp dword [ebp - 0x10], ebx
je 0x1001a34
mov dword [0x100c1f4], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01006b7f
leave
ret
Function at 0x1001b73
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
jne 0x1001ba9
push esi
push 0x10
push esi
push esi
push 0x4f5
push esi
call fcn.01003826
xor eax, eax
jmp 0x1001c10
lea eax, [ebp - 0x14]
push eax
push 0x10012e4
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
push esi
jne 0x1001bf5
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001b9f
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001c0d
push esi
push 0x10
push esi
push esi
push 0x4f7
jmp 0x1001b9f
xor eax, eax
inc eax
pop esi
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x100c600], 0
je 0x1001c5d
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c5d
push 0x100c600
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 0x1001ca4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001d1f
push 0x10012f8
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010074f0
lea eax, [ebp - 0x108]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001d1f
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 ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01006b7f
leave
ret

Function at 0x1001d34
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d7f
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 0x1001d76
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
Function at 0x1001d8c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001ddb
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1001dd2
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 4

Function at 0x1001e4f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001e6f
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1001e72
and eax, 0x10
pop ebp
ret 4

Function at 0x100203a
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 8], 2
jne 0x100204f
call fcn.01002008
cmp eax, 2
jne 0x100208c
test byte [ebp + 8], 4
jne 0x1002071
push 4
push 0x40
push 0
push 0x10012e1
push 0x522
push 0
call fcn.01003826
cmp eax, 6
jne 0x100208c
cmp word [0x100d0cc], 0
jne 0x1002087
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100208c
call fcn.01001b73
pop ebp
ret 4
Function at 0x10022f5
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x100c600], bl
je 0x1002412
lea eax, [ebp - 0x344]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002412
push esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
push ebx
mov esi, 0x100c600
push esi
push dword [ebp - 0x344]
mov dword [ebp - 0x348], 0x238
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002405
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10023ba
push 0x10012e1
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.010074f0
push 0x100d2a4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push 0x238
push eax
call fcn.01001fa9
add esp, 0x14
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01006b7f
leave
ret
Function at 0x1002424
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100256a
cmp byte [edi], 0
je 0x100256a
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f2e
push 0x1001328
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f68
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x24c], eax
je 0x1002569
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f2e
test byte [ebp - 0x248], 0x10
lea eax, [ebp - 0x21c]
je 0x100250d
push 0x1001324
push eax
call ebx
test eax, eax
je 0x100253a
push 0x1001320
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
je 0x100253a
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f68
push 0x10012e1
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010074f0
lea eax, [ebp - 0x108]
push eax
call fcn.01002424
jmp 0x100253a
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f68
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100249e
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01006b7f
leave
ret 4
Function at 0x100267a
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov byte [esi], 0
cmp byte [ebx], 0x23
push edi
jne 0x10027b8
inc ebx
movsx eax, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push ebx
mov byte [ebp - 0x109], al
call edi
push eax
call edi
cmp byte [ebp - 0x109], 0x53
mov ebx, eax
je 0x10027b8
cmp byte [ebp - 0x109], 0x57
je 0x10027ac
push 0x1001330
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x11c], edi
call fcn.01001f2e
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.010074f0
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10027cb
lea eax, [ebp - 0x11c]
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0x10012e1
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100279e
cmp dword [ebp - 0x114], 2
jne 0x100278b
push edi
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100278b
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01001f2e
jmp 0x1002794
cmp dword [ebp - 0x114], 1
jne 0x100279e
mov dword [ebp - 0x110], 1
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10027c2
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x10027cb
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 0x110], 0
jne 0x10027d5
push ebx
push dword [ebp + 0xc]
push esi
call fcn.010074f0
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.01006b7f
leave
ret 0xc