joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001232
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 2
pop ebx
push 0x1001124
lea eax, [ebp - 0xc]
push eax
call esi
and dword [ebp - 0x20], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0x20001
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x18], 0x40
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x10012db
push 0x1001108
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0x28]
push eax
push 0x400
lea eax, [ebp - 0x428]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x10012d2
cmp dword [ebp - 0x424], 4
jne 0x10012d2
cmp dword [ebp - 0x420], 4
jne 0x10012d2
xor ebx, ebx
cmp dword [ebp - 0x41c], ebx
setne bl
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10012e1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x1001124
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0x20002
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x1001367
push 0x1001108
lea eax, [ebp - 0x10]
push eax
call esi
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ntdll.dll_NtSetValueKey]
test eax, eax
jl 0x100135e
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x100136d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
push eax
call edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push 0x60
mov dword [ebp - 0x28], eax
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x100001
lea eax, [ebp - 4]
xor esi, esi
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
cmp ebx, esi
jl 0x100149b
push dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push eax
call edi
push esi
push esi
push 0x60
push 5
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push 0x80
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x100002
lea eax, [ebp + 0x14]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
cmp ebx, esi
jl 0x1001492
mov edi, section..data
mov eax, dword [ebp + 0xc]
mov ecx, eax
or ecx, dword [ebp + 0x10]
je 0x1001489
cmp dword [ebp + 0x10], esi
jg 0x1001441
jl 0x100143c
cmp eax, 0x10000
jae 0x1001441
mov dword [ebp + 8], eax
jmp 0x1001448
mov dword [ebp + 8], 0x10000
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push edi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ebx, eax
cmp ebx, esi
jl 0x1001489
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push edi
push eax
push esi
push esi
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ebx, eax
mov eax, dword [ebp + 8]
sub dword [ebp + 0xc], eax
sbb dword [ebp + 0x10], esi
cmp ebx, esi
jge 0x1001424
push dword [ebp + 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14

Function at 0x1001903
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0
push 3
call fcn.010014de
push 0
push 1
call fcn.010014de
add esp, 0x10
jmp fcn.01001603
Function at 0x100196c
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 8]
push eax
call edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call edi
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 6]
mov eax, dword [eax + 0x30]
add ecx, 0x18
push ecx
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
je 0x1001a50
mov dword [esi + 4], esi
mov dword [esi], esi
lea eax, [esi + 0x18]
mov dword [esi + 0xc], eax
mov cx, word [ebp - 8]
mov word [esi + 8], cx
mov cx, word [ebp - 6]
mov word [esi + 0xa], cx
movzx ecx, word [ebp - 6]
push ecx
push dword [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_memmove]
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], ebx
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
add esp, 0xc
mov dword [eax], esi
cmp dword [esi + 0x14], ebx
je 0x1001a0e
mov eax, dword fs:[0x18]
push dword [esi + 0x14]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp + 0x10], ebx
je 0x1001a7b
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0xe]
mov eax, dword [eax + 0x30]
push ecx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x1001a57
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000017
jmp 0x1001a84
mov cx, word [ebp - 0x10]
mov word [esi + 0x10], cx
mov cx, word [ebp - 0xe]
mov word [esi + 0x12], cx
movzx ecx, word [ebp - 0xe]
push ecx
push dword [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
jmp 0x1001a82
push ebx
add esi, 0x10
push esi
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1001a8b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x4000
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
push 7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x10100
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jl 0x1001b30
push esi
mov esi, dword [sym.imp.ntdll.dll_NtSetInformationFile]
push edi
push 0xa
pop ecx
xor eax, eax
push 4
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x34], 0x80
call esi
push 0xd
push 1
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov byte [ebp + 0xb], 1
call esi
test eax, eax
pop edi
pop esi
jl 0x1001b27
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov al, bl
pop ebx
leave
ret 4

