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

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov edx, 1
test edi, edi
je 0x48de6c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov ecx, esi
xor ebx, ebx
and ecx, 1
mov bx, word [ebp + edx*2]
mov ebp, ecx
neg ebp
sar ebp, 4
shr ebx, 4
and ebp, 0x7f
add edx, edx
xor ebx, ebp
mov ebp, dword [esp + 0x20]
shr esi, 1
add eax, dword [ebp + ebx*4]
or edx, ecx
dec edi
jne 0x48de39
pop esi
pop ebp
pop ebx
pop edi
ret 0x10

Function at 0x48ec12
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, 0x100
or esi, edi
mov eax, esi
mov ecx, edi
shr eax, 7
and eax, 1
mov edx, esi
shl ebx, 1
push eax
and ecx, ebx
mov eax, edi
shr edx, 8
add eax, ecx
add edx, eax
lea ecx, [ebp + edx*2]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0048eb62
shl esi, 1
mov eax, esi
xor eax, ebx
not eax
and edi, eax
cmp esi, 0x10000
jb 0x48ec29
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x490182
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
push edi
or ch, 1
mov edi, ecx
xor ebx, ebx
shr edi, 8
mov bx, word [esi + edi*2]
mov edi, ecx
shr edi, 7
and edi, 1
neg edi
sar edi, 4
shr ebx, 4
and edi, 0x7f
xor ebx, edi
shl ecx, 1
mov edi, dword [edx + ebx*4]
add eax, edi
cmp ecx, 0x10000
jb 0x490196
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x4901d2
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edx, 0x100
or ch, 1
shl esi, 1
mov edi, edx
mov ebx, ecx
and edi, esi
mov ebp, edx
shr ebx, 8
add ebp, edi
xor edi, edi
add ebx, ebp
mov ebp, dword [esp + 0x14]
mov di, word [ebp + ebx*2]
mov ebx, ecx
shr ebx, 7
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
mov ebx, dword [esp + 0x20]
shl ecx, 1
mov ebp, dword [ebx + edi*4]
mov edi, ecx
xor edi, esi
add eax, ebp
not edi
and edx, edi
cmp ecx, 0x10000
jb 0x4901e8
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x494ab2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x50]
mov ecx, eax
imul ecx, dword [esp + 0xc]
add edx, ecx
mov dword [esi + 0x50], edx
mov edx, dword [esi + 0x4c]
sub edx, ecx
imul eax, dword [esp + 0x10]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x48]
lea edx, [eax + ecx]
xor edx, eax
cmp edx, 0x1000000
jb 0x494afe
cmp ecx, 0x8000
jae 0x494b28
neg eax
and eax, 0x7fff
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x54]
push eax
call dword [eax]
mov ecx, dword [esi + 0x4c]
and eax, 0xff
shl ecx, 8
or eax, ecx
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x50]
shl ecx, 8
shl eax, 8
mov dword [esi + 0x48], ecx
mov dword [esi + 0x50], eax
jmp 0x494ad9
pop esi
ret 0xc

Function at 0x494f72
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x20], ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x24], ecx
ret 4

