joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a0ee
Capabilities:
Reference http user-agent string

Disassembly:
push 0x28
mov eax, 0x10037a83
call fcn.10024db8
mov esi, dword [ebp + 8]
xor edi, edi
push 0x1003e3f4
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
call fcn.10005540
mov dword [ebp - 4], edi
xor ebx, ebx
mov edi, str.Mozilla_5.0__Windows_NT_10.0_
inc ebx
push edi
mov dword [ebp - 0x30], ebx
call fcn.10024080
pop ecx
push eax
push edi
mov ecx, esi
call fcn.100054cb
call fcn.10019282
push eax
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.1000c26b
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.1000556f
push 0
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10004fe2
push 0x100410f0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.1000c26b
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.1000556f
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10004fe2
mov eax, esi
call fcn.10024e3b
ret 4

Function at 0x1001d101
Capabilities:
Enumerate files on windows

Disassembly:
push 0x298
mov eax, 0x100380c0
call fcn.10024db8
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], edi
lea eax, [ebp + 0xc]
push eax
xor ebx, ebx
lea eax, [ebp - 0x48]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1001cd99
cmp dword [eax + 0x14], 8
jb 0x1001d13c
mov eax, dword [eax]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
call fcn.10009e3b
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2a0], ebx
call fcn.10019844
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.1001d096
push edi
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.10009e3b
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1001d1c7
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10019844
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.1001d096
push 0
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.10009e3b
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call edi
test eax, eax
jne 0x1001d19b
push eax
push ebx
lea ecx, [ebp + 0xc]
call fcn.10004fe2
mov eax, esi
call fcn.10024e3b
ret 0x20
Function at 0x1001f4a5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1001f4b3
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x1001f56e
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10041630]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10041630]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10041630]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10041630]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10041630]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10041630]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10041630]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10041630]
add edx, 8
sub edi, 8
dec esi
jne 0x1001f4d1
pop ebx
test edi, edi
je 0x1001f587
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x10041630]
inc edx
dec edi
jne 0x1001f572
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x1001f58d
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x10041630]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x10041630]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x1001f76d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100496f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [0x1005bfd8]
test eax, eax
jne 0x1001f7b0
mov eax, 0x200
jmp 0x1001f939
mov ecx, dword [ebp - 0x38]
xor eax, eax
push ebx
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x1001f7c7
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x1001f7d0
or dword [ebp - 0x3c], 2
test cl, 4
je 0x1001f7d9
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x1001f7e4
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x1001f7ed
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x1001f7fa
or dword [ebp - 0x3c], 0x40000000
jmp 0x1001f801
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x1001f814
or dword [ebp - 0x3c], 0x800000
push ebx
push esi
call dword [0x1005c0bc]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x1001f8b9
push ebx
push ebx
push ebx
push esi
call dword [0x1005beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x1005c004]
push ebx
push ebx
push 0x24
push esi
call dword [0x1005beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x1005c004]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x1001f8b9
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x1001f8b9
push ebx
push ebx
push eax
push esi
call dword [0x1005beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x1005c004]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x1001f8b2
cmp eax, 0x454e
je 0x1001f8b2
cmp eax, 0x454c
je 0x1001f8b2
cmp eax, 0x4550
jne 0x1001f8b9
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x1001f8c5
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x1001f8d1
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp edi, ebx
je 0x1001f90a
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.1001f6d8
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.1001f6d8
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.1001f6d8
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x54]
cmp esi, ebx
pop ebx
je 0x1001f937
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.1001f6fc
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100227aa
leave
ret
Function at 0x100205dd
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x1002060a
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.10022730
mov ecx, dword [ebp + 0xc]
mov eax, ecx
movzx edx, word [eax*8 + 0x100415e2]
mov dword [esi + 0x6af98], edx
movzx edx, word [eax*8 + 0x100415e0]
mov dword [esi + 0x6af9c], edx
movzx edx, word [eax*8 + 0x100415e4]
mov dword [esi + 0x6afa0], edx
movzx eax, word [eax*8 + 0x100415e6]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ecx, 2
jg 0x10020670
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x1002067c
cmp ecx, 8
jl 0x1002067c
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x100206e3
cmp eax, 0xffffffff
je 0x100206e3
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x100206be
push esi
call fcn.1001ebc9
pop ecx
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x100206c6
jmp 0x100206f3
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10020ca5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x10020ead
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x10020d1f
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x10020d62
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x10020d62
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x10020d49
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.1001ea85
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x10020d62
mov ebx, eax
cmp ebx, 3
jb 0x10020e27
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.1001e60a
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x10020df4
cmp eax, 3
jb 0x10020df4
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x10020da2
jmp 0x10020e4a
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x10020e50
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.1001e60a
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x10020e8c
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x10020e69
lea ecx, [eax + esi + 0x1af70]
jmp 0x10020e6b
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.10020b22
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x10020e9f
push esi
call fcn.1001ebc9
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x10020ccf
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x10020ec0
lea ecx, [eax + esi + 0x1af70]
jmp 0x10020ec2
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.10020b22
add esp, 0x10
pop esi
pop ebx
leave
ret

