joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6046a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21e]
mov edx, 0x60472c
call fcn.00427e0c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5c], 0
je 0x6046db
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x5c]
lea eax, [ebp - 0x208]
call fcn.00427e0c
jmp 0x6046ec
lea eax, [ebp - 0x208]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x428]
push eax
push 0
lea eax, [ebp - 0x21e]
push eax
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetTempFileNameW
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x428]
mov ecx, 0x105
call fcn.0040b0e4
mov esp, ebp
pop ebp
ret
Function at 0x555f00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5772c4]
add eax, 0xe9a
mov dword [0x5772c4], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x555f60
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x556024
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + ecx*2 - 0x14]
mov word [ebp - 0x1a], dx
mov ax, word [ebp - 0x1a]
cmp ax, 0x64
je 0x555fd4
jmp 0x555f3b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x555f8d
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
jl 0x555f60
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
jne 0x555f3b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x555f3b
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff5
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp word [eax], 0x61
je 0x555f45
jmp 0x555f3b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x555f3b
mov eax, dword [0x5772c8]
add eax, 0x26b1
mov dword [0x5772c8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x555f3b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x14], eax
jne 0x555f3b
mov eax, dword [ebp - 0x14]
add esp, 0x28
pop ebp
ret
Function at 0x5560c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x5772d0], 0
mov byte [0x5772d4], 0
mov dword [0x5772c4], 0xcd2
mov dword [0x5772cc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x5561d2
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x5772d8], 0
mov edx, dword [0x5772c4]
mov esi, edx
add esi, 0xfffff4ea
mov dword [0x5772c4], esi
mov esi, dword [0x5772d0]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi + eax]
add ebx, esi
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 0x28], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add ebx, edx
mov dword [0x5772d8], ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffff1c3
mov dword [0x5772c4], edx
mov eax, ebx
cdq
idiv ecx
mov dword [0x5772d0], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [edi + ecx]
mov byte [0x5772d4], cl
mov dword [0x5772c8], 0x17dd
mov cl, byte [edi + edx]
mov edx, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov dword [0x5772c4], 0x742
mov cl, byte [0x5772d4]
mov ebx, dword [0x5772d0]
mov byte [edi + ebx], cl
mov ebx, dword [0x5772cc]
add ebx, 1
mov dword [0x5772cc], ebx
cmp ebx, 0x100
mov dword [ebp - 0x20], ebx
jl 0x55610a
jmp 0x556204
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x5772c4], 0x11d2
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x5772cc]
add eax, 1
mov dword [0x5772cc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x5561d2
jmp 0x55620c
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x5772cc], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x55610a
Function at 0x556c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x5772c4], 0x26fd
mov dword [0x5772cc], 0
mov dword [0x5772d0], 0
mov dword [0x5772dc], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x556d8b
jmp 0x556c78
mov eax, dword [0x5772d0]
mov ecx, dword [0x5772c4]
mov edx, dword [0x5772cc]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
jmp 0x556c91
xor eax, eax
mov ecx, 0x26fd
mov edx, eax
mov esi, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], eax
jmp 0x556c91
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov edi, 0x100
add ecx, 0x78a
mov dword [0x5772c4], ecx
add edx, 1
mov dword [ebp - 0x34], eax
mov eax, edx
cdq
idiv edi
mov dword [0x5772cc], edx
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
add ebx, esi
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x5772d0], edx
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x5772d4], cl
mov dword [0x5772c4], 0xb52
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x5772d4]
mov edx, dword [0x5772d0]
mov byte [edi + edx], cl
mov edx, dword [0x5772cc]
movzx edx, byte [edi + edx]
mov ebx, dword [0x5772d0]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x5772c4], 0x1ac5
and ebx, 0xff
mov dword [0x5772dc], ebx
mov dword [0x5772c8], 0xe6b
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x34]
mov ch, byte [edx + ebx]
mov dl, cl
add dl, byte [0x5772e1]
mov byte [0x5772e0], dl
mov byte [0x5772e1], ch
mov byte [0x5772e2], cl
mov dword [0x5772c4], 0x120f
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x20], ebx
jne 0x556c56
jmp 0x556d8b
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x556da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa8
mov al, 0x6b
xor ecx, ecx
lea edx, [ebp - 0x4c]
mov dword [0x5772c4], 0x150f
mov byte [ebp - 0x6c], 0x6b
mov byte [ebp - 0x6b], 0x65
mov byte [ebp - 0x6a], 0x72
mov byte [ebp - 0x69], 0x6e
mov byte [ebp - 0x68], 0x65
mov byte [ebp - 0x67], 0x6c
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x32
mov byte [ebp - 0x64], 0x2e
mov byte [ebp - 0x63], 0x64
mov byte [ebp - 0x62], 0x6c
mov byte [ebp - 0x61], 0x6c
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 0x9a
mov dword [0x5772c8], 0xdc
mov dword [ebp - 0x70], edx
mov byte [ebp - 0x71], al
mov dword [ebp - 0x78], ecx
jmp 0x556e77
mov eax, dword [ebp - 0x7c]
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [0x5772c8]
add ecx, 0xffffdfb5
mov dword [0x5772c4], ecx
mov dword [ebp - 0x80], eax
jmp 0x556ebe
xor eax, eax
mov dword [ebp - 0x7c], eax
jmp 0x556e0a
mov dword [0x5772c8], 0x2c48
mov dword [0x5772c4], 0x1a69
mov ecx, dword fs:[0x18]
cmp ecx, 0x1000
mov dword [ebp - 0x84], ecx
jb 0x556e18
jmp 0x556ea1
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
jmp 0x556efa
mov eax, dword [ebp - 0x78]
mov cl, byte [ebp - 0x71]
movsx edx, cl
mov si, dx
mov word [ebp + eax*2 - 0x4c], si
mov edx, eax
add edx, 1
mov cl, byte [ebp + eax - 0x6b]
cmp cl, 0
mov byte [ebp - 0x71], cl
mov dword [ebp - 0x78], edx
je 0x556e3b
jmp 0x556e77
mov dword [0x5772c4], 0x15ed
mov dword [0x5772c8], 0x2566
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
xor ecx, ecx
mov dword [0x5772c4], 0x1aad
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov edx, eax
add edx, 0x14
mov eax, dword [eax + 0x14]
cmp eax, edx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x7c], ecx
je 0x556e0a
jmp 0x556e66
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x28]
mov dx, word [eax + 0x24]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x9c], esi
je 0x556f31
xor eax, eax
mov dword [ebp - 0xa0], eax
jmp 0x556f4f
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x90]
cmp ecx, edx
mov dword [ebp - 0x8c], ecx
je 0x556e34
jmp 0x556efa
mov eax, dword [ebp - 0xa0]
mov ecx, eax
add ecx, 1
mov edx, dword [ebp - 0x98]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ecx
mov word [ebp - 0xaa], si
mov word [ebp - 0xac], bx
jb 0x556fa6
mov ax, word [ebp - 0xaa]
mov word [ebp - 0xac], ax
mov ax, word [ebp - 0xac]
mov ecx, dword [ebp - 0xa4]
cmp word [ebp + ecx*2 - 0x4c], ax
sete dl
cmp ax, 0
setne dh
mov bl, dl
and bl, dh
mov esi, dword [ebp - 0xa8]
mov edi, dword [ebp - 0x9c]
cmp esi, edi
setb dh
and dh, bl
test dh, 1
mov dword [ebp - 0xa0], esi
mov byte [ebp - 0xad], dl
jne 0x556f4f
mov al, byte [ebp - 0xad]
mov dword [0x5772c4], 0x252f
test al, 1
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xb4], ecx
jne 0x557013
jmp 0x556f31
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7c], eax
jmp 0x556e0a
Function at 0x557690
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
call fcn.00401080
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
je 0x557732
mov eax, dword [esp + 0x2c]
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00556840
lea ecx, [0x556760]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x78], edx
mov dword [esp + 0x68], 0x110800
mov edx, dword [0x5772b0]
mov dword [esp + 0x58], edx
mov edx, dword [0x5772b4]
mov dword [esp + 0x88], edx
mov edx, dword [0x5772b8]
mov dword [esp + 0x94], edx
mov edx, dword [0x5772bc]
mov dword [esp + 0x64], edx
mov edx, dword [0x5772c0]
mov dword [esp + 0x40], edx
mov dword [0x5772c4], 0x260
mov dword [0x5772c8], 0xfffff7c0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
jmp 0x557767
lea eax, [esp + 0x40]
mov ecx, dword [0x5772c4]
add ecx, 0xfffffa3e
mov dword [0x5772c8], ecx
mov dword [esp + 0x20], eax
call fcn.00555f00
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
je 0x5576ba
jmp 0x557804
mov eax, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x55779e
mov eax, dword [esp + 0x18]
add eax, 0x3c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx], 0x4550
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
je 0x5577bc
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x5772c4], 0x7ac
mov dword [esp + 0x24], eax
jmp 0x557767
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x40]
mov dword [esp + 0x50], eax
mov dword [0x5772c4], 0x1606
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005570d0
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x5576b2
Function at 0x557910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.00557390
mov ecx, eax
mov eax, dword [eax + 0x3c]
add eax, 0x78
mov edx, ecx
add edx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x14]
add esi, dword [esi + edx + 0x20]
mov dword [0x5772c4], 0x239b
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + edx + 0x18]
cmp ebx, 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
je 0x557990
jmp 0x55799b
mov eax, dword [ebp - 0x2c]
add eax, 2
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov edx, dword [ebp - 0x1c]
cmp ecx, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jb 0x5579ad
jmp 0x557a5d
mov eax, dword [ebp - 0x28]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x14]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x46], cl
mov byte [ebp - 0x47], bl
je 0x557a23
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x46]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dl, byte [ebp - 0x46]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x47], dl
jne 0x5579c7
mov al, byte [ebp - 0x47]
test al, 1
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
jne 0x557a35
jmp 0x55796d
mov eax, dword [ebp - 0x4c]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x1c]
mov esi, dword [ebp - 0x14]
add esi, dword [ecx + eax*4]
mov dword [0x5772c4], 0xbb6
mov dword [ebp - 0x28], esi
jmp 0x557990
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x557990
Function at 0x401820
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x445054]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401897
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x18], 0
je 0x4018a3
mov byte [ebp - 0xd], 1
jmp 0x4018a7
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004112c7
mov esp, ebp
pop ebp
ret

