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

Disassembly:
sub esp, 0xc
mov ecx, dword [0x266d644]
push ebx
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
test ecx, ecx
jle 0x4432c3
mov edx, dword [esp + 0x28]
mov eax, dword [esi*4 + 0x266db98]
cmp dword [eax], edx
je 0x443129
inc esi
mov dword [esp + 0x10], esi
cmp esi, ecx
jl 0x443110
jmp 0x4432c3
cmp dword [esp + 0x38], 0x20
jne 0x443297
mov eax, dword [eax + 8]
mov ebp, dword [esp + 0x44]
test eax, eax
je 0x44316d
cmp ebp, 0x20
je 0x443149
cmp ebp, 0xffffffff
jne 0x44316d
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x4432c1
mov eax, dword [esp + 0x2c]
inc eax
imul ebx, eax, 3
and ebx, 0xfffffffc
mov eax, ebx
mov dword [esp + 0x14], ebx
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x266c134]
call dword [0x2669b14]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4432c3
mov edi, dword [esp + 0x30]
test edi, edi
jle 0x443262
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
mov ebp, edx
test eax, eax
jle 0x443242
mov ebx, ecx
mov esi, eax
mov ecx, 0xff
movzx eax, byte [ebp + 2]
sub eax, ecx
movzx ecx, byte [ebp + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
sub eax, ecx
movzx ecx, byte [ebp + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
sub eax, ecx
movzx ecx, byte [ebp - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx], al
lea ebx, [ebx + 3]
dec esi
jne 0x4431d3
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebx
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x4431c0
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
mov eax, dword [esi*4 + 0x266db98]
mov esi, dword [esp + 0x18]
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push ebx
push edi
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x266c134]
mov edi, eax
call dword [0x2669b18]
jmp 0x4432c3
cmp dword [esp + 0x38], 0x18
jne 0x4432c3
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x28
Function at 0x480c47
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x480cfd
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x480cdd
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x480cb8
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x480cf2
add edi, dword [esp + 0x14]
jmp 0x480cf6
add edi, dword [esp + 0x24]
test edx, edx
jne 0x480c96
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x481008
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x4810e2
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x4810b8
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x481080
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x4810cf
add edi, ecx
jmp 0x4810d3
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x481056
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x481702
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x4817b7
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x481798
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x481773
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x4817ad
add edx, dword [esp + 0x14]
jmp 0x4817b1
add edx, dword [esp + 0x24]
test esi, esi
jne 0x481751
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x4f676b85
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x10087c61
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10009530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10067d80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1005d3ea
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1000a540
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10009584
jmp dword [ecx*4 + 0x100096ec]
mov al, byte [esi]
test al, al
je 0x100095b2
cmp al, 0x20
je 0x1000959e
cmp al, 0xa1
jne 0x100095b2
cmp byte [esi + 1], al
jne 0x100095b2
test al, 0x80
je 0x100095aa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100095b2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10009591
test ecx, ecx
je case.default.0x10009584
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10009584
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100095f8
cmp dl, 0xa1
jne 0x100095ec
cmp byte [eax + 1], 0xa1
jne 0x100095ec
test ecx, ecx
jne 0x100095e4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1000960c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10009626
jmp 0x1000960c
cmp dl, 0x20
jne 0x1000960a
test ecx, ecx
jne 0x10009603
mov edi, eax
mov ecx, 1
jmp 0x1000960c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100095cc
cmp ecx, 1
jne case.default.0x10009584
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10009584
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10009584
mov al, byte [esi]
test al, al
je 0x1000967e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10009664
mov cl, byte [esi + 1]
test cl, cl
je 0x1000967e
cmp al, 0xa1
jne 0x10009654
cmp cl, al
je 0x10009661
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1000a7d0
inc esi
jmp 0x10009676
cmp al, 0x20
je 0x10009676
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1000a810
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000963d
push 0
lea ecx, [esp + 0x14]
call fcn.1000a810
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10013b00
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100096b1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100f9fe0
call fcn.1000a740
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1005d37c
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1000e610
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1006812b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1005d0f1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000e692
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1005b014
mov eax, dword [eax]
push 0x10109200
push eax
call fcn.1004de54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1005d37c
test bl, bl
je 0x1000e692
push 0x10109200
lea ecx, [esp + 0xc]
call fcn.1005d70c
push 0x1010cd48
lea ecx, [esp + 0xc]
call fcn.1005d70c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000e6ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1005d37c
jmp 0x1000e799
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1000e752
lea edx, [esp + 0x7c]
push 0x1010cd44
push edx
call fcn.1004de54
add esp, 8
test eax, eax
je 0x1000e752
lea eax, [esp + 0x7c]
push 0x1010cd40
push eax
call fcn.1004de54
add esp, 8
test eax, eax
je 0x1000e752
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000e6e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1005d37c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x1000ef90
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1000eff2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x1000f000
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100681ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x101131e0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x1000f138
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1000f066
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1005d37c
xor eax, eax
jmp 0x1000f1af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1005d4b9
push esi
lea ecx, [esp + 0xc]
call fcn.1005d748
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1000f18d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.1000ef90
test eax, eax
jne 0x1000f18d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.1000ef90
test eax, eax
jne 0x1000f18d
lea eax, [esp + 0x14]
push 0x1010cd5c
push eax
call fcn.1004ee90
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000f16c
lea ecx, [esp + 0x14]
push 0x1010cd58
push ecx
call fcn.1004ee10
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000f16c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1000f16f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1005d469
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1000f07e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1005d37c
xor eax, eax
jmp 0x1000f1af
mov byte [esi], 0
push 0x1010cd54
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.1005d37c
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x1001a580
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x1001a5ee
cmp si, 0x69
ja 0x1001a5ee
add esi, 0xffd0
cmp si, 0x11
je 0x1001a5be
push 0x11
call edi
test ax, ax
jge 0x1001a5be
or esi, 0x2000
cmp si, 0x10
je 0x1001a5d3
push 0x10
call edi
test ax, ax
jge 0x1001a5d3
or esi, 0x4000
cmp si, 0x12
je 0x1001a5e8
push 0x12
call edi
test ax, ax
jge 0x1001a5e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1001a5fb
mov esi, 0xbd
jmp 0x1001a5af
cmp si, 0x6e
jne 0x1001a608
mov esi, 0xbe
jmp 0x1001a5af
cmp si, 0x6f
jne 0x1001a5a9
mov esi, 0xbf
jmp 0x1001a5af

Function at 0x1001b970
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10068ba1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
mov ebp, dword [esp + 0x160]
push esi
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.1005c4c5
mov esi, dword [esp + 0x16c]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.1005c78b
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0xc]
push eax
call fcn.1005d3ea
lea ecx, [esp + 0xc]
push str..
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x16c], 0
call fcn.1005d5c5
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.1005d37c
test edi, edi
je 0x1001babe
mov edx, dword [0x101131e0]
mov dword [esp + 0x10], edx
cmp edi, 0xffffffff
mov byte [esp + 0x160], 1
je 0x1001baad
cmp byte [esp + 0x44], 0x2e
je 0x1001ba92
lea eax, [esp + 0xc]
push 0x10109200
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1005d5c5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 2
call fcn.1005d469
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.1005d37c
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.1005d70c
test byte [esp + 0x18], 0x10
mov eax, dword [esi + 8]
je 0x1001ba78
push 1
jmp 0x1001ba7a
push 0
push eax
mov ecx, esi
call fcn.1005c8d0
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.1005c63a
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001ba1e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.1005d37c
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.1005d37c
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret
Function at 0x1001baf0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10068bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
lea ecx, [esp + 8]
call fcn.1005c432
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], esi
call fcn.1005c72b
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x44], 1
call fcn.1001b970
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
mov ebx, eax
jle 0x1001bb8d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esp + 0x28]
cmp dword [eax + esi*4], 0
je 0x1001bb7c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + esi*4]
push eax
call fcn.1001baf0
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, dword [edx + esi*4]
push eax
call edi
jmp 0x1001bb86
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
push eax
call ebp
inc esi
cmp esi, ebx
jl 0x1001bb56
pop edi
pop ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.1005c75e
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.1005c465
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x1001bbc0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x20
jne 0x1001bbd2
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x1001bbca
cmp byte [esi], 0
je 0x1001bc01
cmp byte [esi + 1], 0x3a
jne 0x1001bbef
mov al, byte [esi + 2]
test al, al
je 0x1001bc01
cmp al, 0x5c
jne 0x1001bbef
mov al, byte [esi + 3]
test al, al
je 0x1001bc01
push esi
call fcn.1001baf0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x1001bf60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x101237e8]
xor edx, edx
cmp eax, edx
jne 0x1001bf86
xor eax, eax
mov byte [eax + 0x101236e8], al
inc eax
cmp eax, 0x100
jl 0x1001bf6e
mov dword [0x101237e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x101236e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1001c017
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1001bfea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x1001bfb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001c090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1001c0e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1001c0ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret