joyce8/EMBER2024-capa huggingface dataset:
Function at 0x693650
Capabilities:
Get common file path

Disassembly:
add byte [eax], al
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov dword [ebp - 4], eax
call fcn.00693558
test al, al
je 0x69366f
mov eax, dword [ebp - 4]
call fcn.0069357c
jmp 0x693697
mov word [ebp - 0x20e], 0
push 0x20a
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x20e]
invalid

Function at 0x693830
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406fbc
xor eax, eax
push ebp
push 0x6939d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x80004005
mov dword [ebp - 0x10], 0x104
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00407c44
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407ac0
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x6939a8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00407c44
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0041ef3c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
call fcn.00407300
push 0x6939e8
push 0x693a08
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040e438
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x693903
xor eax, eax
push ebp
push 0x6938f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push 0x64
push 0
call dword [ebp - 0x14]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x693903
cmp dword [ebp - 8], 0
jne 0x6939b0
lea eax, [ebp - 0x20]
push eax
push 0
push 2
mov eax, dword [ebp - 4]
call fcn.00407ac0
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00407ac0
push eax
call sub.advapi32.dll_LogonUserW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x69396c
lea eax, [ebp - 0x20]
push eax
push 0
push 2
mov eax, dword [ebp - 4]
call fcn.00407ac0
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407ac0
push eax
call sub.advapi32.dll_LogonUserW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
je 0x69399e
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_ImpersonateLoggedOnUser
test eax, eax
je 0x693994
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
call sub.advapi32.dll_RevertToSelf
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x6939b0
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 8], eax
jmp 0x6939b0
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 8], eax
jmp 0x6939b0
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6939dd
lea eax, [ebp - 0x28]
call fcn.00406ed8
lea eax, [ebp - 0xc]
call fcn.00406ed8
lea eax, [ebp - 4]
call fcn.00406ed8
ret
Function at 0x693a24
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406fbc
xor eax, eax
push ebp
push 0x693aa8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 9], 0
je 0x693a6c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407ac0
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
jmp 0x693a92
cmp dword [ebp - 8], 0
je 0x693a92
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
push 4
mov eax, dword [ebp - 4]
call fcn.00407ac0
push eax
call sub.advapi32.dll_SetFileSecurityW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x693aaf
lea eax, [ebp - 4]
call fcn.00406ed8
ret

Function at 0x693bec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406fbc
mov eax, dword [ebp - 8]
call fcn.00406fbc
mov eax, dword [ebp - 0x14]
call fcn.00406fbc
xor eax, eax
push ebp
push 0x693d57
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
call sub.kernel32.dll_SetLastError
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042054c
cmp dword [ebp - 0x10], 0
jne 0x693c64
lea edx, [ebp - 0x70]
xor eax, eax
call fcn.00404ab8
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x10]
call fcn.0042054c
jmp 0x693c7a
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.004206a4
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 4]
call fcn.00407300
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00404d0c
mov dword [ebp - 0x58], 0x44
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x693d74
push dword [ebp - 8]
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.00407da4
mov eax, dword [ebp - 0x78]
call fcn.00407ac0
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x693d1a
cmp byte [ebp + 8], 0
je 0x693d06
jmp 0x693ce7
mov eax, dword [0x6d0eb0]
mov eax, dword [eax]
call fcn.00554e18
push 0x32
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x693cdb
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x693d22
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x693d5e
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.00406f38
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406f38
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f38
ret
Function at 0x694778
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x10
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407c44
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407ac0
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x6947b8
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407c44
jmp 0x6947c0
mov eax, dword [ebp - 4]
call fcn.00406ed8
mov esp, ebp
pop ebp
ret

Function at 0x6947c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20e]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
mov ecx, eax
lea edx, [ebp - 0x20e]
mov eax, dword [ebp - 4]
call fcn.00407060
mov esp, ebp
pop ebp
ret

