joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x455008], 0x8088405
inc edx
mov dword [ebx + 0x455008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d1c0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d1f1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d1d9
add dl, dl
jne 0x41d1fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d24d
xor eax, eax
add dl, dl
jne 0x41d209
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2ea
add dl, dl
jne 0x41d218
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d223
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d22e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d239
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d243
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d1e8
mov eax, 1
add dl, dl
jne 0x41d25b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d266
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d252
sub eax, ebx
mov ebx, 1
jne 0x41d299
mov ecx, 1
add dl, dl
jne 0x41d27f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d28a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d276
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d2b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d2bb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2a7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d30b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d1e8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f31c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x43880a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f36b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
jmp 0x41f38a
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f3fc
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f3e5
test esi, esi
jbe 0x41f3fc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f3d7
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f3fc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f3b4
jmp 0x41f3fc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f3fc
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438811
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6cf736cd
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xaa257c6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x408172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x4081a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x4081a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x408dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00408f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00408f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00408eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00408f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00408ecb
push ecx
push dword [ebp + 8]
call fcn.00408f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00408f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00408ecb
push ecx
push dword [ebp + 8]
call fcn.00408f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00408f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00408ecb
push ecx
push dword [ebp + 8]
call fcn.00408f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00408f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00408ecb
cmp ecx, 0x2b
jne 0x408e0f
leave
ret 0xc

Function at 0x40a4b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x40a544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x2330
push 0
call dword [eax + 0x20]
test eax, eax
je 0x40a5d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x2330
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x2330
call fcn.0040a3fa
push 0x2330
push dword [ebp + 0xc]
call fcn.004081a8
test eax, eax
jne 0x40a5b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x2330
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.0040a5dd
test eax, eax
je 0x40a5d6
jmp 0x40a574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x40a5d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x1000a0ab
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x10247460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebx + ebx]
push eax
push 0
push esi
mov dword [ebp - 0xd0], esi
call fcn.100971d0
add esp, 0xc
call fcn.100f29f0
test eax, eax
je 0x1000a16c
push 0x41
push 0
push 1
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
xor eax, eax
test esi, esi
je 0x1000a1ea
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.100971d0
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
push 0x10009fed
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea eax, [ebp - 0xcc]
push eax
call fcn.100977b6
pop ecx
cmp eax, ebx
jb 0x1000a153
xor eax, eax
jmp 0x1000a1ea
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xd0]
call fcn.10097721
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1000a1ea
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.100971d0
add esp, 0xc
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xd4], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x1000a1cd
lea eax, [ebp - 0xcc]
push eax
call fcn.100977b6
pop ecx
cmp eax, ebx
jae 0x1000a14c
lea eax, [ebp - 0xcc]
push eax
push esi
jmp 0x1000a160
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x1000a1e4
mov dword [ebp - 0xd0], 1
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100970b0
leave
ret

