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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov esi, dword [eax + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x18], edx
test ecx, ecx
jne 0x461f68
lea ebp, [edx + esi]
xor edi, edi
test esi, esi
je 0x461e4a
lea esi, cs:[esi]
movzx ecx, byte [edx]
add edx, 1
mov eax, ecx
shl eax, 0x11
add eax, ecx
add edi, eax
mov eax, edi
shr eax, 2
xor edi, eax
cmp edx, ebp
jne 0x461e30
mov eax, edi
xor edx, edx
div dword [ebx + 4]
mov eax, dword [ebx]
lea ebp, [edx*4]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x461ec0
mov dword [esp + 0x14], ebx
mov ebx, edx
jmp 0x461e7a
mov ebx, dword [ebx]
test ebx, ebx
je 0x461f48
cmp dword [ebx + 8], edi
jne 0x461e70
cmp dword [ebx + 0xc], esi
jne 0x461e70
mov eax, dword [esp + 0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x461e70
mov edx, ebx
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
cmp dword [edx + 0x10], eax
jae 0x461f38
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x461f58
lea esi, [esi]
mov dword [esp + 4], 0x28
mov dword [esp], ebx
call fcn.00406110
test eax, eax
je 0x461f58
mov edx, dword [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.004060a0
mov edx, eax
test eax, eax
je 0x461f38
mov dword [eax + 0x20], 0
movd xmm1, dword [esp + 0x18]
mov dword [eax + 0x24], 0
add ebp, dword [ebx]
movd xmm0, dword [ebp]
mov dword [eax + 0x18], 0
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x1c]
punpckldq xmm0, xmm1
movq qword [edx], xmm0
mov dword [edx + 0x10], eax
mov dword [ebp], edx
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x461ed0
add esp, 0x2c
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
cmp esi, 1
je 0x461feb
mov ecx, dword [esp + 0x18]
xor edx, edx
xor eax, eax
lea ebp, [ecx + esi]
test esi, esi
je 0x461fd0
lea esi, [esi]
xor edi, edi
jmp 0x461f8f
add edi, 1
cmp edi, esi
je 0x461fd0
cmp byte [ecx + edi], 0
je 0x461f88
cmp edi, esi
je 0x461fd0
mov dword [esp + 0x14], esi
lea esi, [esi]
movzx edi, byte [ecx]
add ecx, 1
mov esi, edi
shl esi, 0x11
add esi, edi
add esi, eax
mov eax, esi
shr eax, 2
xor eax, esi
cmp ecx, ebp
jne 0x461fa0
mov esi, dword [esp + 0x14]
add edx, 1
lea ebp, [ecx + esi]
jmp 0x461f80
mov ecx, edx
shl ecx, 0x11
add ecx, edx
add edx, 1
add eax, ecx
imul esi, edx
mov edi, eax
shr edi, 2
xor edi, eax
jmp 0x461e4a
mov ebp, dword [esp + 0x18]
movzx edi, byte [ebp]
test edi, edi
je 0x461e4a
xor edx, edx
xor eax, eax
nop
mov ecx, edi
mov esi, edx
add edx, 1
shl ecx, 0x11
add ecx, edi
movzx edi, byte [ebp + edx]
add eax, ecx
mov ecx, eax
shr ecx, 2
xor eax, ecx
test edi, edi
jne 0x462000
mov ecx, edx
add esi, 2
shl ecx, 0x11
add edx, ecx
add eax, edx
mov edi, eax
shr edi, 2
xor edi, eax
jmp 0x461e4a
Function at 0x473f90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00481cb0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00481cb0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x473ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4b2494]
test esi, esi
jle 0x474110
mov eax, dword [0x4b2498]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x474024
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4740a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x474010
mov dword [esp], ebx
call fcn.004749e0
mov edi, eax
test eax, eax
je 0x474137
mov eax, dword [0x4b2498]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00474b20
mov edx, dword [0x4b2498]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x474117
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4740a0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4740b0
add dword [0x4b2494], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4b2498]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4740a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00473f90
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x47402e
mov eax, dword [0x4b2498]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00473f90
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00473f90
lea esi, cs:[esi]
nop
Function at 0x474650
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4b24b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4b24a8]
sub esp, 4
test ebx, ebx
je 0x4746a5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x47469e
test eax, eax
jne 0x47469e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x474680
mov dword [esp], 0x4b24b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4749e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x474a05
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x474a10
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x474a05
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x474a58
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x474a4e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x474a5a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x474a40
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1000589d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [fcn.1000589d]
mov dword [0x102d636c], 0x1060
mov ecx, dword [0x102d6368]
mov edx, ecx
add edx, 0x1bd4
add ecx, 0xc29
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
jmp 0x100058fb
mov eax, dword [ebp - 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
jmp 0x100058fb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x10005910
jmp 0x100058d2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
je 0x100058ea
jmp 0x100058d2
mov eax, dword [ebp - 0x14]
mov dword [0x102d636c], eax
mov eax, dword [ebp - 0x10]
add esp, 0x14
pop ebp
ret

Function at 0x10005935
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102d6368], 0x13a8
mov dword [0x102d6374], 0
mov byte [0x102d6378], 0
mov edi, dword [0x102d636c]
add edi, 0xffffea5b
mov dword [0x102d636c], edi
mov dword [0x102d6370], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100059b1
xor eax, eax
mov dword [0x102d6368], 0x119a
mov dword [0x102d6370], 0
mov dword [ebp - 0x20], eax
jmp 0x100059e8
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102d636c]
add eax, 0xfffff29d
mov dword [0x102d6368], eax
mov eax, dword [0x102d6370]
add eax, 1
mov dword [0x102d6370], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100059b1
jmp 0x1000598e
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102d637c], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x102d6368], 0x21a0
mov edi, dword [0x102d6374]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x102d637c], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x102d6374], edx
mov dword [0x102d636c], 0xd15
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x102d6378], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov dword [0x102d6368], 0x18ab
mov cl, byte [0x102d6378]
mov esi, dword [0x102d6374]
mov byte [ebx + esi], cl
mov esi, dword [0x102d6370]
add esi, 1
mov dword [0x102d6370], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x100059e8
jmp 0x100059a9
Function at 0x10005b29
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x102cf683]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x102d636c], 0x780
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.10005a98
mov eax, dword [0x102d6368]
add eax, 0x23bd
mov dword [0x102d6368], eax
call fcn.10006439
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.100055f2
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x10005c5a
jmp 0x10005bc9
mov eax, dword [ebp - 0x44]
add eax, 0x1f30
mov ecx, dword [0x102d636c]
add ecx, 0xffffec01
mov dword [0x102d636c], ecx
mov dword [ebp - 0x40], eax
jmp 0x10005c5a
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x102d6368], 0x1a85
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1000579b
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x102d636c], 0xffffea19
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x4c], ecx
mov dword [0x102d6368], 0x24ae
cmp ecx, 0
mov dword [ebp - 0x40], eax
jne 0x10005ba7
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x10005d05
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x102d6368], 0xacb
mov dword [ebp - 0x10], eax
call fcn.100067e4
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10005d4b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x102d636c], 0x6ce
mov esi, dword [edx + eax + 0x24]
mov dword [0x102d6368], 0xfffffca0
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x10005e75
jmp 0x10005dc0
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x3c]
add edx, 2
mov esi, dword [ebp - 0x30]
cmp ecx, esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], eax
jb 0x10005dd0
jmp 0x10005e75
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [0x102d6368], 0xacb
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x10005e46
mov al, byte [ebp - 0x51]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x50]
add edx, 1
mov ah, byte [ebp - 0x52]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x4c], edx
jne 0x10005df4
mov al, byte [ebp - 0x52]
test al, 1
jne 0x10005e52
jmp 0x10005d97
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x102d6368], 0x1919
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000655e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [0x102d636c], 0x1a0e
mov dword [ebp - 4], 0
mov dword [0x102d6368], 0x7d0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [0x102d6368]
add edx, 0xfffffa13
mov dword [0x102d6368], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x102d636c], 0x19a
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x100065de
mov eax, dword [ebp - 0x14]
add esp, 0x24
pop ebp
ret
mov eax, 0xffffec88
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x1c], eax
je 0x10006634
jmp 0x100066e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x1000660b
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
jl 0x100065de
mov eax, dword [ebp - 0x24]
mov ecx, 0xffffec88
mov dword [0x102d6368], 0x2b1
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
je 0x100065c2
jmp 0x100066e0
mov eax, 0x1137
mov dword [0x102d6368], 0x2760
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x1c], eax
jne 0x100066e0
mov eax, 0x1137
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x1c], eax
jne 0x100066e0
mov eax, 0xfffff83a
mov dword [0x102d6368], 0xe63
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x1c], eax
jne 0x100066e0
mov eax, 0xffffee12
mov dword [0x102d6368], 0x43b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x100066e0
mov eax, 0xffffee12
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x100066e0
mov eax, 1
mov dword [0x102d6368], 0x26a1
mov dword [ebp - 0x14], eax
jmp 0x100065ba
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [0x102d636c], eax
mov dword [ebp - 0x14], ecx
jmp 0x100065ba
Function at 0x1000695a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0x1541
mov dword [0x102d6370], 0
mov dword [0x102d6374], 0
mov dword [0x102d6380], 0
mov dword [0x102d6368], 0x1541
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x10006af4
jmp 0x100069e7
mov eax, dword [0x102d6370]
mov ecx, dword [0x102d6368]
mov edx, dword [0x102d6374]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add ecx, 0xffffe50f
add esi, 1
mov ebx, eax
add ebx, 1
mov dword [0x102d6368], ecx
mov dword [ebp - 0x34], eax
mov eax, esi
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x102d6370], edx
mov dword [0x102d636c], 0x1c5a
mov ecx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov ecx, dword [ebp - 0x38]
add esi, ecx
mov eax, esi
mov dword [ebp - 0x3c], edx
cdq
idiv edi
mov dword [0x102d6374], edx
mov dword [0x102d6368], 0xe53
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x102d6378], cl
mov dword [0x102d636c], 0x1303
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x102d6378]
mov edx, dword [0x102d6374]
mov byte [edi + edx], cl
mov edx, dword [0x102d6368]
mov ecx, edx
add ecx, 0x1414
mov dword [0x102d6368], ecx
mov ecx, dword [0x102d6370]
movzx ecx, byte [edi + ecx]
mov esi, dword [0x102d6374]
movzx esi, byte [edi + esi]
add esi, ecx
mov ecx, edx
add ecx, 0xfffff366
mov dword [0x102d6368], ecx
and esi, 0xff
mov dword [0x102d6380], esi
mov cl, byte [edi + esi]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
mov ch, byte [esi + edi]
add edx, 0xffffe34d
mov dword [0x102d6368], edx
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + edi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x30], ebx
jne 0x100069c7
mov dword [0x102d636c], 0xaeb
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4029e0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, eax
lea edi, [esp + 0x10]
call fcn.00401300
mov ecx, dword [esp + 0x10]
mov ebp, dword [ecx - 8]
xor esi, esi
test ebp, ebp
jle 0x402a4d
lea ecx, [ecx]
mov al, byte [esi + ecx]
cmp al, 0x5c
je 0x402a0b
cmp al, 0x2f
jne 0x402a48
lea ebx, [esp + 0x10]
call fcn.00402190
mov edi, dword [esp + 0x10]
push 0
push edi
mov byte [esi + edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402a37
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push edi
push 2
call edx
lea ebx, [esp + 0x10]
call fcn.00402190
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx], 0x5c
inc esi
cmp esi, ebp
jl 0x402a00
lea eax, [ecx - 0xc]
cmp eax, 0x424d78
je 0x402a6e
lea esi, [ecx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402a6e
push esi
call fcn.0040b07a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x403370
Capabilities:
Execute vbscript javascript or jscript in memory

Disassembly:
sub esp, 0x20
push ebx
mov ebx, eax
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x4033a1
call fcn.004010a0
mov esi, eax
test esi, esi
jne 0x4033a3
push 0x8007000e
call fcn.00401100
xor esi, esi
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov edi, eax
test edi, edi
jl 0x4033d0
lea ecx, [esp + 0x10]
push ecx
push 0x4203c4
push 0x17
push 0
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call ebx
mov eax, dword [esp + 0x10]
test edi, edi
jge 0x403408
test eax, eax
je 0x4033ed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4033fd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x20
ret 8
mov edi, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
jl 0x4034b1
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x41e378
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x4034ad
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov esi, eax
test esi, esi
jl 0x4034ad
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push 6
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
mov esi, eax
test esi, esi
jl 0x4034ad
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x30]
call fcn.004011b0
mov eax, dword [eax]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0
push 0
push 0
push eax
push edi
call edx
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
call ebx
mov eax, dword [esp + 0x10]
test esi, esi
jl 0x4034b1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 2
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4034bd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4034cd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x20
ret 8