Function at 0x495482
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.00495c51
mov ecx, dword [esp + 0x1c]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.004953f2
ret 0xc
Function at 0x5eae6a
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.005eb01a
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x5eaf68
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x5eaf0b
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x5eaf4e
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x5eaf22
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x5eaf3d
test al, 0x40
je 0x5eaf34
mov ecx, dword [edi + 0x20]
jmp 0x5eaf3b
test al, 0x80
je 0x5eaf4e
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x5eaf4e
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x5eaeda
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x8627a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e6000]
push edi
or ebp, 0xffffffff
jmp 0x8627c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8627c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8627b8
mov eax, 1
add ebx, ebx
jne 0x8627db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8627ec
jne 0x86280b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86280b
dec eax
add ebx, ebx
jne 0x8627f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8627d0
add ebx, ebx
jne 0x862807
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x86285d
xor ecx, ecx
sub eax, 3
jb 0x862823
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x862892
sar eax, 1
mov ebp, eax
jmp 0x86282e
add ebx, ebx
jne 0x86282e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8627fc
inc ecx
add ebx, ebx
jne 0x86283c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8627fc
add ebx, ebx
jne 0x862849
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x86283e
jne 0x86285a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x86283e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x86287c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x86286e
jmp 0x8627be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x86287c
add edi, ecx
jmp 0x8627be
pop esi
mov edi, esi
mov ecx, 0x1154b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x86289a
cmp byte [edi], 0x7a
jne 0x86289a
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 0x86289f
lea edi, [esi + 0x45d000]
mov eax, dword [edi]
or eax, eax
je 0x86290e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46b50c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46b674]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8628cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x46b678]
or eax, eax
je 0x862908
mov dword [ebx], eax
add ebx, 4
jmp 0x8628e9
call dword [esi + 0x46b688]
mov ebp, dword [esi + 0x46b67c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x862942
sub esp, 0xffffff80
jmp 0x666f14
Function at 0x1dbb254
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dx
jmp 0x1dbb25c
lea esp, [esp + 2]
mov dword [esp + 0x3c], edx
pushfd
mov byte [esp], al
push word [esp]
jmp 0x1dbb436
pop dword [esp + 2]
mov dword [esp + 0x40], ebx
jmp 0x1dbb4cb
jle 0x1dbb4be
push dword [esp]
push di
jmp 0x1dbb340
push dword [esp]
push di
pop dword [esp + 2]
mov dword [esp + 0x40], ebx
call fcn.01dbb2a9
xchg cx, ax
jmp 0x1dbb500
xor edi, 0x44b9cf16
bts eax, ebx
jg 0x1dbb534
jle 0x1dbb564
dec esp
fimul word [ebx + ebp - 0x1a]
pop ecx
scasd eax, dword es:[edi]
mov dh, 0xa1
inc edi
mov edx, ecx
mov ecx, edx
mov cl, 0x58
stc
jmp 0x1dbb54a
lea ecx, [ebx + ebx]
rdtsc
xchg dh, dl
jmp 0x1dbb54e
jae 0x1dbb4ea
jb 0x1dbb4ea
add edi, dword [esi]
mov cx, 0x41df
lea edx, [ecx*4]
push bp
jmp 0x1dbb5af
lea ecx, [ebx + ebx]
rdtsc
xchg dh, dl
jmp 0x1dbb54e
lea esp, [esp + 2]
jmp 0x1dbb585

Function at 0x1dbb45c
Capabilities:
Execute anti-debugging instructions

Disassembly:
rcr al, cl
jmp 0x1dbb480
rcl cx, 0xc
jae 0x1dbb446
rcr al, cl
lea eax, [esi - 0x1f]
mov eax, dword [esp + 2]
setnp al
xchg dword [esp], edx
jmp 0x1dbb48c
lea eax, [esi - 0x1f]
mov eax, dword [esp + 2]
setnp al
jmp 0x1dbb4a6
rol edi, 0
bsf ecx, esi
jns 0x1dbb5ef
mov dh, cl
mov eax, edx
mov ch, bh
jmp 0x1dbb57f
xchg dword [esp], edx
jmp 0x1dbb48c
dec al
jmp 0x1dbb4d0
dec edi
lea eax, [esi*4]
btc ax, cx
jp 0x1dbb4e6
dec al
xchg cx, ax
jmp 0x1dbb500
mov eax, edx
mov ch, bh
lea esp, [esp + 4]
jmp 0x1dbb51f
mov dh, cl
jmp 0x1dbb57b
Function at 0x1dbe410
Capabilities:
Execute anti-debugging instructions

Disassembly:
push bp
add esp, 0
lea esp, [esp + 2]
push dword [esp + 0x1c]
ret 0x20
bt ecx, ebx
not al
lea edx, [ecx*4]
lea edx, [ebp*4]
xchg dword [esp + 0x1c], ebx
cmp edx, 0xd1cb308e
jmp 0x1dbe362
xchg dword [esp + 0x1c], ebx
lea eax, [ecx + ebx]
rdtsc
dec ch
mov ax, di
lea ebx, reloc.hipo.dll_hipoInitConfig
jmp 0x1dbe386
rdtsc
sub esp, 0x1f
bsf eax, eax
push word [esp + 0x11]
lea esp, [esp + 5]
jmp 0x1dbe3cf
Function at 0x1dc11e7
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf1dac728
jmp 0x1dc121f
jmp 0x1dc123c
mov dl, byte [esp]
lea ecx, [edx*4]
jmp 0x1dc128d
mov dword [esp + 0x3c], edi
lea esp, [esp + 0x3c]
pushfd
jmp 0x1dbb514
jle 0x1dc1260
dec di
jmp 0x1dc1262
dec di
lea esi, [esp]
setge bl
jmp 0x1dc126e
not ch
mov edi, ebp
lea edx, [ebx + ebp]
sub esp, 0xc0
jmp 0x1dc129e
rdtsc
xchg bp, ax
mov ebp, dword [esp + 0x2c]
sete al
rcr bx, 0xf
jmp 0x1dc124a
mov edi, esp
ror dl, 4
jo 0x1dc135c
mov bh, 0xfa
not ax
mov ah, ch
jmp 0x1dc131b
stc
rdtsc
jmp 0x1dc12c9
mov edx, 0xe9e16430
xor bx, cx
lea ebx, reloc.hipo.dll_hipoInitConfig
jmp 0x1dc1338
neg bh
jae 0x1dc12c0
stc
rdtsc
mov edx, 0xe9e16430
xor bx, cx
lea ebx, reloc.hipo.dll_hipoInitConfig
jmp 0x1dc1338
not ax
mov ah, ch
mov ecx, ebp
mov ax, bx
jmp 0x1dc12ea
rdtsc
jmp 0x1dc1376
btc edx, esp
bswap ebx
neg bl
jg 0x1dc1322
rdtsc
xchg al, bl
jmp 0x1dc1378
mov bh, 0xfa
jmp 0x1dc1316
sub dx, 0x6461
ja 0x1dc1387
bswap ebx
neg dx
jmp 0x1dc1392
xchg al, bl
xor ebp, 0x46cca29c
xchg dx, ax
mov eax, 0x50194e4f
jmp 0x1dc1360
bswap ebx
neg dx
jmp 0x1dc1392
neg ebp
mov ebx, esi
mov bx, word [esp]
sub esp, 8
jbe 0x1dc14fa
ja 0x1dc13f1
xor bh, byte [edx + edx*2 + 0x906c435]
mov word [esp], cx
pop word [esp]
mov word [esp + 1], di
lea esp, [esp + 4]
lea esp, [esp + 2]
mov dword [esp + 0x18], ecx
call fcn.01dc12bb
jmp 0x1dc1417
bts dx, bp
lea eax, [eax + ebx]
call 0x1dc13d9
test al, 0x8d
wait
cdq
add byte [eax], al
add al, ch
sbb eax, 0xc6000000
dec edi
fistp qword [edx - 0x1f931cb7]
jbe 0x1dc13ff
loopne 0x1dc1415
popfd
mov byte [esp + 5], bh
mov dword [esp], edx
neg dx
call 0x1dc13ca
in al, dx
add esp, 3
rdtsc
mov ax, word [esp]
jmp 0x1dc1445
invalid
jae 0x1dc1481
xchg dl, ah
lea ebx, reloc.hipo.dll_hipoInitConfig
neg eax
not eax
lea edx, [edi*4]
xchg dword [esp], ebx
jmp 0x1dc13cc
lea esp, [esp + 8]
xor ebp, 0xa23fe64
lea ebx, reloc.hipo.dll_hipoInitConfig
jmp 0x1dc1475
lea esp, [esp + 1]
xchg dword [esp + 4], ebx
xor bx, 0x6047
bswap eax
rcr bx, 0xa
push dword [esp + 4]
ret 8
lea eax, [esp + esi]
bsf dx, cx
jmp 0x1dc14b1
clc
js 0x1dc145f
lea eax, [esp + esi]
bsf dx, cx
mov ax, 0x9aae
jmp 0x1dc14b5
scasb al, byte es:[edi]
lcall 0x166, 0xf06030eb
invalid
mov byte [esp + 5], bh
mov dword [esp], edx
neg dx
jmp 0x1dc142f
mov edx, 0x22af6d2
sub esp, 6
mov word [esp + 1], bx
mov eax, edi
jmp 0x1dc15ac
mov ax, 0x9aae
rol ebp, 0
mov dx, word [esp]
neg ax
jmp 0x1dc14db
mov word [esp + 1], bx
mov eax, edi
pop bx
jmp 0x1dc15ae
je 0x1dc149b
mov edx, 0x22af6d2
sub esp, 6
jmp 0x1dc14c1
jmp 0x1dc148f
bsr ebx, ebp
jnp 0x1dc1516
mov bl, al
jmp 0x1dc1554
add ebp, dword [esi]
jmp 0x1dc14fc
mov bl, al
call fcn.01dc1acb
mov dword [edx], edx
and bh, 0x12
ror byte [ecx], 1
xchg edi, eax
pop es
bound edx, qword [ecx + 0x54258a28]
mov eax, 0xf64f3777
lea eax, reloc.hipo.dll_hipoInitConfig
cmp dl, 0xdf
jle 0x1dc1512
jg 0x1dc1512
pop bx
xchg dh, dl
lea esp, [esp + 4]
add ebp, 0x2021ee66
jmp 0x1dc152c
Function at 0x4010d0
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
mov ecx, dword [esp + 8]
push ebp
cmp ecx, 0x40
push esi
jb 0x401259
mov eax, dword [esp + 0xc]
cmp word [eax], 0x5a4d
jne 0x401259
mov esi, dword [eax + 0x3c]
lea edx, [esi + 0xf8]
cmp ecx, edx
jl 0x401259
mov edx, dword [esi + eax]
add esi, eax
cmp edx, 0x4550
jne 0x401259
test byte [esi + 0x17], 0x20
jne 0x401259
cmp word [esi + 0x14], 0xe0
jne 0x401259
lea ebp, [esi + 0xf8]
push ebp
push esi
push ecx
push eax
call fcn.00401020
mov ecx, dword [esp + 0x30]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x401259
push ebx
push edi
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, dword [esp + 0x24]
test eax, eax
mov dword [ebx], eax
je 0x40124f
mov edi, dword [esi + 0x54]
xor ecx, ecx
mov cx, word [esi + 6]
test ecx, ecx
jle 0x401188
lea esi, [ebp + 0x14]
mov edx, dword [esi]
test edx, edx
je 0x401182
cmp edx, edi
jae 0x401182
mov edi, edx
add esi, 0x28
dec ecx
jne 0x401176
mov edx, dword [esp + 0x14]
push edi
push edx
push eax
call fcn.00401930
mov eax, dword [ebx]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [edi], eax
add eax, 0xf8
mov dword [ebp], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x54]
push edx
push eax
call fcn.00401000
mov ecx, dword [ebx]
mov esi, eax
add esi, ecx
mov ecx, dword [edi]
xor ebx, ebx
add esp, 0x14
cmp word [ecx + 6], bx
mov dword [esp + 0x18], ebx
jbe 0x40124f
mov edx, dword [ebp]
lea eax, [ebx + edx]
mov edx, dword [ebx + edx + 0xc]
test edx, edx
je 0x4011e9
mov esi, dword [esp + 0x24]
add edx, dword [esi]
mov esi, edx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x401225
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x14]
add eax, ecx
push edx
push eax
push esi
call fcn.00401930
mov ecx, dword [ebp]
mov edx, dword [edi]
add esp, 0xc
lea eax, [ebx + ecx]
mov ecx, dword [ebx + ecx + 8]
mov eax, dword [eax + 0x10]
cmp ecx, eax
jae 0x40121e
mov ecx, dword [edx + 0x38]
push ecx
push eax
jmp 0x40122d
mov eax, dword [edx + 0x38]
push eax
push ecx
jmp 0x40122d
mov ecx, dword [ecx + 0x38]
mov edx, dword [eax + 8]
push ecx
push edx
call fcn.00401000
mov ecx, dword [edi]
add esi, eax
mov eax, dword [esp + 0x20]
xor edx, edx
mov dx, word [ecx + 6]
add esp, 8
inc eax
add ebx, 0x28
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x4011d3
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
ret
pop esi
xor eax, eax
pop ebp
ret
Function at 0x4013c0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x74
push ebp
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
push edx
push eax
push eax
push 4
push eax
push eax
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0xa0]
push eax
push 0
mov dword [esp + 0x60], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, eax
test ebp, ebp
je 0x4014a1
mov edi, dword [esp + 0x88]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x10]
push ebx
mov dword [edi], ecx
mov ecx, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0x8c]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
push esi
mov dword [ecx], edx
mov dword [esi], 0x10007
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [esi + 0xa4]
mov ebx, dword [esp + 0x9c]
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push 4
add edx, 8
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [ebx]
mov edx, dword [edi]
lea ecx, [esp + 0x24]
push 0x1c
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov eax, dword [ebx]
sub esi, eax
mov eax, dword [esp + 0xa0]
mov dword [eax], esi
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x74
ret
mov eax, ebp
pop edi
pop ebp
add esp, 0x74
ret
Function at 0x4017d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push 0x200
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x401823
mov al, 0x5c
cmp byte [esp + ecx + 0x14], al
je 0x40181e
dec ecx
jns 0x401813
jmp 0x401823
mov byte [esp + ecx + 0x14], 0
mov edi, str._test_bd.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
push 3
push eax
and ecx, 3
push 1
lea eax, [esp + 0x28]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401897
lea ecx, [esp + 0x14]
push ecx
push 0x4090ac
call fcn.00401d14
push str.pause
call fcn.00401c7e
add esp, 0xc
or eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x208
ret
push ebp
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00401c65
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
push esi
push ebp
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
push ecx
push 0x40b984
push esi
push ebp
call fcn.00401720
push ebp
mov esi, eax
call fcn.00401c73
add esp, 0x14
cmp esi, 0xffffffff
pop ebp
je 0x401916
push esi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x208
ret