Function at 0x1000a4a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10247460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x1000a567
cmp ebx, esi
je 0x1000a567
cmp dword [ebp + 0x10], esi
je 0x1000a567
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.100971d0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push edi
call fcn.1001c16f
lea eax, [ebp - 0x20c]
push eax
call fcn.100977b6
add esp, 0x20
test eax, eax
je 0x1000a567
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a563
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x210], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1000a569
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100970b0
leave
ret
Function at 0x1000a578
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.10097d50
mov edi, dword [ebp + 0xc]
pop ecx
mov ebx, eax
mov eax, 0x1f3
push edi
sub eax, ebx
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1000a5b2
xor eax, eax
inc eax
jmp 0x1000a650
mov dword [ebp - 4], 1
test byte [edi], 0x10
je 0x1000a614
lea ecx, [edi + 0x2c]
cmp byte [ecx], 0x2e
jne 0x1000a5d7
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x1000a5d3
cmp byte [edi + 0x2e], 0
je 0x1000a62c
test al, al
je 0x1000a62c
push ecx
call fcn.10097d50
inc eax
pop ecx
cmp dword [ebp - 0xc], eax
jb 0x1000a62c
lea eax, [edi + 0x2c]
push eax
push esi
mov byte [ebx + esi - 1], 0
call fcn.10097c60
push 0x101e60a0
push esi
call fcn.10097c60
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1000a578
add esp, 0x20
mov byte [ebx + esi], 0
jmp 0x1000a624
push dword [ebp + 0x14]
lea eax, [edi + 0x2c]
push eax
push esi
mov byte [ebx + esi - 1], 0
call dword [ebp + 0x10]
mov byte [ebx + esi - 1], 0x2a
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000a644
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000a5b9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000a655
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.100977b6
mov edi, dword [ebp + 0xc]
pop ecx
mov ebx, eax
mov eax, 0x1f3
push edi
sub eax, ebx
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1000a68f
xor eax, eax
inc eax
jmp 0x1000a747
mov dword [ebp - 4], 1
test byte [edi], 0x10
je 0x1000a706
lea ecx, [edi + 0x2c]
cmp word [ecx], 0x2e
jne 0x1000a6ba
movzx eax, word [edi + 0x2e]
cmp ax, 0x2e
jne 0x1000a6b5
cmp word [edi + 0x30], 0
je 0x1000a723
test ax, ax
je 0x1000a723
push ecx
call fcn.100977b6
inc eax
pop ecx
cmp dword [ebp - 0xc], eax
jb 0x1000a723
xor eax, eax
mov word [esi + ebx*2 - 2], ax
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.100976f3
push 0x101e60a4
push esi
call fcn.100976f3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1000a655
add esp, 0x20
mov dword [ebp - 4], eax
push 0x2a
pop eax
mov word [esi + ebx*2 - 2], ax
xor eax, eax
mov word [esi + ebx*2], ax
jmp 0x1000a723
push dword [ebp + 0x14]
xor eax, eax
mov word [esi + ebx*2 - 2], ax
lea eax, [edi + 0x2c]
push eax
push esi
call dword [ebp + 0x10]
push 0x2a
mov dword [ebp - 4], eax
pop eax
mov word [esi + ebx*2 - 2], ax
cmp dword [ebp - 4], 0
je 0x1000a73b
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000a696
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000ae3d
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x10247460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x1000aff0
push edi
call fcn.100977b6
pop ecx
test eax, eax
je 0x1000aff0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x1000aff0
test al, 1
je 0x1000ae99
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 0x668], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x668], 0x10
je 0x1000afd4
push esi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.100971d0
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.10097721
lea eax, [ebp - 0x414]
push 0x101e60a4
push eax
call fcn.100976f3
push 0x24c
lea eax, [ebp - 0x660]
push ebx
push eax
mov dword [ebp - 0x664], ebx
call fcn.100971d0
add esp, 0x28
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x1000afca
push 0x101e6528
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000afa3
push 0x101e6524
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000afa3
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.100971d0
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10097721
lea eax, [ebp - 0x20c]
push 0x101e5fb4
push eax
call fcn.100976f3
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.100976f3
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1000ae3d
add esp, 0x2c
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000af1f
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
jmp 0x1000afdb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x1000aff2
cmp dword [ebp + 0xc], ebx
je 0x1000aff2
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1000aff2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100970b0
leave
ret
Function at 0x1000b000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x10247460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x1000b1d5
push ebx
call fcn.100977b6
pop ecx
test eax, eax
je 0x1000b1d5
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x668]
push eax
push ebx
mov dword [ebp - 0x668], esi
call fcn.10008ba2
add esp, 0x1c
test eax, eax
je 0x1000b1d5
cmp dword [ebp - 0x668], 0xffffffff
je 0x1000b1d5
test byte [ebp - 0x668], 1
je 0x1000b07e
and dword [ebp - 0x668], 0xfffffffe
push dword [ebp - 0x668]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x668], 0x10
je 0x1000b1b9
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.100971d0
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.10097721
lea eax, [ebp - 0x414]
push 0x101e60a4
push eax
call fcn.100976f3
push 0x24c
lea eax, [ebp - 0x660]
push esi
push eax
mov dword [ebp - 0x664], esi
call fcn.100971d0
add esp, 0x28
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x1000b1af
push 0x101e6528
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000b188
push 0x101e6524
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000b188
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.100971d0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10097721
lea eax, [ebp - 0x20c]
push 0x101e5fb4
push eax
call fcn.100976f3
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.100976f3
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1000b000
add esp, 0x2c
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000b104
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
jmp 0x1000b1c0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, esi
jne 0x1000b1d7
cmp dword [ebp + 0xc], esi
je 0x1000b1d7
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1000b1d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100970b0
leave
ret
Function at 0x1000b22a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
call fcn.100f2a40
test eax, eax
je 0x1000b247
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x1000b2b2
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1000b2b1
push edi
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.100971d0
push esi
call fcn.10063b52
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1000b2b0
push esi
push ebx
push edi
call fcn.100971d0
add esp, 0xc
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, eax
test ebx, ebx
je 0x1000b2b0
push esi
push dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
push edi
call fcn.1001c10d
add esp, 0x10
test eax, eax
je 0x1000b2b0
push dword [ebp + 0xc]
call fcn.100977b6
pop ecx
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x1000c315
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10247460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x40c], ebx
call esi
mov dword [ebp - 0x408], eax
cmp eax, 0xffffffff
jne 0x1000c35b
push dword [ebp + 0x10]
push ebx
push edi
jmp 0x1000c42d
test al, 1
je 0x1000c370
and eax, 0xfffffffe
push eax
push ebx
mov dword [ebp - 0x408], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x408], 0x10
je 0x1000c423
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.100971d0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call edi
push eax
push ebx
mov ebx, str._s.bak_08X
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.10098983
and dword [ebp - 0x408], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
jmp 0x1000c405
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push dword [ebp - 0x40c]
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.10098983
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 0x408]
cmp dword [ebp - 0x408], 0xa
jge 0x1000c44d
cmp eax, 0xffffffff
jne 0x1000c3cc
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [ebp - 0x40c]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x410]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
mov esi, eax
call fcn.1000ba9d
mov eax, esi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100970b0
leave
ret
xor eax, eax
jmp 0x1000c43e
Function at 0x1000efab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp + 8], ebx
je 0x1000efd1
push dword [ebp + 8]
call fcn.100977b6
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], ebx
je 0x1000efe2
push dword [ebp + 0xc]
call fcn.100977b6
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
lea edi, [eax + ecx]
lea edi, [edi + edi + 0x10]
push edi
call fcn.10063b52
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x1000f000
xor eax, eax
jmp 0x1000f06f
push edi
push ebx
push esi
call fcn.100971d0
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.10097250
add esp, 0x18
cmp dword [ebp - 0x10], ebx
jbe 0x1000f02d
push dword [esi]
lea eax, [esi + 0xc]
push dword [ebp + 8]
push eax
call fcn.1009776c
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jbe 0x1000f047
push dword [esi + 4]
mov eax, dword [esi]
push dword [ebp + 0xc]
lea eax, [esi + eax*2 + 0xe]
push eax
call fcn.1009776c
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x1000ef80
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x1000f06f
mov edx, dword [ebp - 4]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret