joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103dd9d
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push 0x103dfb8
push dword [0x1047380]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0x100ebd4
push 0x1029be8
push dword [0x1047380]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x103ddd9
call fcn.01036d8f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push 0x103df58
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103df31
push esi
push edi
push 0x10144d0
call fcn.0103d916
push 0x10169d0
mov dword [ebp - 0xc], eax
call fcn.0103d916
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x4c], ebx
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
stosd dword es:[edi], eax
call fcn.0103d99b
push 3
pop esi
push ebx
push 4
push 0x103df48
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0103d9d6
mov dword [ebp + esi*4 - 0x4c], eax
inc esi
cmp esi, 6
jb 0x103de2f
lea ecx, [ebp - 0x1c]
call fcn.0103d99b
xor edi, edi
lea esi, [ebp + edi*4 - 0x4c]
cmp dword [esi], ebx
jne 0x103de76
push 1
push 0x10
push 0x103df38
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0103d9d6
mov dword [esi], eax
inc edi
cmp edi, 6
jb 0x103de57
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], 3
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
push 0x40000000
lea eax, [ebp - 0x24]
push eax
call fcn.010080a1
push 0x13
xor esi, esi
pop ebx
mov edi, dword [ebp + esi*4 - 0x4c]
test edi, edi
je 0x103defd
push 0x26
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x103dec4
lea eax, [ebx + 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x103dec7
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x1009b64
push edi
call fcn.0100bb1b
test eax, eax
jl 0x103defd
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push 0x12
push 0x100837c
call fcn.0102b906
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
dec ebx
cmp esi, 6
jb 0x103dea8
xor esi, esi
push dword [ebp + esi*4 - 0x4c]
call dword [sym.imp.SHELL32.dll_ILFree]
inc esi
cmp esi, 6
jb 0x103df06
push dword [ebp - 0xc]
mov esi, dword [sym.imp.SHELL32.dll_SHFree]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x103e13a
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 1
push 0x1014530
push 0x1016c20
mov esi, ecx
xor ebx, ebx
push SysReAllocString
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x103e286
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], 9
call dword [sym.imp.SHLWAPI.dll_IStream_Write]
test eax, eax
jl 0x103e262
mov dword [ebp - 8], ebx
add esi, 0x38
push edi
push dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.01007ff7
test eax, eax
je 0x103e24a
mov eax, dword [ebp - 8]
movzx eax, byte [eax*8 + 0x1007f98]
push eax
push dword [ebp - 4]
call fcn.0103d480
test eax, eax
jl 0x103e261
mov eax, dword [esi]
cmp eax, ebx
je 0x103e23a
cmp dword [esi + 8], ebx
je 0x103e23a
cmp dword [eax], ebx
mov dword [ebp - 0xc], ebx
jle 0x103e23a
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov edi, dword [eax + ecx*4]
mov eax, dword [edi]
cmp ebx, eax
je 0x103e210
push 0
push dword [ebp - 4]
mov ebx, eax
call fcn.0103d480
test eax, eax
jl 0x103e261
push dword [ebx + 4]
push dword [esi + 8]
call fcn.0103d49d
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_WritePidl]
test eax, eax
jl 0x103e261
push 1
push dword [ebp - 4]
call fcn.0103d480
test eax, eax
jl 0x103e261
push dword [edi + 4]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_WritePidl]
test eax, eax
jl 0x103e261
inc dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax]
jl 0x103e1d6
push 2
push dword [ebp - 4]
call fcn.0103d480
test eax, eax
jl 0x103e261
xor ebx, ebx
inc dword [ebp - 8]
add esi, 0x1c
cmp dword [ebp - 8], 6
jb 0x103e195
mov dword [ebp - 0x10], 1
pop edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
jne 0x103e286
push 0x1014530
push 0x1016c20
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
pop esi
pop ebx
leave
ret
Function at 0x103f5f9
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jl 0x103f658
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], 0x100f8c8
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ILFree]
pop edi
leave
ret 4
Function at 0x104273a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1046080]
and word [ebp - 0x20c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push dword [esi + 0x250]
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
call edi
push dword [esi + 0x24c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [ebp - 0x218], eax
call esi
push 1
push ebx
mov dword [ebp - 0x220], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
and dword [ebp - 0x210], 0
mov dword [ebp - 0x21c], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10427e7
push 0x1029ca4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10427e7
push 2
push 0
lea eax, [ebp - 0x20c]
push eax
jmp 0x10427f0
push 2
push 0
push 0x1029ca4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x214], eax
je 0x1042892
push 0x10428c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x224], eax
je 0x104284e
push 0x64
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x210], eax
je 0x104284e
push 0x32
push eax
call dword [ebp - 0x224]
test eax, eax
jne 0x104284e
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x210], 0
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x210], 0
je 0x1042892
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
push ecx
push eax
push dword [ebp - 0x210]
push ecx
push ecx
push 0x12
push 0x46
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x218]
push ebx
call edi
push dword [ebp - 0x220]
push ebx
call esi
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001aff
leave
ret 4
Function at 0x404cae
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
xor esi, esi
cmp dword [0x61b0e8], 0x5b1
push edi
jne 0x404d47
push esi
lea eax, [ebp - 0x810]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 0x4047d8
push esi
call fcn.004056e8
call fcn.00404f91
push esi
call fcn.004054d0
add esp, 0xc
push esi
push esi
call fcn.004054db
push esi
call fcn.0040560d
add esp, 0xc
push esi
call fcn.00405864
mov dword [esp], esi
call fcn.00404903
fstp st(0)
push esi
call fcn.0040560d
pop ecx
call fcn.0040581a
add dword [0x61b0e8], 0x1134b
push dword [0x61b0e8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x61a038], eax
call fcn.00404bf9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x404d89
inc edi
cmp edi, 0x4f6a4
jl 0x404d70
xor edi, edi
cmp dword [0x61b0e8], esi
jbe 0x404dd5
cmp dword [0x61b0e8], 0xa8
mov eax, dword [0x61b0ec]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x61a038]
mov byte [ecx + edi], al
jne 0x404dcc
push esi
call dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
inc edi
cmp edi, dword [0x61b0e8]
jb 0x404d93
xor edi, edi
mov eax, dword [0x61b0e8]
add eax, edi
cmp eax, 0xe
jne 0x404df4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
inc edi
cmp edi, 0x39621
jl 0x404dd7
mov edi, 0x1e6cc
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec edi
jne 0x404e02
call fcn.00404b3b
call ebx
cmp edi, 0x26
jne 0x404e34
call fcn.00404bdf
inc edi
cmp edi, 0x6753f
jl 0x404e28
push 0x7b
pop edi
cmp dword [0x61b0e8], 0x86
jne 0x404e81
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
call dword [sym.imp.KERNEL32.dll_SetFileApisToANSI]
dec edi
jne 0x404e40
push 0x4047e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push ebx
push esi
xor esi, esi
cmp dword [0x61b0e8], 0x400
push edi
jne 0x404ef5
push esi
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
push esi
push esi
call fcn.00405348
push esi
call fcn.004053d7
add esp, 0xc
push esi
push esi
call fcn.00405348
push esi
push esi
call fcn.004056e8
push esi
call fcn.00405874
add esp, 0x14
push esi
push esi
call fcn.0040511d
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004048e0
fstp st(0)
mov eax, dword [0x4a7b14]
mov dword [0x61b0e8], eax
mov eax, dword [0x4a7aec]
mov dword [0x61b0ec], eax
call fcn.00404cae
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, edi
jle 0x404f3c
cmp dword [esp + 0x14], 0x785074d5
jne 0x404f45
inc ebx
cmp ebx, 0x1c1b
jl 0x404f15
xor ebx, ebx
push esi
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp ebx, edi
jle 0x404f71
cmp dword [esp + 0x14], 0x785074d5
jne 0x404f7a
inc ebx
cmp ebx, 0x11915
jl 0x404f47
mov eax, dword [0x61a038]
mov dword [0x61a67c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40657c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a61e0]
jne 0x406586
repz ret
jmp fcn.0040bf39
Function at 0x40d16d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408949
and dword [ebp - 4], 0
cmp dword [0x4a8708], 0
mov ebx, eax
jne 0x40d21e
push 0x401ddc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d2cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401dd0
push edi
call esi
test eax, eax
je 0x40d2cf
push eax
call fcn.004088d7
mov dword [esp], 0x401dc0
push edi
mov dword [0x4a8708], eax
call esi
push eax
call fcn.004088d7
mov dword [esp], 0x401dac
push edi
mov dword [0x4a870c], eax
call esi
push eax
call fcn.004088d7
mov dword [esp], 0x401d90
push edi
mov dword [0x4a8710], eax
call esi
push eax
call fcn.004088d7
pop ecx
mov dword [0x4a8718], eax
test eax, eax
je 0x40d21e
push 0x401d78
push edi
call esi
push eax
call fcn.004088d7
pop ecx
mov dword [0x4a8714], eax
mov eax, dword [0x4a8714]
cmp eax, ebx
je 0x40d276
cmp dword [0x4a8718], ebx
je 0x40d276
push eax
call fcn.00408952
push dword [0x4a8718]
mov esi, eax
call fcn.00408952
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d276
test edi, edi
je 0x40d276
call esi
test eax, eax
je 0x40d26d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d26d
test byte [ebp - 0xc], 1
jne 0x40d276
or dword [ebp + 0x10], 0x200000
jmp 0x40d2af
mov eax, dword [0x4a870c]
cmp eax, ebx
je 0x40d2af
push eax
call fcn.00408952
pop ecx
test eax, eax
je 0x40d2af
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d2af
mov eax, dword [0x4a8710]
cmp eax, ebx
je 0x40d2af
push eax
call fcn.00408952
pop ecx
test eax, eax
je 0x40d2af
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a8708]
call fcn.00408952
pop ecx
test eax, eax
je 0x40d2cf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d2d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fccf0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5bc1ab
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.005ad0ed
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4fcd72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005aa2bf
mov eax, dword [eax]
push 0x6eb220
push eax
call fcn.0059bab4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005ad378
test bl, bl
je 0x4fcd72
push 0x6eb220
lea ecx, [esp + 0xc]
call fcn.005ad708
push 0x6eedcc
lea ecx, [esp + 0xc]
call fcn.005ad708
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 0x4fcdae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005ad378
jmp 0x4fce79
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 0x4fce32
lea edx, [esp + 0x7c]
push 0x6eedc8
push edx
call fcn.0059bab4
add esp, 8
test eax, eax
je 0x4fce32
lea eax, [esp + 0x7c]
push 0x6eedc4
push eax
call fcn.0059bab4
add esp, 8
test eax, eax
je 0x4fce32
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 0x4fcdc2
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.005ad378
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 0x4fd670
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 0x4fd6d2
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 0x4fd6e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5bc22b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6f922c]
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 0x4fd818
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4fd746
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005ad378
xor eax, eax
jmp 0x4fd88f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005ad4b5
push esi
lea ecx, [esp + 0xc]
call fcn.005ad744
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x6eee04
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4fd86d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x6eedfc
push closesocket
call fcn.004fd670
test eax, eax
jne 0x4fd86d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x6eede8
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004fd670
test eax, eax
jne 0x4fd86d
lea eax, [esp + 0x14]
push 0x6eede0
push eax
call fcn.0059cc50
mov esi, eax
add esp, 8
test esi, esi
jne 0x4fd84c
lea ecx, [esp + 0x14]
push 0x6eeddc
push ecx
call fcn.0059cbd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4fd84c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4fd84f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005ad465
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4fd75e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005ad378
xor eax, eax
jmp 0x4fd88f
mov byte [esi], 0
push 0x6eedd8
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.005ad378
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 0x513200
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 0x51326e
cmp si, 0x69
ja 0x51326e
add esi, 0xffd0
cmp si, 0x11
je 0x51323e
push 0x11
call edi
test ax, ax
jge 0x51323e
or esi, 0x2000
cmp si, 0x10
je 0x513253
push 0x10
call edi
test ax, ax
jge 0x513253
or esi, 0x4000
cmp si, 0x12
je 0x513268
push 0x12
call edi
test ax, ax
jge 0x513268
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x51327b
mov esi, 0xbd
jmp 0x51322f
cmp si, 0x6e
jne 0x513288
mov esi, 0xbe
jmp 0x51322f
cmp si, 0x6f
jne 0x513229
mov esi, 0xbf
jmp 0x51322f

Function at 0x515280
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x709ca8]
xor edx, edx
cmp eax, edx
jne 0x5152a6
xor eax, eax
mov byte [eax + 0x709ba8], al
inc eax
cmp eax, 0x100
jl 0x51528e
mov dword [0x709ca8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x709ba8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x515337
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 0x51530a
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 0x5152d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5153b0
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 0x515403
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 0x5153ea
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