joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008a50
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
xor esi, esi
call fcn.100089f0
add esp, 8
test eax, eax
je 0x10008abc
mov eax, dword [esp + 0x110]
test eax, eax
je 0x10008aa6
lea ecx, [esp + 8]
push 0x21
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
add esp, 0x104
ret
lea edx, [esp + 8]
push 0x20
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x10008ad0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push edi
push eax
xor edi, edi
push str.SoftwareLonsinNetConf
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10008b37
lea ecx, [esp + 0x18]
mov eax, 4
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push esi
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10008b2c
mov edi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 8
ret

Function at 0x10008b40
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push edi
push eax
xor edi, edi
push str.SoftwareLonsinNetConf
push reloc.WS2_32.dll_bind
mov dword [esp + 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10008b9d
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x10008b92
mov edi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ecx
ret

Function at 0x10008d50
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
lea eax, [esp]
push esi
xor esi, esi
push eax
push 4
push esi
push 0x10008dd0
push esi
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x10029568], eax
je 0x10008d85
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x10008e10
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1118
call fcn.1000b240
push ebx
push ebp
push esi
lea eax, [esp + 0x1c]
push edi
push eax
lea ecx, [esp + 0x12c]
push 0x1000
push ecx
xor ebx, ebx
xor esi, esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10008f55
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
shr edi, 2
mov dword [esp + 0x1c], edi
je 0x10008f55
lea ebp, [esp + 0x128]
mov esi, dword [ebp]
cmp esi, ebx
je 0x10008f1b
cmp esi, 4
je 0x10008f1b
cmp esi, 8
je 0x10008f1b
cmp dword [esp + 0x112c], ebx
je 0x10008e91
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x10008f1b
push esi
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x10008f1b
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
mov dword [esp + 0x10], ebx
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x14]
push 4
push eax
push esi
mov dword [esp + 0x28], ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x10008f10
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x10008f10
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea ecx, [esp + 0x24]
push str.netconf.exe
push ecx
call fcn.1000b1c0
add esp, 8
test eax, eax
jne 0x10008f3c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add ebp, 4
inc eax
cmp eax, edi
mov dword [esp + 0x14], eax
jb 0x10008e5d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1118
ret
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1118
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1118
ret
Function at 0x10008f70
Capabilities:
Check if file exists
Copy file
Get common file path
Get file size
Read .ini file