Function at 0x699498
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and eax, 1
test al, al
je 0x6994c7
mov eax, dword [ebp - 4]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 4], eax
jmp 0x6994ca
shr dword [ebp - 4], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jne 0x6994ae
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax*4 + 0x759098], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x6994a3
mov byte [0x759498], 1
mov esp, ebp
pop ebp
ret

Function at 0x6994f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp byte [0x759498], 0
jne 0x69951b
call fcn.00699498
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x69955a
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x14]
and eax, 0xff
mov eax, dword [eax*4 + 0x759098]
mov edx, dword [ebp - 0x14]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x69952e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x401689
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x1c]
push ebx
push esi
push 0x1c
mov ebx, ecx
mov esi, edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x401707
test byte [ebp - 8], 0x44
je 0x401701
push edi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x3c]
lea ecx, [edi - 1]
lea edx, [edi - 1]
not ecx
and ecx, ebx
mov eax, edx
and ebx, edx
and eax, esi
dec ebx
add ebx, edi
add ebx, eax
cmp edi, 0x1000
jne 0x402469
shr ebx, 0xc
cmp edi, 0x1000
jne 0x402476
shr esi, 0xc
lea eax, [ebx + esi]
test eax, eax
je 0x401700
xor edx, edx
lock or dword [ecx], edx
add ecx, edi
dec eax
jne 0x4016f6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x19
int 0x29
jmp 0x4016a8
mov eax, ebx
xor edx, edx
div edi
mov ebx, eax
jmp 0x4016e0
mov eax, esi
xor edx, edx
div edi
mov esi, eax
jmp 0x4016ef

Function at 0x401d9b
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401e00
call fcn.00401a46
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401df0
cmp eax, 0xffffffff
je 0x401df0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401de9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401de9
cmp edx, 0x10000000
jae 0x401de9
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00401e1c
ret 4

Function at 0x401e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
nop
push edx
push ebx
push esp
push ebp
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, 7
mov dword [ebp - 0xc], 0xa
mov esi, 0xe
mov dword [ebp - 8], 9
mov eax, esi
add eax, dword [ebp - 8]
sub eax, 0x17
mov dword [ebp - 0x24], eax
and dword [ebp - 0x28], 0
jmp 0x401ee5
add dword [ebp - 0x28], 0x4e93
mov dword [ebp - 0x20], 0xa9d11df5
mov dword [ebp - 0x24], 0x4f2e
jmp 0x401eee
mov dword [ebp - 0x28], 0x4c342d
jmp 0x401e7b
add dword [ebp - 0x24], 0x1ead2
jmp fcn.00401e92

Function at 0x401e92
Capabilities:
Encrypt data using rc4 prga

Disassembly:
dec dword [ebp - 0x20]
mov eax, dword [ebp - 8]
sub eax, 9
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x1c], 0x4ec000
mov dword [ebp - 0x2c], 0x4c86c0
mov eax, edi
add eax, esi
sub eax, 0x12
mov dword [ebp - 0x10], eax
jmp 0x401ecc
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x28]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x20]
xor edx, ecx
mov byte [eax], dl
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x10], eax
jb 0x401eb8
jmp 0x401f3a
mov eax, dword [ebp - 8]
add eax, esi
sub eax, 0x14
cmp eax, dword [ebp - 0x44]
jbe 0x401ef7
jmp 0x401e9e
mov eax, esi
sub eax, 0xe
mov dword [ebp - 4], eax
jmp 0x401f13
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x19d34
jb 0x401f01
mov dword [ebp - 0x48], 0x4e24c0
invalid
Function at 0x403058
Capabilities:
Check os version

Disassembly:
cmp byte [section..data], 0
jne 0x40307d
push 0x406048
mov dword [0x406048], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov byte [section..data], 1
cmp dword [0x406058], 2
jne 0x40309b
cmp dword [0x40604c], 6
jne 0x40309b
cmp dword [0x406050], 1
jne 0x40309b
mov al, 1
ret
xor al, al
ret

Function at 0x4032ee
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40332c
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403324
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40332e
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403314
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403419
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40342f
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40344a
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x404cdc
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40003c]
cmp dword [eax + 0x400074], 0xd
push esi
lea esi, [eax + 0x400000]
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
ja 0x404d06
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0xe0]
test edx, edx
je 0x404cff
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x18]
push ebx
movzx ebx, word [esi + 6]
add ecx, eax
push edi
mov edi, dword [edx + 0x40000c]
xor edx, edx
test ebx, ebx
je 0x404d44
nop
mov esi, dword [ecx + 0xc]
cmp edi, esi
jb 0x404d3c
mov eax, dword [ecx + 8]
add eax, esi
cmp edi, eax
jb 0x404d4d
inc edx
add ecx, 0x28
cmp edx, ebx
jb 0x404d2c
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 8]
pop edi
pop ebx
mov dword [edx], eax
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x24]
mov dword [edx], eax
mov eax, esi
add eax, 0x400000
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000d610
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100799cb
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.1006dd5d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000d692
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1006badd
mov eax, dword [eax]
push 0x101591d0
push eax
call fcn.1005e004
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1006dfe8
test bl, bl
je 0x1000d692
push 0x101591d0
lea ecx, [esp + 0xc]
call fcn.1006e378
push 0x1015cd4c
lea ecx, [esp + 0xc]
call fcn.1006e378
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 0x1000d6ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1006dfe8
jmp 0x1000d799
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 0x1000d752
lea edx, [esp + 0x7c]
push 0x1015cd48
push edx
call fcn.1005e004
add esp, 8
test eax, eax
je 0x1000d752
lea eax, [esp + 0x7c]
push 0x1015cd44
push eax
call fcn.1005e004
add esp, 8
test eax, eax
je 0x1000d752
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 0x1000d6e2
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.1006dfe8
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 0x1000dfb0
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 0x1000e012
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 0x1000e020
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10079a4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x101635c4]
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 0x1000e158
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1000e086
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1006dfe8
xor eax, eax
jmp 0x1000e1cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1006e125
push esi
lea ecx, [esp + 0xc]
call fcn.1006e3b4
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 0x1000e1ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.1000dfb0
test eax, eax
jne 0x1000e1ad
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.1000dfb0
test eax, eax
jne 0x1000e1ad
lea eax, [esp + 0x14]
push 0x1015cd60
push eax
call fcn.1005f040
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000e18c
lea ecx, [esp + 0x14]
push 0x1015cd5c
push ecx
call fcn.1005efc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000e18c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1000e18f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1006e0d5
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1000e09e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1006dfe8
xor eax, eax
jmp 0x1000e1cf
mov byte [esi], 0
push 0x1015cd58
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.1006dfe8
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 0x1001fb10
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 0x1001fb7e
cmp si, 0x69
ja 0x1001fb7e
add esi, 0xffd0
cmp si, 0x11
je 0x1001fb4e
push 0x11
call edi
test ax, ax
jge 0x1001fb4e
or esi, 0x2000
cmp si, 0x10
je 0x1001fb63
push 0x10
call edi
test ax, ax
jge 0x1001fb63
or esi, 0x4000
cmp si, 0x12
je 0x1001fb78
push 0x12
call edi
test ax, ax
jge 0x1001fb78
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1001fb8b
mov esi, 0xbd
jmp 0x1001fb3f
cmp si, 0x6e
jne 0x1001fb98
mov esi, 0xbe
jmp 0x1001fb3f
cmp si, 0x6f
jne 0x1001fb39
mov esi, 0xbf
jmp 0x1001fb3f

Function at 0x10021230
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10173cf0]
xor edx, edx
cmp eax, edx
jne 0x10021256
xor eax, eax
mov byte [eax + 0x10173bf0], al
inc eax
cmp eax, 0x100
jl 0x1002123e
mov dword [0x10173cf0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10173bf0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x100212e7
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 0x100212ba
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 0x10021288
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10021360
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 0x100213b3
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 0x1002139a
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