Function at 0x1001b37
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x1001ba0
push esi
call dword [sym.imp.ntdll.dll_wcslen]
pop ecx
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x4021
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
push 3
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x100001
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jge 0x1001ba7
xor al, al
jmp 0x1001c7e
push edi
mov edi, dword [sym.imp.ntdll.dll_wcscat]
mov byte [ebp - 8], 1
mov byte [ebp + 0xb], bl
push dword [ebp - 8]
lea eax, [ebp - 0x834]
push ebx
push 1
push 1
push 0x7fe
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
cmp eax, ebx
jl 0x1001c57
mov eax, dword [ebp - 0x7f8]
shr eax, 1
mov word [ebp + eax*2 - 0x7f4], bx
lea eax, [ebp - 0x7f4]
push 0x10010cc
push eax
call dword [sym.imp.ntdll.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1001c4f
lea eax, [ebp - 0x7f4]
push 0x10011dc
push eax
call dword [sym.imp.ntdll.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1001c4f
push 0x1001164
push esi
call edi
lea eax, [ebp - 0x7f4]
push eax
push esi
call edi
add esp, 0x10
test byte [ebp - 0x7fc], 0x10
push esi
je 0x1001c43
call fcn.01001b37
jmp 0x1001c48
call fcn.01001a8b
mov eax, dword [ebp - 0xc]
mov word [esi + eax*2], bx
mov byte [ebp - 8], bl
jmp 0x1001bb5
cmp eax, 0x80000006
pop edi
jne 0x1001c61
xor eax, eax
cmp eax, ebx
jge 0x1001c69
mov byte [ebp + 0xb], 1
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push esi
call fcn.01001a8b
cmp byte [ebp + 0xb], bl
sete al
pop esi
pop ebx
leave
ret 4
Function at 0x1001c84
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x80100000
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jl 0x1001d7a
push edi
push 0xa
pop ecx
xor eax, eax
push 4
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
pop edi
jge 0x1001d11
xor al, al
jmp 0x1001d7d
test byte [ebp - 0x38], 0x10
je 0x1001d6f
call dword [sym.imp.ntdll.dll_RtlGetLongestNtPathLength]
mov ecx, eax
cmp ecx, ebx
jne 0x1001d28
mov ecx, 0x104
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add ecx, ecx
push ecx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
je 0x1001d7a
push dword [ebp + 8]
push esi
call dword [sym.imp.ntdll.dll_wcscpy]
pop ecx
pop ecx
push esi
call fcn.01001b37
mov byte [ebp - 1], al
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1001d7a
push dword [ebp + 8]
call fcn.01001a8b
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 4
Function at 0x1001d92
Capabilities:
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push esi
push 0x1001190
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x60
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], eax
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
xor esi, esi
push 0x100001
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jge 0x1001df0
xor al, al
jmp 0x1001f10
push edi
push esi
push esi
push 2
pop edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
jl 0x1001ef6
cmp word [ebp - 8], 0xfeff
jne 0x1001ef6
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
push ebx
push esi
push esi
push 0x417
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
jl 0x1001ef5
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ntdll.dll_wcsstr]
mov dword [ebp - 0x20], eax
shr eax, 1
mov dword [ebp - 0x1c], eax
mov word [ebp + eax*2 - 0x458], si
lea eax, [ebp - 0x458]
push 0x10011e4
push eax
call edi
cmp eax, esi
pop ecx
pop ecx
je 0x1001ef5
lea ebx, [eax + 4]
push 0x10011e4
push ebx
mov word [eax], si
call edi
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x1001ea2
cmp dword [ebp - 0x20], 0x417
jae 0x1001ef5
mov edi, dword [ebp - 0x1c]
lea edi, [ebp + edi*2 - 0x458]
mov word [edi], si
mov ax, word [ebx]
neg ax
sbb eax, eax
and eax, ebx
push eax
lea eax, [ebp - 0x458]
push eax
push dword [ebp + 8]
call fcn.0100196c
lea eax, [edi + 4]
cdq
mov ecx, eax
mov edi, edx
lea eax, [ebp - 0x458]
cdq
push 0xe
sub ecx, eax
push 8
lea eax, [ebp - 0x10]
push eax
sbb edi, edx
add dword [ebp - 0x10], ecx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
adc dword [ebp - 0xc], edi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jge 0x1001e26
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push esi
push 0x1001190
push dword [ebp + 8]
call fcn.0100196c
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x40278c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret
Function at 0x4078ec
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x40790e
mov eax, 0xfffffffd
jmp 0x407986
mov ebx, dword [0x616210]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x407954
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x616210]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40797c
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x407986
mov esp, ebp
pop ebp
ret 4
Function at 0x463fe0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ea3eb
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.004de95c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x464062
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004dc13d
mov eax, dword [eax]
push 0x603d5c
push eax
call fcn.004cd764
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004debe7
test bl, bl
je 0x464062
push 0x603d5c
lea ecx, [esp + 0xc]
call fcn.004def77
push 0x603d68
lea ecx, [esp + 0xc]
call fcn.004def77
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 0x46409e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004debe7
jmp 0x464169
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 0x464122
lea edx, [esp + 0x7c]
push 0x603d64
push edx
call fcn.004cd764
add esp, 8
test eax, eax
je 0x464122
lea eax, [esp + 0x7c]
push 0x603d60
push eax
call fcn.004cd764
add esp, 8
test eax, eax
je 0x464122
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 0x4640b2
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.004debe7
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 0x464960
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 0x4649c2
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 0x4649d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ea46b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6120c0]
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 0x464b08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x464a36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004debe7
xor eax, eax
jmp 0x464b7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004ded24
push esi
lea ecx, [esp + 0xc]
call fcn.004defb3
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x603d9c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x464b5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00464960
test eax, eax
jne 0x464b5d
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.00464960
test eax, eax
jne 0x464b5d
lea eax, [esp + 0x14]
push 0x603d78
push eax
call fcn.004ce8b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x464b3c
lea ecx, [esp + 0x14]
push 0x603d74
push ecx
call fcn.004ce830
mov esi, eax
add esp, 8
test esi, esi
jne 0x464b3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x464b3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004decd4
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x464a4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004debe7
xor eax, eax
jmp 0x464b7f
mov byte [esi], 0
push 0x603d70
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.004debe7
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 0x478ce0
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 0x478d4e
cmp si, 0x69
ja 0x478d4e
add esi, 0xffd0
cmp si, 0x11
je 0x478d1e
push 0x11
call edi
test ax, ax
jge 0x478d1e
or esi, 0x2000
cmp si, 0x10
je 0x478d33
push 0x10
call edi
test ax, ax
jge 0x478d33
or esi, 0x4000
cmp si, 0x12
je 0x478d48
push 0x12
call edi
test ax, ax
jge 0x478d48
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x478d5b
mov esi, 0xbd
jmp 0x478d0f
cmp si, 0x6e
jne 0x478d68
mov esi, 0xbe
jmp 0x478d0f
cmp si, 0x6f
jne 0x478d09
mov esi, 0xbf
jmp 0x478d0f

Function at 0x47a5c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x622b70]
xor edx, edx
cmp eax, edx
jne 0x47a5e6
xor eax, eax
mov byte [eax + 0x622a70], al
inc eax
cmp eax, 0x100
jl 0x47a5ce
mov dword [0x622b70], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x622a70
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x47a677
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 0x47a64a
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 0x47a618
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x47a680
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 0x47a6d3
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 0x47a6ba
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