joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c00
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42cc10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [eax + 0xe0]
mov esi, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x28
push edi
test eax, eax
jne 0x409c4f
push 0xabcb0a67
lea edx, [eax + 1]
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x42cc10]
mov dword [ecx + 0xe0], eax
lea edi, [ebx + 0x58]
push edi
push 0x20
push esi
call eax
test eax, eax
je 0x409da2
mov eax, dword [0x42cc10]
mov eax, dword [eax + 0xe0]
test eax, eax
jne 0x409c8a
push 0xabcb0a67
lea edx, [eax + 1]
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x42cc10]
mov dword [ecx + 0xe0], eax
lea esi, [ebx + 0x50]
push esi
push 8
push dword [ebp - 0xc]
call eax
test eax, eax
je 0x409da2
mov ecx, 0x40
lea eax, [ebx + 0x10]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x409ca5
mov ecx, edi
mov edx, 8
mov eax, dword [ecx]
mov dword [ebx + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x24], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x28], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x30], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x34], eax
mov eax, dword [ecx + 0x18]
mov dword [ebx + 0x38], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [ebx + 0x78]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x10], 0x61707865
mov dword [ebx + 0x14], 0x3320646e
mov dword [ebx + 0x18], 0x79622d32
mov dword [ebx + 0x1c], 0x6b206574
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov eax, dword [esi]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x4c], eax
nop
mov eax, dword [edi]
lea edi, [edi + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x409d20
lea ecx, [ebx + 0x98]
lea edi, [edx + 2]
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub edi, 1
jne 0x409d38
mov eax, dword [0x42cc10]
mov eax, dword [eax + 0xdc]
test eax, eax
jne 0x409d71
push 0x6c6c937b
lea edx, [edi + 1]
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x42cc10]
mov dword [ecx + 0xdc], eax
push 0x20c
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebx + 0x78]
push ecx
push 0
push 1
push 0
push dword [ebp - 0x10]
call eax
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004169d7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004169d7
mov esp, ebp
pop ebp
ret 4
Function at 0x413630
Capabilities:
Contain obfuscated stackstrings
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x413833
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41380d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x250], 0x7f
nop dword [eax]
mov byte [ebp - 0x24c], 0
mov byte [ebp - 0x24b], 0x2e
mov byte [ebp - 0x24a], 0x39
mov byte [ebp - 0x249], 0x62
mov byte [ebp - 0x248], 0x39
mov byte [ebp - 0x247], 0x24
mov byte [ebp - 0x246], 0x39
mov byte [ebp - 0x245], 5
mov byte [ebp - 0x244], 0x39
mov byte [ebp - 0x243], 0x3c
mov byte [ebp - 0x242], 0x39
mov byte [ebp - 0x241], 0x73
mov byte [ebp - 0x240], 0x39
mov byte [ebp - 0x23f], 0x2e
mov byte [ebp - 0x23e], 0x39
mov byte [ebp - 0x23d], 0x73
mov byte [ebp - 0x23c], 0x39
mov byte [ebp - 0x23b], 0x60
mov byte [ebp - 0x23a], 0x39
mov byte [ebp - 0x239], 0x2e
mov byte [ebp - 0x238], 0x39
mov byte [ebp - 0x237], 0x62
mov byte [ebp - 0x236], 0x39
mov byte [ebp - 0x235], 0x2e
mov byte [ebp - 0x234], 0x39
mov byte [ebp - 0x233], 0x39
mov byte [ebp - 0x232], 0x39
mov al, byte [ebp - 0x24b]
cmp byte [ebp - 0x24c], 0
jne 0x41378e
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x24b]
movzx eax, al
sub eax, 0x39
imul eax, eax, 0x25
cdq
idiv dword [ebp - 0x250]
lea eax, [edx + 0x7f]
cdq
idiv dword [ebp - 0x250]
mov byte [ebp + ecx - 0x24b], dl
inc ecx
cmp ecx, 0x1a
jb 0x413760
mov eax, dword [0x42cc10]
mov eax, dword [eax + 0x70]
test eax, eax
jne 0x4137b1
push 0xd72e57a9
xor edx, edx
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x42cc10]
mov dword [ecx + 0x70], eax
lea ecx, [ebp - 0x24b]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
call eax
test eax, eax
jne 0x4137fa
push 4
call fcn.004199a3
mov edx, eax
add esp, 4
test edx, edx
je 0x41380c
mov dword [edx], 0
mov ecx, dword [ebp - 0x228]
mov dword [edx], ecx
lea ecx, [edx + 4]
mov dword [ecx], 0
mov eax, dword [esi + 4]
mov dword [edx + 8], eax
mov eax, dword [esi + 4]
mov dword [eax], edx
mov dword [esi + 4], ecx
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x413690
pop ebx
mov eax, dword [0x42cc10]
mov eax, dword [eax + 0x48]
test eax, eax
jne 0x413830
push 0xa5eb6e47
xor edx, edx
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x42cc10]
mov dword [ecx + 0x48], eax
push edi
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004169d7
mov esp, ebp
pop ebp
ret
Function at 0x417367
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41cf0e
push ebx
push esi
call fcn.0041ce3a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041cdce
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41cebb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cf0d
push edi
push eax
call fcn.0041b1a2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41cedb
call fcn.0041b1f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cf0c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cdce
add esp, 0x20
test eax, eax
jne 0x41cefa
push edi
call fcn.0041b1f0
jmp 0x41cf02
push ebx
call fcn.0041b1f0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41dd1c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425050
push 0x425048
push str.FlsAlloc
push 0x1f
call fcn.0041dc38
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41dd50
push dword [ebp + 8]
mov ecx, esi
call dword [0x423130]
call esi
jmp 0x41dd56
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41dd9a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425060
push 0x425058
push str.FlsGetValue
push 0x21
call fcn.0041dc38
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ddd1
push dword [ebp + 8]
mov ecx, esi
call dword [0x423130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ddd9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425068
push 0x425060
push str.FlsSetValue
push 0x22
call fcn.0041dc38
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41de13
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x423130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x422c30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x422c5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422c5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405dde
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x4063be
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x405e8a
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 0xd2
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0x6e
mov byte [ebp - 0x777], 0x17
mov byte [ebp - 0x776], 0x71
mov byte [ebp - 0x775], 0x7d
mov byte [ebp - 0x774], 0x5f
mov byte [ebp - 0x773], 0x42
mov byte [ebp - 0x772], 0x4a
mov byte [ebp - 0x771], 0x5f
mov byte [ebp - 0x770], 0x4c
mov byte [ebp - 0x76f], 0x40
mov byte [ebp - 0x76e], 0xd
mov byte [ebp - 0x76d], 0x6b
mov byte [ebp - 0x76c], 0x44
mov byte [ebp - 0x76b], 0x41
mov byte [ebp - 0x76a], 0x48
mov byte [ebp - 0x769], 0x5e
mov byte [ebp - 0x768], 0x71
mov byte [ebp - 0x767], 0x6e
mov byte [ebp - 0x766], 0x42
mov byte [ebp - 0x765], 0x40
mov byte [ebp - 0x764], 0x40
mov byte [ebp - 0x763], 0x42
mov byte [ebp - 0x762], 0x43
mov byte [ebp - 0x761], 0xd
mov byte [ebp - 0x760], 0x6b
imul eax, esi, 0xffffff85
mov eax, dword [0x44fffff8]
mov byte [ebp - 0x75e], 0x41
mov byte [ebp - 0x75d], 0x48
mov byte [ebp - 0x75c], 0x5e
mov byte [ebp - 0x75b], 0x71
mov byte [ebp - 0x75a], 0x7e
mov byte [ebp - 0x759], 0x54
mov byte [ebp - 0x758], 0x5e
mov byte [ebp - 0x757], 0x59
pop ecx
mov byte [ebp - 0x756], 0x48
mov byte [ebp - 0x755], 0x40
mov byte [ebp - 0x754], 0x71
mov byte [ebp - 0x753], 0x5e
mov byte [ebp - 0x752], 0x54
call dword [esi + eax*8 - 0x7b]
scasd eax, dword es:[edi]
clc
invalid
inc dword [eax - 0x3a]
test dword [eax + 0x5efffff8], esi
mov byte [ebp - 0x74f], 0x5f
mov byte [ebp - 0x74e], 0x5b
mov byte [ebp - 0x74d], 3
mov byte [ebp - 0x74c], 0x49
mov byte [ebp - 0x74b], 0x41
mov byte [ebp - 0x74a], 0x41
mov byte [ebp - 0x749], 0x2d
lea eax, [ebp - 0x77c]
push eax
call fcn.0040432e
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.0040432e
invalid
call [ecx + 0x50]
lea eax, [ebp - 0x504]
push eax
call fcn.0040428f
add esp, 0xc
lea eax, [ebp - 0x504]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 1
jne 0x405f44
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0x5f
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 0xfc
cld
mov byte [ebp - 0x787], 0xc4
mov byte [ebp - 0x786], 0xcc
mov byte [ebp - 0x785], 0xc3
mov byte [ebp - 0x784], 0xcf
mov byte [ebp - 0x783], 0xc5
mov byte [ebp - 0x782], 0xd2
mov byte [ebp - 0x781], 0x8e
mov byte [ebp - 0x780], 0xc4
mov byte [ebp - 0x77f], 0xcc
mov byte [ebp - 0x77e], 0xcc
mov byte [ebp - 0x77d], 0xa0
call fcn.0040431e
cmp al, 0x2b
add esi, dword [0x858d0c6a]
je 0x405f0e
cmp dword [ebp - 0x6fc], 2
jne 0x405ff8
and byte [ebp - 0x79c], 0
and byte [ebp - 0x79b], 0
mov byte [ebp - 0x79a], 0xa9
and byte [ebp - 0x799], 0
add dh, al
test dword [eax - 8], ebp
invalid
dec dword [edx]
mov byte [ebp - 0x797], 0x35
mov byte [ebp - 0x796], 0x39
mov byte [ebp - 0x795], 0x38
mov byte [ebp - 0x794], 0x24
mov byte [ebp - 0x793], 0x33
mov byte [ebp - 0x792], 0x25
mov byte [ebp - 0x791], 0x78
mov byte [ebp - 0x790], 0x32
invalid
test dword [ecx - 8], esi
Function at 0x4064c6
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push esp
call fcn.0040431e
rol bh, cl
and bh, byte [edx]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x4064e5
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0040431e
inc ecx
sub eax, 0xf88b2de0

Function at 0x40650d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.0040431e
pushal
in eax, 9
jg 0x406558
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40650e
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40650e
call fcn.0040431e
mov ecx, 0x8be92442
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.0040431e
jae 0x4064f3
xor byte [eax], bl
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.00404b3c
call dword [eax - 0x18]
sub bh, ah
invalid
in eax, 0xff
invalid

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4572d0
push esi
call fcn.0040616a
push esi
call fcn.00405eb9
mov edi, eax
test edi, edi
jne 0x406900
xor eax, eax
jmp 0x40695d
push edi
call fcn.00406199
test byte [0x472e28], 0x80
je 0x40691c
movzx eax, word [edi]
test ax, ax
je 0x4068fc
cmp eax, 0x5c
je 0x4068fc
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40693e
push esi
call fcn.00406436
test eax, eax
je 0x406938
test byte [eax], 0x10
je 0x406962
push esi
call fcn.004068b2
push esi
call ebx
cmp eax, edi
jg 0x406929
push esi
call fcn.00406883
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40695c
Function at 0x401000
Capabilities:
Check os version
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42467b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push 0
call fcn.00404f75
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 2
jge 0x401037
or eax, 0xffffffff
jmp 0x4011ba
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0xff
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
sar ecx, 8
and ecx, 0xff
and ecx, 0xff
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x18], 6
jae 0x401076
mov eax, 0xfffffffa
jmp 0x4011ba
push 0x430c2c
lea ecx, [ebp - 0x24]
call fcn.00417999
mov dword [ebp - 4], 0
push 0x430c30
lea ecx, [ebp - 0x20]
call fcn.00417999
mov byte [ebp - 4], 1
push 0x430c34
lea ecx, [ebp - 0x1c]
call fcn.00417999
mov byte [ebp - 4], 2
cmp dword [ebp + 8], 1
jle 0x4010c1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x24]
call fcn.00417ab4
cmp dword [ebp + 8], 2
jle 0x4010d6
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
lea ecx, [ebp - 0x20]
call fcn.00417ab4
cmp dword [ebp + 8], 3
jle 0x4010eb
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00417ab4
lea ecx, [ebp - 0x1c]
call fcn.00405230
test eax, eax
je 0x401139
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004011c8
add esp, 8
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041792b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041792b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041792b
mov eax, dword [ebp - 0x28]
jmp 0x4011ba
push str.postrun
lea ecx, [ebp - 0x1c]
call fcn.00405260
test eax, eax
jne 0x401189
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00403325
add esp, 8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041792b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041792b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041792b
mov eax, dword [ebp - 0x2c]
jmp 0x4011ba
mov dword [ebp - 0x30], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041792b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041792b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041792b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4025c7
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4247e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1f6c
call fcn.00406b60
cmp dword [ebp + 8], 0
je 0x4025f5
cmp dword [ebp + 0xc], 0
jne 0x4025fc
xor eax, eax
jmp 0x4027bf
mov eax, dword [ebp + 8]
push eax
call fcn.00406840
add esp, 4
test eax, eax
jne 0x402613
xor eax, eax
jmp 0x4027bf
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406840
add esp, 4
test eax, eax
jne 0x40262a
xor eax, eax
jmp 0x4027bf
mov edx, dword [ebp + 0xc]
push edx
call fcn.004020ff
add esp, 4
test eax, eax
jne 0x40269c
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1f74]
push ecx
call fcn.0040216e
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1f74]
call fcn.004051f0
test eax, eax
jne 0x40268a
mov dword [ebp - 0x1f78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f74]
call fcn.0041792b
mov eax, dword [ebp - 0x1f78]
jmp 0x4027bf
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f74]
call fcn.0041792b
push 0x1e
push 0
lea edx, [ebp - 0x1f6c]
push edx
call fcn.00406b00
add esp, 0xc
push 0xfa0
push 0
lea eax, [ebp - 0x1f4c]
push eax
call fcn.00406b00
add esp, 0xc
push 0xfa0
push 0
lea ecx, [ebp - 0xfac]
push ecx
call fcn.00406b00
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1f4c]
push eax
call fcn.00406a10
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xfac]
push edx
call fcn.00406a10
add esp, 8
lea eax, [ebp - 0x1f4c]
push eax
call fcn.00406840
add esp, 4
movsx ecx, byte [ebp + eax - 0x1f4d]
cmp ecx, 0x5c
je 0x402733
push 0x42e4f0
lea edx, [ebp - 0x1f4c]
push edx
call fcn.00406a20
add esp, 8
jmp 0x402747
push 0x42e4f8
lea eax, [ebp - 0x1f4c]
push eax
call fcn.00406a20
add esp, 8
mov dword [ebp - 0x1f6c], 0
mov dword [ebp - 0x1f68], 2
lea ecx, [ebp - 0x1f4c]
mov dword [ebp - 0x1f64], ecx
lea edx, [ebp - 0xfac]
mov dword [ebp - 0x1f60], edx
mov word [ebp - 0x1f5c], 0x718
mov dword [ebp - 0x1f5a], 0
mov dword [ebp - 0x1f56], 0
mov dword [ebp - 0x1f52], 0
lea eax, [ebp - 0x1f6c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [ebp - 0x1f70], eax
cmp dword [ebp - 0x1f70], 0
jne 0x4027bd
mov eax, 1
jmp 0x4027bf
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4027e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc4
cmp dword [ebp + 8], 0
jne 0x4027f6
xor eax, eax
jmp 0x4028d6
mov eax, dword [ebp + 8]
push eax
call fcn.00406840
add esp, 4
test eax, eax
jne 0x40280d
xor eax, eax
jmp 0x4028d6
mov ecx, dword [ebp + 8]
push ecx
call fcn.004020ff
add esp, 4
test eax, eax
jne 0x402824
xor eax, eax
jmp 0x4028d6
push 0x1e
push 0
lea edx, [ebp - 0xfc0]
push edx
call fcn.00406b00
add esp, 0xc
push 0xfa0
push 0
lea eax, [ebp - 0xfa0]
push eax
call fcn.00406b00
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xfa0]
push edx
call fcn.00406a10
add esp, 8
mov dword [ebp - 0xfc0], 0
mov dword [ebp - 0xfbc], 3
lea eax, [ebp - 0xfa0]
mov dword [ebp - 0xfb8], eax
mov dword [ebp - 0xfb4], 0
mov word [ebp - 0xfb0], 0x14
mov dword [ebp - 0xfae], 0
mov dword [ebp - 0xfaa], 0
mov dword [ebp - 0xfa6], 0
lea ecx, [ebp - 0xfc0]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [ebp - 0xfc4], eax
cmp dword [ebp - 0xfc4], 0
jne 0x4028d4
mov eax, 1
jmp 0x4028d6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402f6a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42485b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
lea ecx, [ebp - 0x18]
call fcn.004051d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00402d54
add esp, 4
test eax, eax
jne 0x402fc2
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041792b
mov eax, dword [ebp - 0x58]
jmp 0x4030de
lea ecx, [ebp - 0x14]
call fcn.004051d0
mov byte [ebp - 4], 1
push 0x42e604
lea ecx, [ebp - 0x14]
call fcn.00417ab4
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00417d43
push str.___T__E__G
lea ecx, [ebp - 0x14]
call fcn.00417d07
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00417d43
push 0x42e614
lea ecx, [ebp - 0x14]
call fcn.00417d07
push 0x3c
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.00406b00
add esp, 0xc
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x440
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], str.open
mov dword [ebp - 0x44], str.cacls.exe
mov dword [ebp - 0x38], 0
push 0
lea ecx, [ebp - 0x14]
call fcn.00417d5b
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x430c44
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x403090
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0041792b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041792b
mov eax, dword [ebp - 0x5c]
jmp 0x4030de
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x34], 0x20
jle 0x4030a4
mov dword [ebp - 0x10], 1
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0041792b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041792b
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret