joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011fe4c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x20a
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.1012db70
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.1012db70
add esp, 0x18
lea eax, [ebp - 0x210]
mov ecx, 0x105
push ecx
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
push ecx
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1011fedb
cmp word [ebp - 0x210], bx
je 0x1011fedb
mov bl, 1
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret 4

Function at 0x101230bc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 4]
mov dword [ebp - 0x14], ebx
mov esi, 0xc0000023
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
push 0x40
pop eax
test ecx, ecx
jns 0x101230e4
mov eax, 0x240
mov edi, dword [ebp + 0x1c]
shl edi, 9
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
cmp edi, dword [ebp + 0x10]
ja 0x1012316e
push 0x60
push 3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x12019f
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenFile]
mov esi, eax
test esi, esi
js 0x1012316e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
shld ecx, eax, 9
push ebx
shl eax, 9
test byte [ebp + 0x20], 2
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov dword [ebp - 8], ecx
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
je 0x1012315d
call dword [sym.imp.ntdll.dll_ZwWriteFile]
jmp 0x10123163
call dword [sym.imp.ntdll.dll_ZwReadFile]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ntdll.dll_ZwClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x1c

Function at 0x10123873
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xc
push ebx
push eax
call fcn.1012db70
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
push ebx
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push esi
push 0xc
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.1012b632
leave
ret
Function at 0x10125455
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x10125509
mov ecx, dword [esi + 0x6c]
mov edi, dword [ebp + 0xc]
sub ecx, 0xffffff80
mov dword [edi], ecx
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x1012548e
push 0x1024c714
push ecx
call fcn.1012b9b2
mov dword [esi + 0x64], eax
pop ecx
pop ecx
test eax, eax
je 0x10125509
push dword [edi]
xor edi, edi
push edi
push eax
call fcn.1012db70
mov ecx, dword [esi + 0x64]
mov eax, dword [ebp + 0xc]
push 0x10
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x6c]
mov dword [ecx + 0x58], eax
lea eax, [esi + 0x14]
push eax
mov eax, dword [esi + 0x64]
add eax, 0x10
push eax
call fcn.1012d5f0
push 0x10
lea eax, [esi + 0x24]
push eax
mov eax, dword [esi + 0x64]
add eax, 0x20
push eax
call fcn.1012d5f0
mov ecx, dword [esi + 0x64]
add esp, 0x24
mov eax, dword [esi + 0x44]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x4c]
lea edx, [eax + 0x7c]
cmp dword [esi + 0x6c], edi
jbe 0x10125502
mov eax, dword [ecx]
add edi, 4
xor eax, dword [esi + 0x68]
lea ecx, [ecx + 4]
mov dword [edx], eax
lea edx, [edx + 4]
cmp edi, dword [esi + 0x6c]
jb 0x101254ea
mov eax, dword [esi + 0x64]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x1012550b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10125ffd
Capabilities:
Encode data using xor
Set file attributes
Write file on windows

