joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007a2d1
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.1007a24d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1007a449
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1007a449
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1007a3f8
jg 0x1007a32a
test eax, eax
je 0x1007a3ee
push 1
push 0x1000
call fcn.1006c87a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1007a350
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1007a3e5
push 0x8000
push ebx
call fcn.1007a17e
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 0x1007a37c
jg 0x1007a377
cmp ecx, 0x1000
jb 0x1007a37c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1006acf6
add esp, 0x10
cmp eax, 0xffffffff
je 0x1007a3c1
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 0x1007a377
jl 0x1007a3a8
test ecx, ecx
jne 0x1007a369
push dword [ebp - 0xc]
push ebx
call fcn.1007a17e
push esi
call fcn.1006aef6
add esp, 0xc
xor edi, edi
jmp 0x1007a45a
cmp byte [edi + 0x24], 0
je 0x1007a3d8
cmp dword [edi + 0x20], 5
jne 0x1007a3d8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1007a3e3
mov edi, dword [edi + 0x18]
jmp 0x1007a3e5
xor edi, edi
push esi
call fcn.1006aef6
pop ecx
jmp 0x1007a45a
test ecx, ecx
jg 0x1007a3ba
jl 0x1007a3f8
test eax, eax
jae 0x1007a3ba
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006e702
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1007a41b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1007a3ba
jmp 0x1007a452
push ebx
call fcn.10074112
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1007a3ba
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 0x1007a45a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1007a457
mov edi, dword [edi + 0x18]
jmp 0x1007a45a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1006e702
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1007af60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007af8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007af8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x76baa3
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf075a444
jmp 0x76bb09
mov dword [esp + 0xc], esp
call 0x76baa3
shr bl, 0x25
jmp 0x76bb57
pushfd
jmp 0x76b015
mov ecx, dword [esp]
mov ecx, eax
sub esp, 0x11
jp 0x76bb37
rdtsc
lea esp, [esp + 1]
jmp 0x76bb9b
push dword [esp + 0x19]
push esp
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
lea esp, [esp + 0x2c]
jmp 0x76bb03
jmp 0x76bb95
neg cx
jnp 0x76bb78
mov edx, edi
rdtsc
jmp 0x76bb62
lea esp, [esp + 2]
mov dword [esp + 0xc], ebp
pushal
jmp 0x76bb24
lea esi, [esp + 0x10]
lea edi, [ecx + ebp]
bswap edi
call fcn.0076bb7e
and byte [ecx + 0x7bb4829], bh
sbb byte [ebx - 0x75], bh
xlatb
mov edx, edi
rdtsc
jmp 0x76bb62
rdtsc
lea esp, [esp + 1]
mov ebp, dword [esp + 0x3c]
jmp 0x76bb39

Function at 0x76bb7e
Capabilities:
Execute anti-debugging instructions

