joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004690
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100478c1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10060214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x100046f7
mov eax, dword [esi]
jmp 0x100046f9
mov eax, esi
push 0
push 0x10057fc2
mov ecx, esi
mov byte [eax], 0
call fcn.1000c3a0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x1000479f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x18], eax
call fcn.10022f4e
add esp, 4
mov edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x18]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [edi], 0
jne 0x1000476c
xor ecx, ecx
jmp 0x1000477a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004771
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.1000c5b0
cmp dword [esi + 0x14], 0x10
jb 0x1000478d
mov eax, dword [esi]
jmp 0x1000478f
mov eax, esi
mov ecx, dword [ebp - 0x18]
push edi
mov byte [eax + ecx], 0
call fcn.10022f49
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x100047bb
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.1000d190
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10022ebc
mov esp, ebp
pop ebp
ret
Function at 0x10009380
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x10060214]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
push 0x10058518
push edx
lea eax, [esp + 0x18]
mov ebx, ecx
push eax
call fcn.1000e820
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x100093ba
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [esp + 0x24]
mov esi, eax
cmp ecx, 0x10
jb 0x100093e0
inc ecx
push ecx
push dword [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.1000d190
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
cmp esi, 0xffffffff
je 0x1000944e
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x28], 0x10
je 0x1000943b
mov ecx, ebx
call fcn.1000a200
lea ecx, [esp + 0x54]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10009432
test dl, dl
je 0x1000942e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10009432
add ecx, 2
add eax, 2
test dl, dl
jne 0x10009412
xor eax, eax
jmp 0x10009437
sbb eax, eax
or eax, 1
test eax, eax
je 0x10009465
lea eax, [esp + 0x28]
push eax
push esi
call edi
test eax, eax
jne 0x10009400
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.10022ebc
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x16c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10022ebc
mov esp, ebp
pop ebp
ret
Function at 0x1000c8d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10060214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000c9fe
cmp byte [ebx + 0x3d], 0
je 0x1000c9fe
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1000c929
xor al, al
jmp 0x1000ca00
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000c310
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000c98f
sub eax, 1
je 0x1000c993
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x1000c9e6
xor bl, bl
jmp 0x1000c9e8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x1000c9c8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10031e8f
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x1000c98b
cmp byte [ebx + 0x3d], 0
je 0x1000c9e6
test esi, esi
jne 0x1000c951
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.1000c540
jmp 0x1000c94e
mov bl, 1
cmp ecx, 0x10
jb 0x1000c9fa
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.1000d190
mov al, bl
jmp 0x1000ca00
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10022ebc
mov esp, ebp
pop ebp
ret
Function at 0x1000d4a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047296
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10060214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10022f16
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10021e53
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001d657
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
movzx edi, byte [edx + 0x1004ac20]
mov dword [esp + 0x10], edi
mov eax, edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
or ebp, ecx
mov ecx, dword [esp + 0x10]
shl ecx, 3
xor ecx, dword [esp + 0x10]
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
imul eax, edi, 0x11b
or ebp, ecx
mov ecx, dword [esp + 0x10]
shl ecx, 2
xor ecx, dword [esp + 0x10]
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x10062a70], eax
mov dword [edx*8 + 0x10062a74], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x1001d664
pop edi
pop esi
pop ebp
mov byte [0x10063271], 1
pop ebx
add esp, 0x10
ret
Function at 0x1001d7af
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
push edi
xor edi, edi
movzx edx, byte [edi + str.cw]
mov ecx, edx
mov eax, edx
shr ecx, 7
imul esi, ecx, 0x1b000000
shl eax, 0x19
imul ecx, ecx, 0x11b
xor esi, eax
mov eax, edx
shl eax, 8
or eax, edx
shl eax, 8
or esi, eax
lea eax, [edx + edx]
xor ecx, eax
xor eax, eax
xor ecx, edx
or eax, esi
or ecx, esi
mov dword [edi*8 + 0x10062260], eax
mov dword [edi*8 + 0x10062264], ecx
inc edi
cmp edi, 0x100
jl 0x1001d7b3
xorps xmm0, xmm0
pop edi
movlpd qword [0x10062a68], xmm0
movlpd qword [0x10062a60], xmm0
mov byte [0x10063270], 1
pop esi
ret
Function at 0x1001e567
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1001e5b8
mov ecx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push 4
pop ebp
cmp edx, ebp
jb 0x1001e59f
push ebx
mov ebx, edx
shr ebx, 2
mov eax, dword [esi]
sub edx, ebp
xor eax, dword [ecx]
add esi, ebp
mov dword [edi], eax
add ecx, ebp
add edi, ebp
sub ebx, 1
jne 0x1001e58b
pop ebx
test edx, edx
je 0x1001e5b5
sub esi, ecx
sub edi, ecx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edi + ecx], al
inc ecx
sub edx, 1
jne 0x1001e5a7
pop edi
pop esi
pop ebp
ret