Function at 0x401990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43356c
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x445054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00401820
movzx eax, al
test eax, eax
jne 0x401add
mov dword [ebp - 0x84], 0x3c
push 0x38
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.00413600
add esp, 0xc
mov dword [ebp - 0x78], str.runas
lea edx, [ebp - 0x40]
push edx
call fcn.004018c0
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004016c0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040c930
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x68], 1
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x401ab9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x4c7
jne 0x401a6c
push 0x4054a0
push str.Could_not_escalate_privileges.
push 0x4462b0
call fcn.00403370
add esp, 8
mov ecx, eax
call fcn.00408600
jmp 0x401a95
push 0x4054a0
mov eax, dword [ebp - 0x48]
push eax
push str.Error_occurred:
push 0x4462b0
call fcn.00403370
add esp, 8
mov ecx, eax
call fcn.00408470
mov ecx, eax
call fcn.00408600
mov byte [ebp - 0x41], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407c30
mov al, byte [ebp - 0x41]
jmp 0x401adf
push 0
call fcn.00415f2e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407c30
jmp 0x401adf
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004112c7
mov esp, ebp
pop ebp
ret
Function at 0x4020f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0xf0000008
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40214c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push 0x4054a0
mov ecx, dword [ebp - 8]
push ecx
push str.CryptAcquireContext_failed_with_error:
push 0x446200
call fcn.00403370
add esp, 8
mov ecx, eax
call fcn.00408470
mov ecx, eax
call fcn.00408600
xor al, al
jmp 0x4021b0
mov edx, dword [ebp + 8]
push edx
push 0x20
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4021a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
push 0x4054a0
mov ecx, dword [ebp - 0xc]
push ecx
push str.CryptGenRandom_failed_with_error:
push 0x446200
call fcn.00403370
add esp, 8
mov ecx, eax
call fcn.00408470
mov ecx, eax
call fcn.00408600
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x4021b0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x402460
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x445054]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 8
mov byte [ebp - 0x2f], 2
xor eax, eax
mov word [ebp - 0x2e], ax
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
push 0x20
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00413080
add esp, 0xc
push 0xf0000008
push 0x18
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40256f
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0x2c
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x402563
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0040ed00
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.0040c270
push eax
call fcn.00413080
add esp, 0xc
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.0040c270
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x40254d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x44], edx
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.0040ed00
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004112c7
mov esp, ebp
pop ebp
ret
Function at 0x402db0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43392b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x445054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4354e0]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
jmp 0x402dfb
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0x1a
jge 0x402e7a
mov edx, 1
mov ecx, dword [ebp - 0x2c]
shl edx, cl
and edx, dword [ebp - 0x34]
je 0x402e75
mov eax, dword [ebp - 0x2c]
add eax, 0x41
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x30], al
push 0x4054a0
lea eax, [ebp - 0x30]
push eax
push 0x446200
call fcn.00403370
add esp, 8
mov ecx, eax
call fcn.00408600
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406300
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402b30
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407c30
jmp 0x402df2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004112c7
mov esp, ebp
pop ebp
ret