Function at 0x100227aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100496f0]
jne 0x100227b4
repz ret
jmp fcn.10029228
Function at 0x100317fc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100496f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1002a8e3
and dword [ebp - 0x14], 0
cmp dword [0x1005d108], 0
mov dword [ebp - 0x18], eax
jne 0x100318af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10031957
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10031957
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1005d108], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1005d10c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1005d110], eax
call edi
push eax
call esi
mov dword [0x1005d118], eax
test eax, eax
je 0x100318af
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1005d114], eax
mov eax, dword [0x1005d114]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10031908
cmp dword [0x1005d118], ecx
je 0x10031908
push eax
call esi
push dword [0x1005d118]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10031908
test ebx, ebx
je 0x10031908
call edi
test eax, eax
je 0x100318ff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100318ff
test byte [ebp - 8], 1
jne 0x10031908
or dword [ebp + 0x10], 0x200000
jmp 0x1003193b
mov eax, dword [0x1005d10c]
cmp eax, dword [ebp - 0x18]
je 0x1003193b
push eax
call esi
test eax, eax
je 0x1003193b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1003193b
mov eax, dword [0x1005d110]
cmp eax, dword [ebp - 0x18]
je 0x1003193b
push eax
call esi
test eax, eax
je 0x1003193b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1005d108]
call esi
test eax, eax
je 0x10031957
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10031959
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100227aa
leave
ret

Function at 0x4baaf9
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x6f2e58
push eax
push dword fs:[0]
outsd dx, dword [esi]
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x4bab79
arpl word [edx + esi], si
into
mov byte [0x14d09108], al
mov eax, dword [0xf025629f]
dec edx
test al, 0x52
aad 0x6d
insd dword es:[edi], dx
adc dword [edx + 0x1f], esi
scasb al, byte es:[edi]
dec edi
test edx, esi
jns 0x4bab86
pop ebx
nop
test al, 0x81
xchg byte [edx + 0xc40d691], cl
or ah, ch
jns 0x4bab2b
fsubr st(4)
mov ebx, 0x750f4d42
invalid
jbe 0x4baafc
test eax, 0x7f55dc2f
sbb al, 0x9a
sub edx, dword [edi - 0x735c5eb]
fidiv dword ds:[edi + 0x6b4a9cb8]
daa
invalid
retf 0x3ef8
Function at 0x409540
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b0bb
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.0046fbd6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4095c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046daed
mov eax, dword [eax]
push 0x4911c0
push eax
call fcn.0045fd94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046fe61
test bl, bl
je 0x4095c2
push 0x4911c0
lea ecx, [esp + 0xc]
call fcn.004701f1
push 0x494d4c
lea ecx, [esp + 0xc]
call fcn.004701f1
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 0x4095fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046fe61
jmp 0x4096c9
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 0x409682
lea edx, [esp + 0x7c]
push 0x494d48
push edx
call fcn.0045fd94
add esp, 8
test eax, eax
je 0x409682
lea eax, [esp + 0x7c]
push 0x494d44
push eax
call fcn.0045fd94
add esp, 8
test eax, eax
je 0x409682
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 0x409612
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.0046fe61
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 0x409ec0
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 0x409f22
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 0x409f30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b13b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a0c30]
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 0x40a068
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409f96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046fe61
xor eax, eax
jmp 0x40a0df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046ff9e
push esi
lea ecx, [esp + 0xc]
call fcn.0047022d
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 0x40a0bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00409ec0
test eax, eax
jne 0x40a0bd
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 accept
mov ecx, edi
call fcn.00409ec0
test eax, eax
jne 0x40a0bd
lea eax, [esp + 0x14]
push 0x494d60
push eax
call fcn.00460dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a09c
lea ecx, [esp + 0x14]
push 0x494d5c
push ecx
call fcn.00460d50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a09c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a09f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046ff4e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409fae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046fe61
xor eax, eax
jmp 0x40a0df
mov byte [esi], 0
push 0x494d58
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.0046fe61
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 0x41a520
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 0x41a58e
cmp si, 0x69
ja 0x41a58e
add esi, 0xffd0
cmp si, 0x11
je 0x41a55e
push 0x11
call edi
test ax, ax
jge 0x41a55e
or esi, 0x2000
cmp si, 0x10
je 0x41a573
push 0x10
call edi
test ax, ax
jge 0x41a573
or esi, 0x4000
cmp si, 0x12
je 0x41a588
push 0x12
call edi
test ax, ax
jge 0x41a588
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a59b
mov esi, 0xbd
jmp 0x41a54f
cmp si, 0x6e
jne 0x41a5a8
mov esi, 0xbe
jmp 0x41a54f
cmp si, 0x6f
jne 0x41a549
mov esi, 0xbf
jmp 0x41a54f

Function at 0x41bc40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b1298]
xor edx, edx
cmp eax, edx
jne 0x41bc66
xor eax, eax
mov byte [eax + 0x4b1198], al
inc eax
cmp eax, 0x100
jl 0x41bc4e
mov dword [0x4b1298], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b1198
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bcf7
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 0x41bcca
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 0x41bc98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bd00
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 0x41bd53
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 0x41bd3a
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