Disassembly:
push 0x20
mov eax, 0x1017d7b2
call fcn.1012b67a
mov esi, ecx
xor eax, eax
xor ebx, ebx
and dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
and dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
je 0x1012607c
push 0x1024c714
push dword [esi + 0x6c]
call fcn.1012b9b2
mov dword [ebp + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x101260a1
push edi
call fcn.1012b7b2
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
mov edi, dword [esi + 0x6c]
mov dword [ebp - 0x10], ecx
test edi, edi
je 0x10126091
and dword [ebp + 0xc], ebx
mov edx, dword [esi + 0x54]
test edi, edi
je 0x101260a1
mov ebx, dword [ebp + 0xc]
mov eax, dword [edx]
add ebx, 4
xor eax, dword [esi + 0x68]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
cmp ebx, dword [esi + 0x6c]
jb 0x10126062
mov ebx, dword [ebp - 0x20]
jmp 0x101260a1
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10125455
mov ebx, eax
test ebx, ebx
jne 0x10126098
xor ebx, ebx
jmp 0x10126159
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
push 0xc
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
call fcn.10010082
mov esi, 0x80
pop ecx
push esi
push dword [ebp + 0xc]
test eax, eax
je 0x101260c6
call eax
jmp 0x101260cc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push 8
mov eax, dword [eax]
mov dword [ebp + 8], eax
call fcn.10010082
pop ecx
test eax, eax
je 0x101260f4
xor ecx, ecx
push ecx
push esi
push 2
push ecx
push ecx
push 0x40000000
push dword [ebp + 8]
call eax
jmp 0x1012610a
xor eax, eax
push eax
push esi
push 2
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x1012614a
push 0xa
call fcn.10010082
pop ecx
push 0
test eax, eax
je 0x10126133
lea ecx, [ebp - 0x14]
push ecx
push edi
push dword [ebp - 0x10]
push esi
call eax
jmp 0x10126142
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x14], edi
jne 0x1012614a
xor ebx, ebx
inc ebx
mov byte [ebp - 4], 0
test esi, esi
je 0x10126159
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x2c]
call fcn.1012b7b2
pop ecx
mov eax, ebx
call fcn.1012b643
ret 8
Function at 0x101261f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x101262bb
cmp dword [ebp + 0xc], 0
je 0x101262bb
mov ecx, dword [ebx + 0x58]
cmp ecx, 0x2000
ja 0x101262bb
mov eax, ecx
and eax, 0xfffffe00
cmp eax, ecx
jne 0x101262bb
mov dword [esi + 0x70], ecx
xor edi, edi
mov ecx, esi
call fcn.10125e56
test eax, eax
je 0x101262bb
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x10126262
push 0x1024c714
push dword [ebx + 0x58]
call fcn.1012b9b2
pop ecx
pop ecx
push eax
lea ecx, [esi + 0x5c]
call fcn.1004976c
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x101262b7
push dword [ebx + 0x58]
push edi
push eax
call fcn.1012db70
mov ecx, dword [esi + 0x5c]
add ebx, 0x7c
mov dword [ebp + 8], ebx
add esp, 0xc
mov ebx, dword [esi + 0x70]
test ebx, ebx
je 0x1012629c
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x68]
add edi, 4
xor eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
mov ebx, dword [esi + 0x70]
cmp edi, ebx
jb 0x10126282
mov ecx, dword [esi + 0x5c]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x10
push eax
lea eax, [esi + 0x24]
push eax
push ebx
push ecx
call fcn.1004a18a
add esp, 0x10
mov edi, eax
mov eax, edi
jmp 0x101262bd
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x101276a8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push 0
push eax
call fcn.1012db70
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.1012b632
leave
ret
Function at 0x10128a4d
Capabilities:
Create thread
Resume thread

Disassembly:
push 0x14
mov eax, 0x1017ded2
call fcn.1012b67a
mov edi, ecx
mov ecx, dword [ebp + 8]
call fcn.10015f3e
push 0x1024c714
push 0x18
call fcn.1012ba4d
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x10128a88
mov ecx, eax
call fcn.101280e8
mov ebx, eax
jmp 0x10128a8a
mov ebx, esi
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x10128a99
xor eax, eax
jmp 0x10128b63
mov dword [ebx], edi
mov dword [ebp - 0x18], ebx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [0x1024b9f8]
mov dword [ebp - 0x10], esi
push 4
call fcn.1010128b
add esp, 0xc
test eax, eax
je 0x10128b56
push esi
push 4
push ebx
push 0x10128e0f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x10128b37
mov ecx, ebx
call fcn.10128252
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xea60
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10128b47
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10128b47
cmp dword [ebp - 0x14], 0
je 0x10128b47
lea eax, [ebx + 4]
cmp dword [ebp + 8], eax
je 0x10128b32
push dword [ebp + 8]
mov ecx, dword [ebp + 8]
push dword [eax + 4]
push dword [eax]
call fcn.1001b65e
xor esi, esi
inc esi
jmp 0x10128b47
mov edi, esi
cmp dword [ebp - 0x10], edi
je 0x10128b47
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 1
test edi, edi
je 0x10128b56
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.1012949e
mov eax, esi
call fcn.1012b643
ret 4

