joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b4c4e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100af6e0
mov eax, dword [0x10184470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100c5d4f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100b4c90
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100b4dec
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100af740
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x101b8590]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100c8036
mov ecx, dword [esi*4 + 0x101b8590]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100b4de5
cmp eax, dword [ecx + edi + 0x24]
jne 0x100b4de5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b4de5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100c8036
add esp, 0x14
test edx, edx
jl 0x100b4de5
jg 0x100b4d5b
test eax, eax
jb 0x100b4de5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100b4de5
jl 0x100b4d75
cmp dword [ebp - 0x1008], eax
ja 0x100b4de5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100b4d93
test ebx, ebx
je 0x100b4dcc
cmp ecx, edi
jae 0x100b4dcc
mov al, byte [ecx]
cmp al, 0xd
jne 0x100b4dad
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100b4db9
cmp byte [ecx + 1], 0xa
jne 0x100b4db9
inc ecx
jmp 0x100b4db9
movzx eax, al
movsx eax, byte [eax + 0x10184670]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100b4d93
cmp edx, ebx
jne 0x100b4d93
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100b4dea
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100b0b79
leave
ret

Function at 0x100c3d73
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100c3db2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100c3db2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100c3db2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100c3db2
cmp dword [ecx + 0x74], 0xe
jbe 0x100c3db2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100c4e5b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1014c6a4
push 0x1014c69c
push str.FlsAlloc
push 0x1f
call fcn.100c4cb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100c4e8f
push dword [ebp + 8]
mov ecx, esi
call dword [0x100d52c0]
call esi
jmp 0x100c4e95
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100c4ed9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1014c6b4
push 0x1014c6ac
push str.FlsGetValue
push 0x21
call fcn.100c4cb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100c4f10
push dword [ebp + 8]
mov ecx, esi
call dword [0x100d52c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100c4f18
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1014c6bc
push 0x1014c6b4
push str.FlsSetValue
push 0x22
call fcn.100c4cb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100c4f52
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100d52c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100c7334
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101b8590]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100c7374
cmp byte [ebx], 0xa
jne 0x100c7374
or byte [edi + eax + 0x28], 4
jmp 0x100c7379
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100c7478
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100c745b
inc eax
cmp dl, 0xd
je 0x100c73a5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100c73cb
cmp eax, ecx
jae 0x100c73d9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100c738d
jmp 0x100c7478
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100c7456
cmp dword [ebp - 0x10], 0
je 0x100c7456
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101b8590]
test byte [eax + edi + 0x28], 0x48
je 0x100c7430
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100c741b
mov byte [esi], dl
jmp 0x100c742c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101b8590]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100c7478
cmp byte [ebp - 1], 0xa
jne 0x100c743f
cmp esi, ebx
jne 0x100c743f
mov byte [esi], 0xa
jmp 0x100c7477
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100c8054
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100c7478
mov byte [esi], 0xd
jmp 0x100c7477
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101b8590]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100c7475
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100c7478
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100c7481
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101b8590]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100c74c7
cmp word [ebx], dx
jne 0x100c74c7
or byte [eax + edi + 0x28], 4
jmp 0x100c74cc
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100c762f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100c760f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100c750d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100c7543
cmp eax, edx
jae 0x100c7551
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100c74e8
jmp 0x100c762f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100c760a
cmp dword [ebp - 0x18], 0
je 0x100c760a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101b8590]
test byte [eax + edi + 0x28], 0x48
je 0x100c75e0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100c75a4
mov word [esi], cx
jmp 0x100c75db
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101b8590]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101b8590]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101b8590]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100c762f
pop eax
cmp word [ebp - 4], ax
jne 0x100c75f0
cmp esi, ebx
jne 0x100c75f0
mov word [esi], ax
jmp 0x100c762c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100c8054
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100c762f
push 0xd
pop eax
jmp 0x100c75eb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101b8590]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100c7629
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100c762f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100caa55
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100ca9d7
Function at 0x100cc5f4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100cc691
push ebx
push esi
call fcn.100cc5bd
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100cc551
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100cc63e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100cc690
push edi
push eax
call fcn.100c860a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100cc65e
call fcn.100c4b30
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100cc68f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100cc551
add esp, 0x20
test eax, eax
jne 0x100cc67d
push edi
call fcn.100c4b30
jmp 0x100cc685
push ebx
call fcn.100c4b30
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100d11c1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100d113d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100d1330
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100d1330
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100d12e5
jg 0x100d121d
test eax, eax
je 0x100d12db
push 1
push 0x1000
call fcn.100c4ad3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100d1240
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100d12d2
push 0x8000
push ebx
call fcn.100d106e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100d1269
jg 0x100d1264
cmp ecx, 0x1000
jb 0x100d1269
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100c7118
add esp, 0x10
cmp eax, 0xffffffff
je 0x100d12ae
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100d1264
jl 0x100d1295
test ecx, ecx
jne 0x100d1256
push dword [ebp - 0xc]
push ebx
call fcn.100d106e
push esi
call fcn.100c4b30
add esp, 0xc
xor ebx, ebx
jmp 0x100d133e
cmp byte [edi + 0x24], 0
je 0x100d12c5
cmp dword [edi + 0x20], 5
jne 0x100d12c5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100d12d0
mov ebx, dword [edi + 0x18]
jmp 0x100d12d2
xor ebx, ebx
push esi
call fcn.100c4b30
pop ecx
jmp 0x100d133e
test ecx, ecx
jg 0x100d12a7
jl 0x100d12e5
test eax, eax
jae 0x100d12a7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100c8054
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100d1305
cmp byte [edi + 0x1c], 0
je 0x100d12a7
jmp 0x100d1336
push ebx
call fcn.100cd165
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100d12a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100d133e
cmp byte [edi + 0x1c], 0
je 0x100d133b
mov ebx, dword [edi + 0x18]
jmp 0x100d133e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100c8054
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100d2570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100d259d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100d259d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x10001030
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1001f0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push esi
mov dword [ebp - 0x21c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x10001137
lea eax, [ebp - 0x210]
push eax
push 0x10017268
push 1
push esi
push 0x10017278
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10001131
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push 0x10017288
push eax
call dword [ecx]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x50]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100010c2
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
cmp dword [ebp - 0x218], esi
jl 0x10001125
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.1000c780
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x21c]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000a7e1
leave
ret
Function at 0x10001772
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1001f0b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000179d
xor al, al
jmp 0x100017f2
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x100017bd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001799
mov eax, dword [ebp - 0x20]
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100017b2
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a7e1
leave
ret