Function at 0x402387
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4023a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405395
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4023c8
test byte [esp + 8], 2
je 0x4023c8
mov dword [0x40b994], 0xd
mov dword [0x40b998], 5
jmp 0x4023a3
xor eax, eax
ret
Function at 0x404c87
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x214
mov eax, 0x5046f1
call fcn.0049b3cf
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x404ca7
xor eax, eax
jmp 0x404dec
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004db850
add esp, 0xc
call fcn.00405599
push 0x50f9a4
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x404d13
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.00406881
push ebx
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.WinOptimizerTray
lea ecx, [ebp - 0x21c]
call fcn.004076e7
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.00406ef8
jmp 0x404dea
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
push 0x20006
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404dea
call fcn.00405323
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404aa6
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x404d78
push ebx
push eax
lea eax, [ebp - 0x21c]
push 0x50fa54
push eax
call fcn.0040522e
add esp, 0x10
jmp 0x404d8d
push eax
lea eax, [ebp - 0x21c]
push str.__s_
push eax
call fcn.0040522e
add esp, 0xc
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
mov ebx, dword [esi - 0xc]
jle 0x404dae
push ebx
lea ecx, [ebp - 0x21c]
call fcn.004051c4
mov esi, dword [ebp - 0x21c]
lea eax, [ebx + ebx]
push eax
push esi
push 1
push edi
push str.WinOptimizerTray
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.00405820
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00405808
mov eax, edi
call fcn.0049b379
ret

Function at 0x4050c0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 8
mov eax, 0x504721
call fcn.0049b39b
cmp dword [ebp + 8], 0
jne 0x4050d6
xor eax, eax
jmp 0x40514f
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.0040541c
pop ecx
pop ecx
test eax, eax
jne 0x4050f0
inc eax
jmp 0x40514f
call fcn.00405599
test al, al
je 0x40511f
lea ecx, [ebp + 8]
call fcn.00406881
push 1
push str.WinOptimizerTray
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00407e5d
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00406ef8
jmp 0x40514d
lea eax, [ebp - 0x14]
push eax
push 0x20006
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40514d
push str.WinOptimizerTray
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
call fcn.0049b364
ret