Function at 0x10128e99
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0
mov eax, 0x10150b77
call fcn.1012b67a
mov esi, ecx
call fcn.10128267
xor ebx, ebx
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x10128ece
cmp eax, 0x80010119
je 0x10128ece
xor al, al
jmp 0x10128f36
lea edi, [esi + 4]
push edi
push 0x101b3e6c
push 1
push ebx
push 0x101b3f3c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10128eca
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.1001de59
mov dword [ebp - 4], ebx
mov edx, dword [edi]
lea edi, [esi + 8]
mov ecx, dword [eax]
push edi
push ebx
mov eax, dword [edx]
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push edx
call dword [eax + 0xc]
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
js 0x10128eca
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [edi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
setns al
call fcn.1012b643
ret 4
Function at 0x10129e0f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 4], esi
je 0x10129e35
xor eax, eax
inc eax
jmp 0x10129f58
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x1024b9f8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.....ipcx64for32lib.dll
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x10129f50
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10114081
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10129f4f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ReadProcessMemory64
push ebx
call esi
push str.GetModuleBaseNameW64
push ebx
mov dword [edi + 8], eax
call esi
push str.GetModuleFileNameExW64
push ebx
mov dword [edi + 0xc], eax
call esi
push str.EnumProcessModules64
push ebx
mov dword [edi + 0x10], eax
call esi
push str.GetCommandLine64
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.GetCurrentDirectory64
push ebx
mov dword [edi + 0x14], eax
call esi
push str.IsProcessWow64Process
push ebx
mov dword [edi + 0x18], eax
call esi
push str.GetModuleInformation64
push ebx
mov dword [edi + 0x24], eax
call esi
push str.NtQueryInformationThread64
push ebx
mov dword [edi + 0x20], eax
call esi
push str.NtQueryInformationProcess64
push ebx
mov dword [edi + 0x28], eax
call esi
xor esi, esi
mov dword [edi + 0x2c], eax
cmp dword [edi + 8], esi
je 0x10129f41
cmp dword [edi + 0xc], esi
je 0x10129f41
cmp dword [edi + 0x10], esi
je 0x10129f41
cmp dword [edi + 0x1c], esi
je 0x10129f41
cmp dword [edi + 0x14], esi
je 0x10129f41
cmp dword [edi + 0x18], esi
je 0x10129f41
cmp dword [edi + 0x24], esi
je 0x10129f41
cmp dword [edi + 0x20], esi
je 0x10129f41
cmp dword [edi + 0x28], esi
je 0x10129f41
test eax, eax
je 0x10129f41
mov dword [edi + 4], ebx
jmp 0x10129f4f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.10129fbd
pop ebx
xor eax, eax
cmp dword [edi + 4], esi
setne al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret

Function at 0x10144923
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101445e6

Function at 0x1014492e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10144767
Function at 0x408da0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46737b
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.0045c0b3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408e22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00459e6a
mov eax, dword [eax]
push 0x4821f0
push eax
call fcn.0044cb34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045c33e
test bl, bl
je 0x408e22
push 0x4821f0
lea ecx, [esp + 0xc]
call fcn.0045c6ce
push 0x485d50
lea ecx, [esp + 0xc]
call fcn.0045c6ce
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 0x408e5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045c33e
jmp 0x408f29
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 0x408ee2
lea edx, [esp + 0x7c]
push 0x485d4c
push edx
call fcn.0044cb34
add esp, 8
test eax, eax
je 0x408ee2
lea eax, [esp + 0x7c]
push 0x485d48
push eax
call fcn.0044cb34
add esp, 8
test eax, eax
je 0x408ee2
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 0x408e72
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.0045c33e
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 0x409720
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 0x409782
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 0x409790
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4673fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48c2b0]
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 0x4098c8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4097f6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c33e
xor eax, eax
jmp 0x40993f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045c47b
push esi
lea ecx, [esp + 0xc]
call fcn.0045c70a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x485d88
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40991d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409720
test eax, eax
jne 0x40991d
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.00409720
test eax, eax
jne 0x40991d
lea eax, [esp + 0x14]
push 0x485d64
push eax
call fcn.0044db70
mov esi, eax
add esp, 8
test esi, esi
jne 0x4098fc
lea ecx, [esp + 0x14]
push 0x485d60
push ecx
call fcn.0044daf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4098fc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4098ff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045c42b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40980e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c33e
xor eax, eax
jmp 0x40993f
mov byte [esi], 0
push 0x485d5c
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.0045c33e
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 0x41a320
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 0x41a38e
cmp si, 0x69
ja 0x41a38e
add esi, 0xffd0
cmp si, 0x11
je 0x41a35e
push 0x11
call edi
test ax, ax
jge 0x41a35e
or esi, 0x2000
cmp si, 0x10
je 0x41a373
push 0x10
call edi
test ax, ax
jge 0x41a373
or esi, 0x4000
cmp si, 0x12
je 0x41a388
push 0x12
call edi
test ax, ax
jge 0x41a388
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a39b
mov esi, 0xbd
jmp 0x41a34f
cmp si, 0x6e
jne 0x41a3a8
mov esi, 0xbe
jmp 0x41a34f
cmp si, 0x6f
jne 0x41a349
mov esi, 0xbf
jmp 0x41a34f

Function at 0x41bad0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49c908]
xor edx, edx
cmp eax, edx
jne 0x41baf6
xor eax, eax
mov byte [eax + 0x49c808], al
inc eax
cmp eax, 0x100
jl 0x41bade
mov dword [0x49c908], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49c808
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bb87
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 0x41bb5a
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 0x41bb28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bc00
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 0x41bc53
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 0x41bc3a
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