joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403600
Capabilities:
Create pipe
Create process on windows
Get thread local storage value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.00410190
mov eax, dword [0x45b9f4]
mov ecx, dword [0x45b484]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403723
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x45b9f4], 0x959
jne 0x40370c
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403340
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x40363e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4052e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c168]
jne 0x4052ea
repz ret
jmp fcn.00409c2c

Function at 0x40a36e
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.004088a0
and dword [ebp - 4], 0
cmp dword [0x4529b0], 0
mov ebx, eax
jne 0x40a41f
push 0x401ae8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401adc
push edi
call esi
test eax, eax
je 0x40a4d0
push eax
call fcn.0040882e
mov dword [esp], 0x401acc
push edi
mov dword [0x4529b0], eax
call esi
push eax
call fcn.0040882e
mov dword [esp], 0x401ab8
push edi
mov dword [0x4529b4], eax
call esi
push eax
call fcn.0040882e
mov dword [esp], 0x401a9c
push edi
mov dword [0x4529b8], eax
call esi
push eax
call fcn.0040882e
pop ecx
mov dword [0x4529c0], eax
test eax, eax
je 0x40a41f
push 0x401a84
push edi
call esi
push eax
call fcn.0040882e
pop ecx
mov dword [0x4529bc], eax
mov eax, dword [0x4529bc]
cmp eax, ebx
je 0x40a477
cmp dword [0x4529c0], ebx
je 0x40a477
push eax
call fcn.004088a9
push dword [0x4529c0]
mov esi, eax
call fcn.004088a9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a477
test edi, edi
je 0x40a477
call esi
test eax, eax
je 0x40a46e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a46e
test byte [ebp - 0xc], 1
jne 0x40a477
or dword [ebp + 0x10], 0x200000
jmp 0x40a4b0
mov eax, dword [0x4529b4]
cmp eax, ebx
je 0x40a4b0
push eax
call fcn.004088a9
pop ecx
test eax, eax
je 0x40a4b0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a4b0
mov eax, dword [0x4529b8]
cmp eax, ebx
je 0x40a4b0
push eax
call fcn.004088a9
pop ecx
test eax, eax
je 0x40a4b0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4529b0]
call fcn.004088a9
pop ecx
test eax, eax
je 0x40a4d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7f0d48
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x401129
cmp dword fs:[0xc0], eax
je 0x40102b
mov dword [0x7f0d44], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x7f0c2c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7f0c30], eax
movzx edx, word [esi + 0xac]
mov dword [0x7f0c34], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7f0c38], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40108b
push 0x7f
push eax
push 0x7f0c3c
call fcn.004039f0
mov edx, dword [0x7f0c34]
add esp, 0xc
jmp 0x401093
xor eax, eax
mov word [0x7f0c3c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7f0d3c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7f0d3e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7f0d40], ax
mov ecx, eax
mov byte [0x7f0d42], 0
cmp byte [0x7ffe0268], 0
je 0x4010da
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7f0d42], bl
cmp ebx, 1
pop ebx
jne 0x4010f4
and ecx, 0xffef
mov word [0x7f0d40], cx
test edx, edx
jne 0x401129
call section..text
cmp dword [0x7f0c2c], 6
ja 0x401129
jb 0x401111
cmp dword [0x7f0c30], 4
jae 0x401129
call section..text
cmp dword [0x7f0c2c], 0xa
jae 0x401129
mov dword [0x7f0c34], 1
ret

Function at 0x401130
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40118b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401150
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40116c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.004039f0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4011ad
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40121f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40121f
test esi, esi
je 0x40121f
cmp word [esi + 0x24], 2
jbe 0x401219
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401219
cmp dword [esi + 0x18], 0
je 0x401219
test ebp, ebp
je 0x4011d5
cmp ebp, eax
jne 0x401219
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.004039f0
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x4011fa
cmp edx, dword [esi + 0x18]
jne 0x401219
cmp dword [esp + 0x14], eax
je 0x40122c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00404380
add esp, 8
test eax, eax
je 0x40122c
mov esi, dword [esi]
cmp esi, ebx
jne 0x4011b3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x401240
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x40128b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x40127b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x401261
jmp 0x401280
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x4012db
mov edi, edx
lea ecx, [edi + 2]
jmp 0x4012a0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4012a0
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x4012bc
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.004039f0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4012fd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401370
mov esi, dword [ebx]
cmp esi, ebx
je 0x401370
test esi, esi
je 0x401370
cmp word [esi + 0x24], 2
jbe 0x40136a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x40136a
cmp dword [esi + 0x18], 0
je 0x40136a
test ebp, ebp
je 0x401325
cmp ebp, eax
jne 0x40136a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.004039f0
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40134a
cmp eax, dword [esi + 0x18]
jne 0x40136a
cmp dword [esp + 0x10], 0
je 0x40137d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00404380
add esp, 8
test eax, eax
je 0x40137d
mov esi, dword [esi]
cmp esi, ebx
jne 0x401303
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x402340
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x7f1620]
sub esp, 0x11c
test eax, eax
jne 0x40243e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00404350
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x402390
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41b100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x4023a0
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41b104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x4023d5
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00401130
pop edi
pop esi
pop ebx
test eax, eax
je 0x402439
mov eax, dword [eax + 0x18]
test eax, eax
je 0x402439
mov dword [0x7f1620], eax
add esp, 0x11c
ret
mov eax, dword [0x7f1620]
add esp, 0x11c
ret

