joyce8/EMBER2024-capa huggingface dataset:
Function at 0x570fbc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x571056.0
jmp dword [ecx*4 + 0x570fef]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x571021
sub dl, 8
je 0x571030
jmp case.0x571056.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x570c64
jmp case.0x571056.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x570cbc
jmp case.0x571056.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x571056.0
movzx ecx, byte [ecx + 0x57105d]
jmp dword [ecx*4 + 0x57106e]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x570d68
jmp case.0x571056.0
cmp dl, 3
jne 0x57109b
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x570dc0
jmp case.0x571056.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x570d7c
jmp case.0x571056.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x570e04
jmp case.0x571056.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5710c6
sub dl, 8
je 0x5710d2
jmp case.0x571056.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x570e30
jmp case.0x571056.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x570e9c
jmp case.0x571056.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5710f1
sub dl, 8
je 0x5710fd
jmp case.0x571056.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x570f58
jmp case.0x571056.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x570f80
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0x10], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
jb 0x57119f
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00570168
test eax, eax
je 0x57119f
mov eax, ebx
call fcn.005711a8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 0xc], eax
dec esi
jne 0x571138
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5711a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x5711d9
dec al
je 0x571214
dec al
je 0x571259
dec al
je 0x5712c2
jmp 0x57134c
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x57134c
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x5711e9
jmp 0x57134c
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x57134c
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x571224
jmp 0x57134c
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x57134c
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x571288
xor ebp, ebp
jmp 0x571298
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x5712a1
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x571269
jmp 0x57134c
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x57134c
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x57131b
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0056e21c
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5712d6
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x57a0c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x57a0ee
mov eax, ebx
call fcn.0057ab74
cmp dword [ebx + 0x40], 0
je 0x57a0e7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x57a15f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x57a151
cmp dword [ebx + 8], 0
je 0x57a110
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x57a122
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x57a151
cmp dword [ebx + 8], 0
je 0x57a103
cmp eax, 3
je 0x57a135
dec eax
jne 0x57a103
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x57a103
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x57a103
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x57a17d
cmp dword [ebx + 0x14], 0xcc
je 0x57a17d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0057a188
pop ebx
ret

Function at 0x58b098
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x58b127
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0
push 0
push 0x801c
push 0
call sub.shell32.dll_SHGetFolderPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406f38
cmp dword [ebp - 0x210], 0
jne 0x58b0fc
mov eax, ebx
mov edx, 0x58b140
call fcn.00406d28
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406f38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58b12e
lea eax, [ebp - 0x210]
call fcn.00406d18
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4ede1c36
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x7032768f
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x409d10
Capabilities:
Set registry value

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x422d58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42b520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x458360
xor ebx, ebx
push eax
sub esi, esi
mov dword [ebp - 4], ebx
call fcn.0040a1b0
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x409e16
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00409ef0
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x409e09
test ebx, ebx
je 0x409e14
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x427668
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406de0
mov edi, dword [ebp - 0x14]
mov eax, edi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409dc0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or ebx, ebx
je 0x409e14
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
or edx, edx
jg 0x409e5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x422492
Capabilities:
Clear file content

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
sub ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041b644
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x42251a
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.0041b644
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x42251a
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x4225af
jg 0x4224f3
cmp esi, ebx
jbe 0x4225af
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x422526
call fcn.00417a38
mov dword [eax], 0xc
call fcn.00417a38
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.00422648
pop ecx
pop ecx
mov dword [ebp - 8], eax
or edi, edi
jl 0x422546
jg 0x422542
cmp esi, ebx
jb 0x422546
push ebx
pop eax
jmp 0x422548
push esi
pop eax
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00419d82
add esp, 0xc
cmp eax, 0xffffffff
je 0x422592
cdq
sub esi, eax
sbb edi, edx
js 0x422569
jg 0x422538
test esi, esi
jne 0x422538
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00422648
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub ebx, ebx
jmp 0x422618
call fcn.00417a4b
cmp dword [eax], 5
jne 0x4225a7
call fcn.00417a38
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x42256c
cmp edi, ebx
jg 0x422624
jl 0x4225b9
cmp esi, ebx
jae 0x422624
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b644
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x42251a
push dword [ebp + 8]
call fcn.00421802
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x422624
call fcn.00417a38
mov dword [eax], 0xd
call fcn.00417a4b
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x42251a
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0041b644
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x42251a
xor eax, eax
jmp 0x422521

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

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1b8b1333
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..rsrc
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
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
pop eax
nop
nop
nop
mov esi, 0x4cba769f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4056c0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401030
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x40302c], eax
push 0xa
push 0
push 0
push dword [0x40302c]
call 0x401030
push eax
call sub.kernel32.dll_ExitProcess
lea esp, [esp]
lea ebx, [ebx]
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 0x2003
mov dword [ebp - 0x28], 0x401120
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], str.Menu1
mov dword [ebp - 8], str.WndClass
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push 0
push 0
push 0x15e
push 0x1f4
push 0x64
push 0x8c
push 0xa0000
push str.Child_13
push str.WndClass
push 0x300
call sub.user32.dll_CreateWindowExA
mov dword [0x403028], eax
push 1
push dword [0x403028]
call sub.user32.dll_ShowWindow
push dword [0x403028]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
cmp eax, 0
je 0x401112
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4010ea
mov eax, 0
leave
ret 0x10
Function at 0x1001c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c9db
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c992
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c992
cmp esi, ebx
jge 0x1001c992
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c9d5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c9d5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c9ed
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1001cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001cc38
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cc52
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10021ee4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022930
leave
ret 4

Function at 0x1001ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001ce56
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001ceb5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10021ee4
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10021ee4
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10021ee4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022930
leave
ret 0x10
Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10021ee4
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8
Function at 0x4026d0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x40288f
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
sub byte [esi + ebx], 0x29
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0xf5
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 7
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0x8b
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0xf6
push str.Aristknc
push 0x42b058
call fcn.004011a0
add esp, 0x44
push eax
call fcn.004015a0
add byte [esi + ebx], 0x6b
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0xb9
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0xbe
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0x25
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0x24
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0x73
add esp, 0x40
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0x15
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0x43
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0x26
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0xb2
add esp, 0x3c
inc esi
cmp esi, edi
jb 0x4026f0
pop ebx
pop edi
pop esi
ret
Function at 0x403550
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x477000], eax
push 0xda4c2ca8
push dword [0x477000]
call fcn.00402d90
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
push 0
call dword [sym.imp.ole32.dll_OleRun]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4034c0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AddAce]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4061ea
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406229
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406229
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406229
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406229
cmp dword [ecx + 0x74], 0xe
jbe 0x406229
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4104ec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4204c8
push 0x4204c0
push str.FlsAlloc
push 0x1e
call fcn.004103b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410520
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d144]
call esi
jmp 0x410526
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41056a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4204d8
push 0x4204d0
push str.FlsGetValue
push 0x20
call fcn.004103b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4105a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412192
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411e34

Function at 0x41219d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411fc3