Function at 0x100219d4
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
mov edx, dword [esp + 4]
add eax, eax
push 4
lea ecx, [ecx*4 - 4]
movaps xmm0, xmmword [edx + eax*8]
movaps xmm1, xmmword [edx]
movaps xmmword [edx], xmm0
movaps xmmword [edx + eax*8], xmm1
pop eax
cmp ecx, eax
jbe 0x10021a1a
aesimc xmm0, xmmword [edx + ecx*4]
aesimc xmm1, xmmword [edx + eax*4]
movaps xmmword [edx + eax*4], xmm0
add eax, 4
movaps xmmword [edx + ecx*4], xmm1
sub ecx, 4
cmp eax, ecx
jb 0x100219fc
aesimc xmm0, xmmword [edx + eax*4]
movaps xmmword [edx + eax*4], xmm0
ret
Function at 0x10021a25
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
push esi
movups xmm0, xmmword [eax + edi - 0x10]
movaps xmmword [esp + 0x2c], xmm0
call fcn.100262e0
movaps xmm1, xmmword [esp + 0x2c]
mov edx, edi
shr edx, 2
add esp, 0xc
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
lea eax, [edx + 7]
mov dword [esp + 0x18], 0x1004aae4
shl eax, 4
xor ecx, 1
add eax, esi
mov dword [esp + 0x1c], eax
lea eax, [esi + edx*4]
mov dword [eax], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
jmp 0x10021b2c
cmp edi, 0x18
jne 0x10021ab5
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x10021afa
cmp edi, 0x20
jne 0x10021af3
pinsrd xmm1, dword [esi + 0x2c], 3
mov eax, dword [esi + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 2
xor ecx, dword [esi + 0x10]
xor eax, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
pinsrd xmm1, eax, 3
jmp 0x10021afa
pinsrd xmm1, dword [esi + 0x1c], 3
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add dword [esp + 0x18], 4
aeskeygenassist xmm0, xmm1, 0
pextrd eax, xmm0, 3
xor eax, dword [edi]
lea ecx, [esi + edx*4]
xor eax, dword [esi]
mov edi, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esi + 4]
xor eax, dword [ecx]
mov dword [esp + 0x14], ecx
mov dword [esi + edx*4 + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + edx*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
lea eax, [esi + 0x10]
lea eax, [eax + edx*4]
cmp eax, dword [esp + 0x1c]
jne 0x10021a97
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100385e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10038464

Function at 0x1003da12
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003d6d2
Function at 0x4137ba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edx, dword [ecx]
and edx, 7
cmp dword [ebp + 0xc], 5
jae 0x4137d1
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0xc]
lea edi, [ecx + eax - 4]
cmp esi, edi
jae 0x4137f8
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4137f8
inc esi
jmp 0x4137e9
mov eax, esi
sub eax, ecx
cmp esi, edi
mov dword [ebp - 8], eax
jae 0x4138e8
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x41382d
xor edx, edx
mov cl, byte [esi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x41385a
cmp cl, 0xff
je 0x41385a
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x4137dc
dec ecx
shl edx, cl
and edx, 7
je 0x413813
movzx ecx, byte [edx + 0x4179e0]
mov edi, esi
sub edi, ecx
cmp byte [edx + 0x4179d8], 0
mov cl, byte [edi + 4]
je 0x413855
test cl, cl
je 0x413855
cmp cl, 0xff
jne 0x413813
mov dword [ebp - 4], eax
jmp 0x413822
xor ebx, ebx
mov bh, cl
mov bl, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x413883
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x41388a
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4138be
movzx edi, byte [edx + 0x4179e0]
push 0x18
mov eax, ebx
shl edi, 3
pop ecx
sub ecx, edi
shr eax, cl
test al, al
je 0x4138a9
cmp al, 0xff
jne 0x4138bb
push 0x20
mov eax, dword [ebp - 8]
pop ecx
push 1
sub ecx, edi
pop edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x413875
mov eax, dword [ebp - 8]
mov ecx, ebx
mov byte [esi + 1], bl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
add eax, 5
jmp 0x4137dc
mov esi, eax
push 3
sub esi, dword [ebp - 4]
pop edi
lea ecx, [esi - 1]
shl edx, cl
and edx, 7
cmp edi, esi
sbb ecx, ecx
pop edi
not ecx
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
pop ebx
mov dword [edx], ecx
leave
ret
Function at 0x40af70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b07b
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.0045fa99
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40aff2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d9b0
mov eax, dword [eax]
push 0x4f71f0
push eax
call fcn.004505e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045fd24
test bl, bl
je 0x40aff2
push 0x4f71f0
lea ecx, [esp + 0xc]
call fcn.004600b4
push 0x4fad6c
lea ecx, [esp + 0xc]
call fcn.004600b4
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 0x40b02e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045fd24
jmp 0x40b0f9
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 0x40b0b2
lea edx, [esp + 0x7c]
push 0x4fad68
push edx
call fcn.004505e4
add esp, 8
test eax, eax
je 0x40b0b2
lea eax, [esp + 0x7c]
push 0x4fad64
push eax
call fcn.004505e4
add esp, 8
test eax, eax
je 0x40b0b2
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 0x40b042
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.0045fd24
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 0x40b8f0
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 0x40b952
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 0x40b960
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b0fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5016b0]
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 0x40ba98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b9c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045fd24
xor eax, eax
jmp 0x40bb0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045fe61
push esi
lea ecx, [esp + 0xc]
call fcn.004600f0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4fada4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40baed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040b8f0
test eax, eax
jne 0x40baed
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.0040b8f0
test eax, eax
jne 0x40baed
lea eax, [esp + 0x14]
push 0x4fad80
push eax
call fcn.00451620
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bacc
lea ecx, [esp + 0x14]
push 0x4fad7c
push ecx
call fcn.004515a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bacc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bacf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045fe11
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b9de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045fd24
xor eax, eax
jmp 0x40bb0f
mov byte [esi], 0
push 0x4fad78
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.0045fd24
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 0x41c520
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 0x41c58e
cmp si, 0x69
ja 0x41c58e
add esi, 0xffd0
cmp si, 0x11
je 0x41c55e
push 0x11
call edi
test ax, ax
jge 0x41c55e
or esi, 0x2000
cmp si, 0x10
je 0x41c573
push 0x10
call edi
test ax, ax
jge 0x41c573
or esi, 0x4000
cmp si, 0x12
je 0x41c588
push 0x12
call edi
test ax, ax
jge 0x41c588
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41c59b
mov esi, 0xbd
jmp 0x41c54f
cmp si, 0x6e
jne 0x41c5a8
mov esi, 0xbe
jmp 0x41c54f
cmp si, 0x6f
jne 0x41c549
mov esi, 0xbf
jmp 0x41c54f

Function at 0x41dc40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x511d38]
xor edx, edx
cmp eax, edx
jne 0x41dc66
xor eax, eax
mov byte [eax + 0x511c38], al
inc eax
cmp eax, 0x100
jl 0x41dc4e
mov dword [0x511d38], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x511c38
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41dcf7
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 0x41dcca
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 0x41dc98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41dd70
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 0x41ddc3
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 0x41ddaa
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