Disassembly:
setg ch
jmp 0x76bbb7
mov edi, esp
add dl, ah
jle 0x76bcc5
sub dh, 0xe4
bswap eax
jmp 0x76bbe9
sub esp, 0xac
jmp 0x76bba1

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5cac22e2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x14200359
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x416900
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0041698f
jae 0x41690e
xor ecx, ecx
call fcn.0041698f
jae 0x41693d
xor eax, eax
call fcn.0041698f
jae 0x41694d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0041698f
adc al, al
jae 0x41692f
jne 0x416979
stosb byte es:[edi], al
jmp 0x416911
call fcn.0041699b
sub ecx, ebx
jne 0x416956
call fcn.00416999
jmp 0x416975
lodsb al, byte [esi]
shr eax, 1
je 0x416983
adc ecx, ecx
jmp 0x416972
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00416999
cmp eax, 0x7d00
jae 0x416972
cmp ah, 5
jae 0x416973
cmp eax, 0x7f
ja 0x416974
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416911
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x10024c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10024c3f
pop dword [ebp - 0x24]
mov eax, 0x10024c3f
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3ab08
push 0
mov eax, 0x73e4f19a
add eax, 0x9c1d9f72
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x2867f525
add ecx, 0xd7985305
xor edi, edi
add edi, eax
mov ebx, 0x10046c00
add ebx, dword [ebp - 0x24]
mov esi, 0x709bbd96
add esi, 0x27e708ec
mov dword [ebp - 8], 0x50e8d1fb
mov edx, dword [ebx]
add dword [ebp - 0x18], 0x63c5210e
xor edx, esi
sub dword [ebp - 0x14], 0x15b4add
mov dword [edi], edx
sub dword [ebp - 0x14], ebx
add edi, 0x6e702d68
sub edi, 0x6e702d64
add ebx, 4
loop 0x10024c95
add eax, 0xa0f814cc
add eax, 0x5f08feaf
xor ebx, ebx
add ebx, eax
add eax, 0x51881421
add eax, 0xae77ebe4
mov ecx, 0x5612a992
add ecx, 0xb9ed566e
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x401d70
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ebx
push esi
bswap eax
bswap ecx
xor edx, edx
mov dword [ebp - 4], 0x20
push edi
lea esp, [esp]
mov edi, dword [ebp + 0xc]
mov esi, edx
and esi, 3
mov esi, dword [edi + esi*4]
bswap esi
add esi, edx
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
add edi, ecx
xor esi, edi
mov edi, dword [ebp + 0xc]
add eax, esi
sub edx, 0x61c88647
mov esi, edx
shr esi, 0xb
and esi, 3
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
bswap esi
xor edi, ebx
add esi, edx
add edi, eax
xor esi, edi
add ecx, esi
dec dword [ebp - 4]
jne 0x401d90
mov edx, dword [ebp + 8]
pop edi
bswap eax
bswap ecx
pop esi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401e00
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add edx, 7
shr edx, 3
dec edx
mov dword [ebp - 0xc], edx
js 0x401ec5
push ebx
push esi
push edi
jmp 0x401e23
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*8 - 8]
test edx, edx
jne 0x401e2e
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
bswap ecx
bswap eax
mov edx, 0xc6ef3720
mov dword [ebp - 4], 0x20
mov edi, dword [ebp + 0x10]
mov esi, edx
shr esi, 0xb
and esi, 3
mov esi, dword [edi + esi*4]
bswap esi
add esi, edx
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
add edi, ecx
xor esi, edi
mov edi, dword [ebp + 0x10]
sub eax, esi
add edx, 0x61c88647
mov esi, edx
and esi, 3
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
bswap esi
xor edi, ebx
add esi, edx
add edi, eax
xor esi, edi
sub ecx, esi
dec dword [ebp - 4]
jne 0x401e48
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
bswap ecx
mov dword [esi + edx*8], ecx
lea ecx, [esi + edx*8 + 4]
bswap eax
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov edi, dword [eax]
xor dword [esi + edx*8], edi
mov eax, dword [eax + 4]
xor dword [ecx], eax
dec edx
mov dword [ebp - 0xc], edx
jns 0x401e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x1ba34829
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2ebb4572
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x119e3e14
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov dword [eax - 0x86f6f70], edx
not dword [eax - 0x6e6f6f70]
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4d33f4b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
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 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
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 + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
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 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x10874058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x108741a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
Function at 0x408948
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, 0x4085d8
or esi, esi
call fcn.0040896a
sub esi, 0x90f1a448
xor dword [ebx], edi
add eax, 1
inc ebx
cmp ebx, edx
jne fcn.00408948
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Impersonate user
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], edi
push dword [eax + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 4], edi
lea eax, [ebp - 4]
mov dword [ebp + 8], edi
push eax
push edi
push 3
push dword [esi + 4]
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x4010ca
lea eax, [ebp + 8]
push eax
push 1
push 2
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4010c1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4010b8
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4010ab
push 0xe
push dword [esi + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4010ab
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4010da
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
push esi
push edi
push 0x44
pop esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00401b79
lea eax, [ebp - 0x10]
push 0x10
push eax
call fcn.00401b79
or dword [ebp - 0x28], 0x101
add esp, 0x10
mov dword [ebp - 0x54], esi
mov esi, dword [ebp + 8]
push 0x104
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x25c]
push eax
push str._ComSpec_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esi + 0x10]
lea eax, [ebp - 0xa7c]
push str._c__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push 0x8000000
push 1
push eax
push eax
lea eax, [ebp - 0xa7c]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x10], 0
mov edi, eax
je 0x4011a4
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4011a4
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4011ac
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Create process on windows
Impersonate user
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa88
push ebx
push esi
push edi
push 0x44
pop edi
lea eax, [ebp - 0x60]
xor esi, esi
push edi
push eax
call fcn.00401b79
lea eax, [ebp - 0x1c]
push 0x10
push eax
call fcn.00401b79
mov ecx, dword [ebp + 8]
add esp, 0x10
or dword [ebp - 0x34], 0x101
mov dword [ebp - 0x60], edi
mov dword [ebp - 0xc], esi
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0xc]
push eax
push dword [ecx + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
lea eax, [ebp - 0x268]
push 0x104
push eax
push str._ComSpec_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebx + 8]
lea eax, [ebp - 0xa88]
push str._c__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
push esi
push 3
push dword [ebx + 4]
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x4012e0
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 1
push 2
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4012db
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push 0x8000000
push 1
push esi
push esi
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x1c], 0
mov esi, eax
je 0x4012d0
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4012d0
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x18]
call edi
push dword [ebp - 0x1c]
call edi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012f0
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
push edi
push 0x44
pop edi
lea eax, [ebp - 0x58]
xor esi, esi
push edi
push eax
call fcn.00401b79
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.00401b79
mov ebx, dword [ebp + 8]
add esp, 0x10
or dword [ebp - 0x2c], 0x101
mov dword [ebp - 0x58], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
and dword [ebp - 4], eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
lea eax, [ebp - 0x260]
push 0x104
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp - 4], 2
jne 0x401364
mov esi, dword [edi + 4]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
xor eax, eax
push eax
push eax
push 0x8000000
push 1
push eax
push eax
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 0
mov dword [ebp + 8], eax
je 0x4013b8
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4013b8
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4013c9
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
push edi
push 0x44
pop edi
lea eax, [ebp - 0x58]
xor esi, esi
push edi
push eax
call fcn.00401b79
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.00401b79
mov ebx, dword [ebp + 8]
add esp, 0x10
or dword [ebp - 0x2c], 0x101
mov dword [ebp - 0x58], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
and dword [ebp - 4], eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
lea eax, [ebp - 0x260]
push 0x104
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp - 4], 4
jne 0x40143e
mov esi, dword [edi + 0xc]
lea eax, [ebp - 0x14]
xor ecx, ecx
push eax
lea eax, [ebp - 0x58]
push eax
push ecx
push ecx
push 0x8000000
push esi
lea eax, [ebp - 0x260]
push eax
push ecx
push dword [edi + 4]
push ecx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp dword [ebp - 0x14], 0
mov dword [ebp + 8], eax
je 0x401495
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401495
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4014a6
Capabilities:
Query environment variable
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x10], esi
je 0x4014d9
push 0x208
lea eax, [ebp - 0x518]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
push esi
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40153b
jmp 0x401514
push 0
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
push 0
lea eax, [ebp - 4]
push eax
push 0x100
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4014fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret