joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001c0b
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, 0x5a4d
push edi
mov edi, ecx
cmp word [edi], ax
jne 0x10001d29
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x10001d29
mov ecx, dword [eax + edi + 0x80]
test ecx, ecx
je 0x10001d29
mov eax, dword [eax + edi + 0x84]
test eax, eax
je 0x10001d29
push esi
lea esi, [ecx + edi]
add eax, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
cmp esi, eax
jae 0x10001d28
push ebx
cmp dword [esi + 0xc], 0
je 0x10001d27
mov ebx, dword [esi + 0x10]
mov eax, dword [esi]
add ebx, edi
add eax, edi
mov dword [ebp - 4], eax
cmp dword [ebx], 0
je 0x10001d18
mov esi, 0x10004040
mov dword [ebp - 0x14], 8
mov ecx, dword [esi]
test ecx, ecx
je 0x10001c9c
cmp ecx, dword [ebx]
jne 0x10001cfa
jmp 0x10001cb7
mov ecx, dword [eax]
test ecx, ecx
js 0x10001cfa
push dword [esi - 4]
lea eax, [edi + 2]
add eax, ecx
push eax
call dword [sym.imp.ntdll.dll_strcmp]
pop ecx
pop ecx
test eax, eax
jne 0x10001cf7
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push 0x40
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov eax, dword [ebp - 4]
add esi, 0x18
sub dword [ebp - 0x14], 1
jne 0x10001c90
add ebx, 4
add eax, 4
mov dword [ebp - 4], eax
cmp dword [ebx], 0
jne 0x10001c84
mov esi, dword [ebp - 0x18]
add esi, 0x14
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x1c]
jb 0x10001c65
pop ebx
pop esi
pop edi
leave
ret

Function at 0x100026cf
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov esi, dword [ebx + edi*4]
mov eax, esi
shr eax, 7
and eax, 0x1010101
imul edx, eax, 0x1b
mov eax, esi
and eax, 0xff7f7f7f
add eax, eax
xor edx, eax
mov eax, esi
mov ecx, edx
rol eax, 0x10
xor ecx, esi
rol esi, 8
ror ecx, 8
xor ecx, eax
xor ecx, esi
xor ecx, edx
mov dword [ebx + edi*4], ecx
inc edi
cmp edi, 4
jl 0x100026d6
pop edi
pop esi
pop ebx
ret
Function at 0x10002713
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
mov dword [ebp - 8], ecx
push esi
mov dword [ebp - 4], eax
mov edx, 0x1010101
push edi
mov edi, dword [ecx + eax*4]
mov eax, edi
shr eax, 7
and eax, edx
imul ebx, eax, 0x1b
mov eax, edi
and eax, 0xff7f7f7f
add eax, eax
xor ebx, eax
mov eax, ebx
shr eax, 7
and eax, edx
imul ecx, eax, 0x1b
mov eax, ebx
and eax, 0xff7f7f7f
add eax, eax
xor ecx, eax
mov eax, ecx
shr eax, 7
and eax, edx
imul esi, eax, 0x1b
mov eax, ecx
and eax, 0xff7f7f7f
add eax, eax
xor esi, eax
mov edx, esi
xor esi, ecx
xor edx, edi
mov eax, esi
mov ecx, edx
xor eax, edi
xor ecx, ebx
rol eax, 0x10
ror ecx, 8
xor ecx, eax
rol edx, 8
mov eax, dword [ebp - 4]
xor ecx, edx
mov edx, dword [ebp - 8]
xor ecx, esi
xor ecx, ebx
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp - 4], eax
mov ecx, edx
mov edx, 0x1010101
cmp eax, 4
jl 0x10002728
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100027ff
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, 0x10001288
push edi
mov edx, esi
call fcn.10002639
mov ebx, 0x90
xor edi, edi
mov ecx, esi
call fcn.10002695
mov ecx, edi
movzx eax, byte [ecx + esi]
mov al, byte [eax + 0x10001298]
mov byte [ecx + esi], al
inc ecx
cmp ecx, 0x10
jl 0x10002820
lea ecx, [ebx + 0x100011e8]
mov edx, esi
call fcn.10002639
mov ecx, esi
call fcn.10002713
sub ebx, 0x10
test ebx, ebx
jg 0x10002817
mov ecx, esi
call fcn.10002695
movzx eax, byte [edi + esi]
mov al, byte [eax + 0x10001298]
mov byte [edi + esi], al
inc edi
cmp edi, 0x10
jl 0x10002855
pop edi
mov edx, esi
mov ecx, 0x100011e8
pop esi
pop ebx
jmp fcn.10002639

Function at 0x1000297a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, edx
call fcn.10002639
mov edx, esi
mov ecx, 0x10001128
call fcn.10002639
push 0xa
mov edi, 0x10001138
pop ebx
mov ecx, esi
call fcn.1000264e
call fcn.10002664
mov ecx, esi
call fcn.100026cf
mov edx, esi
mov ecx, edi
call fcn.10002639
add edi, 0x10
sub ebx, 1
jne 0x10002998
mov ecx, esi
call fcn.1000264e
call fcn.10002664
pop edi
mov edx, esi
mov ecx, 0x100011d8
pop esi
pop ebx
jmp fcn.10002639
Function at 0x10002f21
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov eax, edx
lea edx, [ebp - 0xe4]
push esi
push edi
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.10002e7b
lea edx, [ebp - 0xe4]
lea ecx, [ebp - 0x214]
call fcn.10002e3f
mov esi, eax
lea edi, [ebp - 0x34]
xor eax, eax
mov dword [ebp - 8], esi
stosd dword es:[edi], eax
lea ecx, [ebp - 0x214]
mov ebx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp esi, 0x10
jl 0x10002fa1
shr esi, 4
mov eax, esi
shl eax, 4
sub ebx, eax
mov dword [ebp - 0xc], ebx
mov ebx, ecx
lea edx, [ebp - 0x34]
mov ecx, ebx
call fcn.1000297a
add ebx, 0x10
sub esi, 1
jne 0x10002f83
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ebx, ebx
jle 0x10002fb3
push ebx
push ecx
lea eax, [ebp - 0x24]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x34]
mov byte [ebp + ebx - 0x24], 0x80
lea ecx, [ebp - 0x24]
call fcn.1000297a
mov ebx, dword [sym.imp.ntdll.dll_memcpy]
lea eax, [ebp - 0x34]
push 0x10
push eax
lea eax, [ebp - 0x214]
add eax, esi
push eax
call ebx
mov eax, dword fs:[0x18]
lea ecx, [esi + 0x10]
mov esi, dword [ebp + 8]
add esp, 0xc
mov dword [esi], ecx
mov eax, dword [eax + 0x30]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push dword [esi]
mov edi, eax
lea eax, [ebp - 0x214]
push eax
push edi
call ebx
add esp, 0xc
push 0xec
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call ebx
add esp, 0xc
lea eax, [ebp - 0xe4]
push 0xac
push eax
push dword [ebp + 0x10]
call ebx
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10003038
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
mov esi, edx
mov dword [ebp - 0xc], ecx
push edi
push 0x10
mov dword [ebp - 0x14], esi
mov eax, dword [esi]
lea ecx, [esi + 4]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x10], ecx
pop edi
cmp eax, 0x50000
jne 0x1000307a
mov ebx, dword [sym.imp.ntdll.dll_memcpy]
lea eax, [ebp - 0x188]
push edi
push ecx
push eax
call ebx
add esp, 0xc
jmp 0x100030b0
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.10002d68
mov ebx, dword [sym.imp.ntdll.dll_memcpy]
lea eax, [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x188]
mov dword [ebp - 0x18], edi
push eax
call ebx
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
add esp, 0xc
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.10002e0c
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi]
add eax, 0xfffffffc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.10002e0c
lea eax, [esi + 0x14]
lea edx, [ebp - 0x23c]
mov dword [ebp - 0xc], eax
mov ecx, eax
call fcn.10002e7b
lea edx, [ebp - 0x23c]
lea ecx, [ebp - 0x178]
call fcn.10002e3f
lea esi, [ebp - 0x178]
mov edx, edi
add esi, eax
mov ecx, esi
call fcn.10002d68
lea eax, [esi + 0x10]
mov edx, edi
push eax
mov ecx, esi
call fcn.100029d7
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.10002639
mov eax, dword [ebp - 0x14]
add esi, 0x30
mov eax, dword [eax]
cmp eax, 0x60000
jne 0x1000318a
mov eax, dword [0x10004020]
mov ecx, dword [0x10004024]
push edi
push dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esi, 8
push esi
call ebx
add esp, 0xc
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x1a4]
add esi, edi
call fcn.10002b1c
lea eax, [ebp - 0x5c]
mov edx, esi
push eax
lea eax, [ebp - 0x188]
push eax
sub edx, eax
lea ecx, [ebp - 0x3c]
call fcn.10002b77
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call ebx
add esp, 0xc
lea eax, [ebp - 0x2c]
add esi, edi
push edi
push eax
lea eax, [ebp - 0x188]
push eax
call ebx
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x178]
sub esi, ecx
mov dword [ebp - 8], esi
cmp eax, 0x50000
je 0x100031b7
cmp eax, 0x60000
jne 0x100031cd
push ecx
lea eax, [ebp - 8]
mov edx, ecx
push eax
lea ecx, [ebp - 0x188]
call fcn.10002877
jmp 0x100031cd
push ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x178]
lea ecx, [ebp - 0x188]
call fcn.100023ed
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 8]
add ecx, 0x14
push ecx
push 0
mov dword [esi], ecx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push dword [esi]
mov edi, eax
lea eax, [ebp - 0x18c]
push eax
push edi
call ebx
add esp, 0xc
push 0xec
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call ebx
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0xac
push eax
push dword [ebp + 0x10]
call ebx
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x408a51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x408a60
pop dword [ebp - 0x3c]
mov eax, 0x408a60
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x7a94cb7a
sub dword [ebp - 0x4c], 0x2c42862f
mov dword [ebp - 0x48], 0x1af92633
sub dword [ebp - 0x48], 0xe8c5d9ee
mov dword [ebp - 0x44], 0xb9e669e7
add dword [ebp - 0x44], 0x9265da47
mov dword [ebp - 0x40], 0x6b6fcfc3
add dword [ebp - 0x40], 0x9490303d
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x2da9dad6
sub eax, 0x2d690a82
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x81d4377
add dword [ebp - 0x4c], 0x6c5525df
mov dword [ebp - 0x48], 0x4f99d876
sub dword [ebp - 0x48], 0xe2d7701
mov dword [ebp - 0x44], 0xda5816fd
sub dword [ebp - 0x44], 0x76e8aa91
mov dword [ebp - 0x40], 0x3679ac1e
add dword [ebp - 0x40], 0xc98653e2
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xe25f5c2f
add eax, 0x1de1741d
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3cdab
push 0
call eax
mov ecx, 0x8c48b6a6
sub ecx, 0x8c48614a
xor edi, edi
add edi, eax
mov edx, 0x46f84fa8
add edx, 0xb9496058
add edx, dword [ebp - 0x3c]
mov esi, 0x3c3d3e0a
sub dword [ebp - 0xc], edi
mov ebx, dword [edx]
sub dword [ebp - 0x24], 0xa2cfe0df
add ebx, esi
add dword [ebp - 0x18], esi
mov dword [edi], ebx
xor dword [ebp - 0x10], 0xdfad248c
add edi, 0x3d9ff0a
sub edi, 0x3d9ff06
add edx, 0xc4ab4fe0
add edx, 0x3b54b024
loop 0x408b79
add eax, 0xc837b91d
sub eax, 0xc83670da
xor ebx, ebx
add ebx, eax
add eax, 0xdfeeb4e8
sub eax, 0xdfeeb4e3
mov ecx, 0xa068c135
add ecx, 0x5fd73ecb
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x482c30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f6ecb
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.004e9b72
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x482cb2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004e723a
mov eax, dword [eax]
push 0x553260
push eax
call fcn.004d9494
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004e9dfd
test bl, bl
je 0x482cb2
push 0x553260
lea ecx, [esp + 0xc]
call fcn.004ea1d9
push 0x556dc0
lea ecx, [esp + 0xc]
call fcn.004ea1d9
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 0x482cee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004e9dfd
jmp 0x482db9
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 0x482d72
lea edx, [esp + 0x7c]
push 0x556dbc
push edx
call fcn.004d9494
add esp, 8
test eax, eax
je 0x482d72
lea eax, [esp + 0x7c]
push 0x556db8
push eax
call fcn.004d9494
add esp, 8
test eax, eax
je 0x482d72
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 0x482d02
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.004e9dfd
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 0x4835b0
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 0x483612
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 0x483620
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f6f4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x562268]
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 0x483758
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x483686
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004e9dfd
xor eax, eax
jmp 0x4837cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004e9f86
push esi
lea ecx, [esp + 0xc]
call fcn.004ea215
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x556df8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4837ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004835b0
test eax, eax
jne 0x4837ad
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.004835b0
test eax, eax
jne 0x4837ad
lea eax, [esp + 0x14]
push 0x556dd4
push eax
call fcn.004da570
mov esi, eax
add esp, 8
test esi, esi
jne 0x48378c
lea ecx, [esp + 0x14]
push 0x556dd0
push ecx
call fcn.004da4f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x48378c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x48378f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004e9f36
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x48369e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004e9dfd
xor eax, eax
jmp 0x4837cf
mov byte [esi], 0
push 0x556dcc
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.004e9dfd
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 0x494260
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 0x4942ce
cmp si, 0x69
ja 0x4942ce
add esi, 0xffd0
cmp si, 0x11
je 0x49429e
push 0x11
call edi
test ax, ax
jge 0x49429e
or esi, 0x2000
cmp si, 0x10
je 0x4942b3
push 0x10
call edi
test ax, ax
jge 0x4942b3
or esi, 0x4000
cmp si, 0x12
je 0x4942c8
push 0x12
call edi
test ax, ax
jge 0x4942c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4942db
mov esi, 0xbd
jmp 0x49428f
cmp si, 0x6e
jne 0x4942e8
mov esi, 0xbe
jmp 0x49428f
cmp si, 0x6f
jne 0x494289
mov esi, 0xbf
jmp 0x49428f

Function at 0x495a90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5730f8]
xor edx, edx
cmp eax, edx
jne 0x495ab6
xor eax, eax
mov byte [eax + 0x572ff8], al
inc eax
cmp eax, 0x100
jl 0x495a9e
mov dword [0x5730f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x572ff8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x495b47
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 0x495b1a
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 0x495ae8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x495bc0
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 0x495c13
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 0x495bfa
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
Function at 0x49c650
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x49c7e8
cmp ebp, ebx
jle 0x49c7e8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, reloc.OLEAUT32.dll_VariantInit
mov dword [esp + 0x10], edi
jns 0x49c6ae
dec eax
or eax, 0xfffffff8
inc eax
je 0x49c6b5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x49c6c4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x49c6cb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004e9b3e
add esp, 4
cmp eax, ebx
je 0x49c6ec
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.004e9b3e
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x49c7de
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x49c7c5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x49c7b1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x49c7a6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x49c7b4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x49c7b4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x49c750
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x49c741
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x49f7f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f8458
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x49f829
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.004f1611
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.004f1699
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0049f8b0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.004f16d6
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24