joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a120
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
test eax, eax
je 0x1001a267
mov edx, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
push edi
cmp eax, 4
jb 0x1001a163
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x1001a148
mov dword [esp + 0x38], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
test eax, eax
je 0x1001a263
cmp eax, 0x40
jb 0x1001a248
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x1001a195
cmp edi, ebx
jae 0x1001a248
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x1001a1a6
cmp edi, edx
jae 0x1001a248
mov ecx, eax
lea edi, [esi + 0x20]
mov eax, esi
mov dword [esp + 0x18], edi
sub eax, ebx
and ecx, 0xffffffc0
mov dword [esp + 0x20], eax
mov edi, edx
sub edi, ebx
mov dword [esp + 0x28], ecx
mov eax, edx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
lea ecx, [ebx + 0x10]
sub eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edx + ebp]
lea edi, [edi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [edi - 0x60], xmm1
movups xmm1, xmmword [eax + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [esi + ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + edi - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [edi - 0x30], xmm1
cmp ebp, dword [esp + 0x28]
jb 0x1001a1e1
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebp
cmp ebp, eax
jae 0x1001a263
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + esi - 1], cl
sub eax, 1
jne 0x1001a251
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x1001a270
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
test eax, eax
je 0x1001a363
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
cmp eax, 4
jb 0x1001a2a9
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor dword [esi], ecx
add edx, 4
add esi, 4
sub edi, 1
jne 0x1001a293
mov dword [esp + 0x1c], eax
push ebx
xor ebx, ebx
test eax, eax
je 0x1001a360
cmp eax, 0x40
jb 0x1001a34b
lea ecx, [edx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x1001a2cf
cmp edi, edx
jae 0x1001a34b
push ebp
mov ebp, eax
lea edi, [edx + 0x30]
and ebp, 0xffffffc0
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], ebp
mov ebp, edx
sub ebp, esi
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
nop
movups xmm0, xmmword [ecx - 0x10]
add ebx, 0x40
lea edi, [edi + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edi - 0x70]
pxor xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [eax + ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [edi - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [edi - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp ebx, ebp
jb 0x1001a2f0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
pop ebp
cmp ebx, eax
jae 0x1001a360
sub edx, esi
lea edi, [ebx + esi]
sub eax, ebx
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor byte [edi - 1], cl
sub eax, 1
jne 0x1001a352
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x100333b0
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x100c8fe8], 0
jne 0x100333be
call fcn.1004c360
cmp byte [0x100c8ff2], 0
je 0x100333dc
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.1004ca00
add esp, 0x10
ret
jmp fcn.100316d0

Function at 0x100333f0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009697d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100c29e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push 0
push 0
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x10033466
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push 0
push str.Crypto_RNG
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x10033466
push 0x28
push 1
push eax
push str.Crypto_RNG
push esi
call edi
test eax, eax
je 0x10033484
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10065d4c
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CryptAcquireContext
lea ecx, [ebp - 0x28]
call fcn.1000dbd0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.10033550
push 0x100b8888
lea eax, [ebp - 0x50]
push eax
call fcn.1006712e
int3
Function at 0x10033ad0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097b5d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100c29e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x64], ebx
test ebx, ebx
jne 0x10033b12
xor esi, esi
jmp 0x10033b1d
push ebx
call fcn.1001c110
add esp, 4
mov esi, eax
mov dword [ebp - 0x60], esi
push 1
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.10017710
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], vtable.CryptoPP::NonblockingRng.0
call fcn.100333f0
lea ecx, [ebp - 0x51]
mov byte [ebp - 4], 1
call fcn.100339c0
push esi
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x10033bb8
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 0
mov dword [ebp - 0x5c], vtable.CryptoPP::NonblockingRng.0
test eax, eax
je 0x10033b75
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [edi]
mov ecx, edi
push ebx
push esi
call dword [eax + 0x10]
mov dword [ebp - 4], 4
test esi, esi
je 0x10033b9a
xor al, al
mov edi, esi
mov ecx, ebx
rep stosb byte es:[edi], al
push esi
call fcn.1001c170
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10065d4c
mov esp, ebp
pop ebp
ret 8
push 0x100a0044
lea ecx, [ebp - 0x28]
call fcn.1000dbd0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x50]
call fcn.10033550
push 0x100b8888
lea eax, [ebp - 0x50]
push eax
call fcn.1006712e
int3
Function at 0x10083cb1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a6f08
push 0x100a6f00
push str.FlsAlloc
push 0x1e
call fcn.10083b1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10083ce5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009d1dc]
call esi
jmp 0x10083ceb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10083d2f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a6f18
push 0x100a6f10
push str.FlsGetValue
push 0x20
call fcn.10083b1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10083d66
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009d1dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10086643
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100864b4