Disassembly:
sub esp, 0x514
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x31c], bl
mov byte [esp + 0x420], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x421]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [esp + 0x528]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x31c]
lea edx, [esp + 0x114]
push ecx
push str._s_version.inf
push edx
xor esi, esi
call fcn.1000a573
add esp, 0xc
lea eax, [esp + 0x114]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000909b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
cmp ebp, ebx
je 0x10009169
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
push esi
push ebp
push str.PROGRAM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jbe 0x10009162
mov al, byte [ebp]
mov esi, ebp
cmp al, bl
je 0x10009162
lea ecx, [esp + 0x31c]
push esi
push ecx
lea edx, [esp + 0x428]
push str._s_s
push edx
call fcn.1000a573
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x218]
push esi
push eax
push str._s_s
push ecx
call fcn.1000a573
add esp, 0x10
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1000914a
lea eax, [esp + 0x218]
push ebx
lea ecx, [esp + 0x424]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
cmp al, bl
jne 0x100090e8
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x514
ret
Function at 0x10009180
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1114
call fcn.1000b240
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1124]
push edi
xor edi, edi
cmp esi, edi
je 0x100092ce
cmp dword [esp + 0x112c], edi
je 0x100092ce
lea eax, [esp + 0x18]
lea ecx, [esp + 0x124]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x100092ce
mov ebx, dword [esp + 0x18]
mov dword [esi], edi
shr ebx, 2
mov ebp, edi
je 0x100092ce
lea edx, [esp + 0x124]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, edi
je 0x10009293
cmp eax, 4
je 0x10009293
cmp eax, 8
je 0x10009293
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x10009293
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
stosw word es:[edi], ax
push ecx
push 4
push edx
push esi
stosb byte es:[edi], al
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1000928a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x104
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x1000928a
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
mov eax, dword [esp + 0x112c]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.1000b1c0
add esp, 8
test eax, eax
jne 0x100092b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov ecx, dword [esp + 0x10]
inc ebp
add ecx, 4
cmp ebp, ebx
mov dword [esp + 0x10], ecx
jb 0x100091e7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1114
ret
mov edx, dword [esp + 0x1128]
push edx
push 0xb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1114
ret
Function at 0x10009790
Capabilities:
Delete service

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x14]
xor edi, edi
cmp eax, ebx
je 0x10009818
cmp dword [esi + 0x1c], ebx
je 0x10009818
call fcn.10009910
mov edi, eax
cmp edi, ebx
jne 0x10009818
cmp dword [esi + 0x1c], ebx
je 0x10009818
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
jne 0x100097d3
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
mov eax, dword [esi + 4]
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x100097fe
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
neg edi
sbb edi, edi
and edi, 8
add edi, 0xfffffff8
jmp 0x10009803
mov edi, 0xfffffffe
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push ebp
call ebx
test edi, edi
jne 0x10009816
mov dword [esi + 0x18], edi
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x10009863
cmp edi, ebx
je 0x10009827
cmp dword [esp + 0x14], ebx
je 0x10009863
mov eax, dword [esi + 8]
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x1000983d
push eax
call fcn.10009c2b
add esp, 4
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x10009850
push eax
call fcn.10009c2b
add esp, 4
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x10009863
push eax
call fcn.10009c2b
add esp, 4
mov dword [esi + 4], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x10009910
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, ecx
push ebp
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x10009926
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x10009944
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebx + 4]
push esi
push edi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x10009987
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
mov dword [ebx], 0
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, eax
neg esi
sbb esi, esi
and esi, 7
add esi, 0xfffffff9
jmp 0x1000998c
mov esi, 0xfffffffe
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebp
call edi
test esi, esi
jne 0x1000999f
mov dword [ebx + 0x14], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x480a8e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004681a7
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x480ac6
xor eax, eax
jmp 0x480af2
cmp esi, dword [ebp - 4]
je 0x480aef
cmp dword [ebp + 0xc], 0
je 0x480aef
push dword [edi + 0x9c]
call fcn.0048069c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00465be2
pop ecx
pop ecx
cmp esi, eax
je 0x480ac2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x40a040
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46574b
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.0045a266
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a0c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045817d
mov eax, dword [eax]
push 0x4be1e8
push eax
call fcn.0044afa4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045a4f1
test bl, bl
je 0x40a0c2
push 0x4be1e8
lea ecx, [esp + 0xc]
call fcn.0045a881
push 0x4c1d5c
lea ecx, [esp + 0xc]
call fcn.0045a881
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 0x40a0fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045a4f1
jmp 0x40a1c9
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 0x40a182
lea edx, [esp + 0x7c]
push 0x4c1d58
push edx
call fcn.0044afa4
add esp, 8
test eax, eax
je 0x40a182
lea eax, [esp + 0x7c]
push 0x4c1d54
push eax
call fcn.0044afa4
add esp, 8
test eax, eax
je 0x40a182
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 0x40a112
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.0045a4f1
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 0x40a9c0
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 0x40aa22
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 0x40aa30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4657cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c8200]
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 0x40ab68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40aa96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a4f1
xor eax, eax
jmp 0x40abdf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045a62e
push esi
lea ecx, [esp + 0xc]
call fcn.0045a8bd
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40abbd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040a9c0
test eax, eax
jne 0x40abbd
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.0040a9c0
test eax, eax
jne 0x40abbd
lea eax, [esp + 0x14]
push 0x4c1d70
push eax
call fcn.0044c020
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ab9c
lea ecx, [esp + 0x14]
push 0x4c1d6c
push ecx
call fcn.0044bfa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ab9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ab9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045a5de
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40aaae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a4f1
xor eax, eax
jmp 0x40abdf
mov byte [esi], 0
push 0x4c1d68
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.0045a4f1
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 0x41b660
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 0x41b6ce
cmp si, 0x69
ja 0x41b6ce
add esi, 0xffd0
cmp si, 0x11
je 0x41b69e
push 0x11
call edi
test ax, ax
jge 0x41b69e
or esi, 0x2000
cmp si, 0x10
je 0x41b6b3
push 0x10
call edi
test ax, ax
jge 0x41b6b3
or esi, 0x4000
cmp si, 0x12
je 0x41b6c8
push 0x12
call edi
test ax, ax
jge 0x41b6c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41b6db
mov esi, 0xbd
jmp 0x41b68f
cmp si, 0x6e
jne 0x41b6e8
mov esi, 0xbe
jmp 0x41b68f
cmp si, 0x6f
jne 0x41b689
mov esi, 0xbf
jmp 0x41b68f

Function at 0x41cd80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d8878]
xor edx, edx
cmp eax, edx
jne 0x41cda6
xor eax, eax
mov byte [eax + 0x4d8778], al
inc eax
cmp eax, 0x100
jl 0x41cd8e
mov dword [0x4d8878], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d8778
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41ce37
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 0x41ce0a
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 0x41cdd8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ceb0
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 0x41cf03
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 0x41ceea
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