Function at 0x100017fe
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1001f0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov edi, eax
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.1000c780
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1000187d
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10001883
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10001858
jmp 0x10001889
mov ebx, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1000a7e1
leave
ret
Function at 0x10002887
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
lea eax, [ebp + 0x10]
push eax
jne 0x1000289b
push 0xf003f
jmp 0x100028a0
push 0xf013f
push 0
push str.SOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100028ef
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100028ba
push esi
sub eax, ecx
push eax
push dword [ebp + 8]
push 1
push 0
push str.WINDOWS
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x100028ef
xor eax, eax
inc eax
jmp 0x100028f1
xor eax, eax
pop ebp
ret 0xc

Function at 0x100028f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0x198d
je 0x10002925
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x10002924
mov eax, dword [ebp + 8]
mov ecx, esi
and ecx, 3
shl ecx, 3
mov edx, 0x867
shr edx, cl
xor byte [eax + esi], dl
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x10002909
pop esi
pop ebp
ret
Function at 0x10002c76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1001f0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp + 0xc]
push 0x40000000
push eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x108], eax
cmp eax, 0xffffffff
je 0x10002dcc
push edi
push 0xfe
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.1000c780
lea edi, [ebp - 0x104]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10002ced
push esi
mov esi, 0x1001b6f4
push 1
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10002d0b
mov esi, str.cef.dll
lea eax, [ebp - 0x104]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x10c]
movsd dword es:[edi], dword [esi]
call fcn.1000b000
pop ecx
pop ecx
test eax, eax
je 0x10002d8c
mov esi, 0x1f400000
push esi
call fcn.1000af6b
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10002dbe
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push edi
call fcn.10013100
mov eax, dword [ebp - 0x110]
mov ecx, esi
sub ecx, eax
push ecx
add eax, edi
push ebx
push eax
call fcn.1000c780
add esp, 0x18
push ebx
lea eax, [ebp - 0x10c]
push eax
push esi
push edi
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.1000af31
pop ecx
jmp 0x10002db2
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x110]
mov dword [ebp - 0x10c], ebx
push dword [ebp - 0x114]
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000a7e1
leave
ret

Function at 0x10002dd9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.1000a536
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10002e37
push dword [ebp + 8]
call esi
push edi
call fcn.1000b341
pop ecx
push dword [ebp + 8]
call esi
lea esi, [ebx - 0x850]
push esi
call fcn.1000a536
mov ebx, eax
push esi
lea eax, [edi + 0x36]
push eax
push ebx
call fcn.10013100
push 0x18cc
push esi
push ebx
call fcn.100028f5
push esi
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.10002c76
push ebx
call fcn.1000b341
push edi
call fcn.1000b341
add esp, 0x2c
pop edi
pop esi
pop ebx
leave
ret