Function at 0x10086a3d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10066ea0
mov eax, dword [0x100c29e4]
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.10085271
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10086a7f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10086bdb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10065d60
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 + 0x100c9cd0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10087bf3
mov ecx, dword [esi*4 + 0x100c9cd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10086bd4
cmp eax, dword [edi + ecx + 0x24]
jne 0x10086bd4
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10086bd4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10087bf3
add esp, 0x14
test edx, edx
jl 0x10086bd4
jg 0x10086b4a
test eax, eax
jb 0x10086bd4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10086bd4
jl 0x10086b64
cmp dword [ebp - 0x1008], eax
ja 0x10086bd4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10086b82
test ebx, ebx
je 0x10086bbb
cmp ecx, edi
jae 0x10086bbb
mov al, byte [ecx]
cmp al, 0xd
jne 0x10086b9c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10086ba8
cmp byte [ecx + 1], 0xa
jne 0x10086ba8
inc ecx
jmp 0x10086ba8
movzx eax, al
movsx eax, byte [eax + 0x100c2c68]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10086b82
cmp edx, ebx
jne 0x10086b82
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10086bd9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10065d4c
leave
ret
Function at 0x100870ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x100c9cd0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100870eb
cmp byte [ebx], 0xa
jne 0x100870eb
or byte [eax + edi + 0x28], 4
jmp 0x100870f0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100871ee
mov al, byte [edx]
cmp al, 0x1a
je 0x100871d0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1008711f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10087144
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1008714e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10087101
jmp 0x100871ee
push 0
lea eax, [ebp - 0xc]
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 0x100871cb
cmp dword [ebp - 0xc], 0
je 0x100871cb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100c9cd0]
test byte [eax + edi + 0x28], 0x48
je 0x100871a5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10087190
mov byte [esi], dl
jmp 0x100871a1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c9cd0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100871ee
cmp byte [ebp - 1], 0xa
jne 0x100871b4
cmp esi, ebx
jne 0x100871b4
mov byte [esi], 0xa
jmp 0x100871ed
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10087c11
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100871ee
mov byte [esi], 0xd
jmp 0x100871ed
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100c9cd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100871ea
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100871ee
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100871f7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100c9cd0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1008723a
cmp word [esi], dx
jne 0x1008723a
or byte [edi + eax + 0x28], 4
jmp 0x1008723f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10087378
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10087358
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10087281
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100872b7
cmp eax, edx
jae 0x100872c3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10087259
jmp 0x10087378
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10087354
cmp dword [ebp - 0x14], 0
je 0x10087354
mov eax, dword [ebx*4 + 0x100c9cd0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1008732c
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10087372
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100c9cd0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100c9cd0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100c9cd0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10087375
pop ebx
cmp word [ebp - 4], bx
jne 0x1008733d
cmp esi, dword [ebp + 0xc]
jne 0x1008733d
mov word [esi], bx
jmp 0x10087375
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10087c11
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10087378
push 0xd
jmp 0x10087371
mov ecx, dword [ebx*4 + 0x100c9cd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1008736f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10087378
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1008c675
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 0x1008c712
push ebx
push esi
call fcn.1008c63e
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.100884c2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008c6bf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008c711
push edi
push eax
call fcn.10084380
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008c6df
call fcn.10083843
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008c710
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100884c2
add esp, 0x20
test eax, eax
jne 0x1008c6fe
push edi
call fcn.10083843
jmp 0x1008c706
push ebx
call fcn.10083843
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 0x1008c715
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1008c726
pop esi
ret
push ebx
push edi
push esi
call fcn.1008c63e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10084380
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008c74e
push ebx
push esi
push edi
call fcn.10067550
add esp, 0xc
push 0
call fcn.10083843
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1008cb12
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008c763
Function at 0x10093651
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]
push dword [ebp + 0xc]
push ebx
call fcn.100935cd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100937c9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100937c9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10093778
jg 0x100936aa
test eax, eax
je 0x1009376e
push 1
push 0x1000
call fcn.100837e6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100936d0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10093765
push 0x8000
push ebx
call fcn.100934fe
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100936fc
jg 0x100936f7
cmp ecx, 0x1000
jb 0x100936fc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100862b4
add esp, 0x10
cmp eax, 0xffffffff
je 0x10093741
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 0x100936f7
jl 0x10093728
test ecx, ecx
jne 0x100936e9
push dword [ebp - 0xc]
push ebx
call fcn.100934fe
push esi
call fcn.10083843
add esp, 0xc
xor edi, edi
jmp 0x100937da
cmp byte [edi + 0x24], 0
je 0x10093758
cmp dword [edi + 0x20], 5
jne 0x10093758
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10093763
mov edi, dword [edi + 0x18]
jmp 0x10093765
xor edi, edi
push esi
call fcn.10083843
pop ecx
jmp 0x100937da
test ecx, ecx
jg 0x1009373a
jl 0x10093778
test eax, eax
jae 0x1009373a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10087c11
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1009379b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1009373a
jmp 0x100937d2
push ebx
call fcn.1008f59f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1009373a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100937da
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100937d7
mov edi, dword [edi + 0x18]
jmp 0x100937da
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10087c11
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10094120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009414d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009414d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x11651190
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x117b28c8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
test eax, eax
jne 0x116511d0
mov esi, str.Wtsapi32.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x116511bb
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x117b28c8], eax
je 0x1165121e
push ebx
push dword [ebp + 8]
call eax
mov edi, eax
test edi, edi
jne 0x1165121e
call fcn.116ba210
cmp eax, dword [ebp + 8]
je 0x1165121e
push 1
push str.SeDebugPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.116a6b00
call fcn.11651df0
push eax
call fcn.116a7750
add esp, 0x10
mov esi, eax
push ebx
push dword [ebp + 8]
call dword [0x117b28c8]
test esi, esi
mov edi, eax
je 0x1165121e
call fcn.116a7a60
xor eax, eax
cmp dword [0x117bf508], eax
je 0x1165124c
cmp ebx, eax
je 0x1165122e
mov eax, dword [ebx]
push eax
push dword [ebp + 8]
push edi
push str.CAdminTokenMgr::UseWTSQueryUserToken__Ret___d__dwSessionId__d__hToken__08x_
push str.AdminToken
push 0xffffffffffffffff
push 0x117bec74
call fcn.116bdad0
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x11651362
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
je 0x11651445
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 8]
push eax
push 2
push dword [ebp + 8]
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x11651434
cmp dword [ebp - 8], ebx
je 0x11651434
lea eax, [ebp - 4]
mov byte [ebp - 0x1c], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x11651434
push esi
push edi
mov edi, dword [ebp - 8]
xor esi, esi
cmp dword [edi], ebx
jbe 0x11651432
lea eax, [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x11651412
add dword [ebp - 0xc], 8
inc esi
cmp esi, dword [edi]
jb 0x116513f5
jmp 0x11651432
test byte [edi + esi*8 + 8], 8
push 1
lea eax, [edi + esi*8 + 8]
pop ecx
mov dword [ebp - 0x10], ecx
je 0x11651428
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
test byte [eax], 4
je 0x11651432
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
pop edi
pop esi
cmp dword [ebp - 4], ebx
je 0x11651445
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call fcn.116510a0
cmp dword [0x117bf508], ebx
pop ecx
pop ebx
je 0x11651480
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
push dword [ebp - 0x10]
push str.CAdminTokenMgr::IsInAdminGroup__bIsAdmin___d__hToken__08x__bOwner___d___bEnabled__d_
push str.AdminToken
push 0xffffffffffffffff
push 0x117bec74
call fcn.116bdad0
add esp, 0x20
mov eax, dword [ebp - 0x10]
leave
ret