Function at 0x402b50
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x402b78
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x402b86
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x402b9f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x402bad
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x402bc6
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x402bd4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x402bed
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x402bfb
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x402c42
add dword [esp], 5
retf
Function at 0x403720
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7f0c08]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x4038cd
cmp dword [0x7f0c0c], 0
jne 0x4038b9
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00404350
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x403770
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41b0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x403780
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41b0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x4037b5
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00404350
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403814
sub edx, esi
sar edx, 1
je 0x4038cd
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x403830
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x4038cd
xor eax, eax
push ebx
test edx, edx
je 0x403868
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x403868
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x403851
xor eax, eax
test edx, edx
je 0x403882
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x403882
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403870
xor eax, eax
test edx, edx
je 0x40389f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40389f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403890
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7f0c08]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x41a2f2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x6d187a
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6d8128]
push ebx
push edi
push 2
xor ebx, ebx
mov word [ebp - 8], 0x500
pop edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp eax, edi
jne 0x6d19a0
lea ecx, [ebp - 0x10]
call fcn.006d17c0
test eax, eax
jne 0x6d198f
lea eax, [ebp - 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x6d19a0
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x6d1981
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x6d1981
push esi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x6d1980
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x6d1979
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x6d1979
cmp dword [esi], ebx
jbe 0x6d1970
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x6d1965
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x6d194c
jmp 0x6d1970
xor eax, eax
inc eax
mov dword [0x6d8128], 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 - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x6d19a0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x6d19a0
mov dword [0x6d8128], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.006d6e20
mov esp, ebp
pop ebp
ret
Function at 0x6d1f8d
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
test bl, 2
jne 0x6d1fa1
call fcn.006d1e9a
cmp eax, 2
jne 0x6d1fd6
test bl, 4
jne 0x6d1fc2
push 4
push 0x40
push 0
push 0x6d1120
mov edx, 0x522
xor ecx, ecx
call fcn.006d44d8
cmp eax, 6
jne 0x6d1fd6
cmp word [0x6d9a40], 0
jne 0x6d1fd8
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
ret
pop ebx
jmp fcn.006d1eda

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x6d8530], 0
je 0x6d202a
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 0x6d202a
push 0x6d8530
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x6d2269
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 [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6d8530], 0
je 0x6d2384
push esi
lea eax, [ebp - 0x344]
xor esi, esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d2383
push ebx
lea eax, [ebp - 0x348]
mov ebx, 0x238
push eax
lea eax, [ebp - 0x340]
mov dword [ebp - 0x348], ebx
push eax
push esi
push esi
push 0x6d8530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d2376
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x6d2323
push 0x6d1120
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.006d6659
push 0x6d91e4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push ebx
push eax
call fcn.006d16e6
add esp, 0x14
lea ecx, [ebp - 0x340]
lea edx, [ecx + 1]
pop edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6d234e
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push esi
push 0x6d8530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d6e20
mov esp, ebp
pop ebp
ret
Function at 0x6d2397
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x6d8004]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x6d24d2
cmp byte [esi], 0
je 0x6d24d2
mov ebx, 0x104
lea ecx, [esp + 0x150]
push esi
mov edx, ebx
call fcn.006d1645
push 0x6d11d4
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.006d167d
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x6d24d2
push esi
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.006d1645
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x6d2480
push 0x6d11d8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x6d24b0
push 0x6d11dc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x6d24b0
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
lea ecx, [esp + 0x154]
call fcn.006d167d
push 0x6d1120
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.006d6659
lea ecx, [esp + 0x150]
call fcn.006d2397
jmp 0x6d24b0
push eax
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.006d167d
push 0x80
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x6d240e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006d6e20
mov esp, ebp
pop ebp
ret

Function at 0x6d24ec
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x6d2567
push 0x6d11e0
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.006d6659
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x6d2567
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.006d6e20
mov esp, ebp
pop ebp
ret
Function at 0x6d257e
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
movzx eax, cx
xor esi, esi
test eax, eax
je 0x6d262b
cmp eax, 1
je 0x6d25f1
add eax, 0xfffffffe
cmp eax, 1
ja 0x6d2632
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d25ec
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
neg eax
sbb eax, eax
not eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
jmp 0x6d2632
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d25ec
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]
jmp 0x6d25da
call fcn.006d24ec
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret