joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a6fd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
mov ebx, 0x692cb4
mov eax, ebp
shr eax, 1
and eax, 0xff
mov dword [esp], eax
mov esi, ebp
and esi, 1
mov eax, ebp
and eax, 0x200
shr eax, 8
or esi, eax
mov edx, dword [esi*4 + 0x687670]
mov eax, dword [esi*4 + 0x6876b0]
xor eax, dword [esp]
call fcn.005a6f70
mov edi, eax
shl edi, 0x18
mov eax, edi
call fcn.005a6fac
mov dword [ebx], eax
mov edx, dword [esi*4 + 0x687680]
mov eax, dword [esi*4 + 0x6876c0]
xor eax, dword [esp]
call fcn.005a6f70
mov edi, eax
shl edi, 0x10
mov eax, edi
call fcn.005a6fac
mov dword [ebx + 0x1000], eax
mov edx, dword [esi*4 + 0x687690]
mov eax, dword [esi*4 + 0x6876d0]
xor eax, dword [esp]
call fcn.005a6f70
mov edi, eax
shl edi, 8
mov eax, edi
call fcn.005a6fac
mov dword [ebx + 0x2000], eax
mov edx, dword [esi*4 + 0x6876a0]
mov eax, dword [esi*4 + 0x6876e0]
xor eax, dword [esp]
call fcn.005a6f70
mov edi, eax
mov eax, edi
call fcn.005a6fac
mov dword [ebx + 0x3000], eax
inc ebp
add ebx, 4
cmp ebp, 0x400
jne 0x5a6fe0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5a7138
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x4c]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + ebx*4], edx
inc ebx
cmp ebx, 3
jne 0x5a716d
xor ebx, ebx
mov eax, ebx
mov esi, 3
xor edx, edx
div esi
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
xor eax, eax
lea edx, [eax + ecx]
and edx, 3
mov esi, dword [ebp - 8]
lea edx, [esi + edx*2]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dx, word [edx]
and dx, 1
movzx edx, dx
mov esi, dword [ebp - 0x18]
mov esi, dword [esi]
add esi, esi
or esi, edx
mov edi, dword [ebp - 0x18]
mov dword [edi], esi
mov esi, dword [ebp - 0x1c]
movzx esi, word [esi]
shr esi, 1
xor dx, 1
shl edx, 0xf
or si, dx
mov edx, dword [ebp - 0x1c]
mov word [edx], si
inc eax
cmp eax, 4
jne 0x5a7193
inc ebx
cmp ebx, 0xf
jne 0x5a717d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x5a714f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5b0ee0
Capabilities:
Encrypt data using twofish

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp + 0x18], pe_nt_image_headers32
mov esi, 0x68c0f4
mov ebx, 0x696ce4
movzx edi, byte [esi]
mov dword [esp], edi
mov eax, edi
call fcn.005afe30
mov dword [esp + 8], eax
mov eax, edi
call fcn.005afe40
mov dword [esp + 0x10], eax
movzx edi, byte [esi + 0x100]
mov dword [esp + 4], edi
mov eax, edi
call fcn.005afe30
mov dword [esp + 0xc], eax
mov eax, edi
call fcn.005afe40
mov ebp, eax
mov dword [esp + 0x14], ebp
mov eax, edi
mov edx, dword [esp + 0xc]
shl edx, 8
or eax, edx
mov edx, ebp
shl edx, 0x10
or eax, edx
mov edx, ebp
shl edx, 0x18
or eax, edx
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov edx, eax
mov ecx, eax
shl ecx, 8
or edx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp]
shl ecx, 0x18
or edx, ecx
mov dword [ebx + 0x400], edx
mov edx, dword [esp + 0xc]
shl ebp, 8
or edx, ebp
shl edi, 0x10
or edx, edi
mov ecx, dword [esp + 0x14]
shl ecx, 0x18
or edx, ecx
mov dword [ebx + 0x800], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp]
shl ecx, 8
or edx, ecx
shl eax, 0x10
or edx, eax
mov eax, dword [esp + 8]
shl eax, 0x18
or edx, eax
mov dword [ebx + 0xc00], edx
add ebx, 4
inc esi
dec dword [esp + 0x18]
jne 0x5b0ef9
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4044e0
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi], 0xffffffff
jne 0x4044ea
xor al, al
ret 4
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov ebx, ecx
lea edi, [esi + 0x804]
lea esp, [esp]
mov eax, dword [esi + 0x808]
cmp eax, dword [edi]
jae 0x404537
lea ebx, [ebx]
test ebp, ebp
jbe 0x40457a
mov ecx, dword [esi + 0x808]
mov dl, byte [ecx + esi + 4]
mov byte [ebx], dl
add dword [esi + 0x808], 1
mov eax, dword [esi + 0x808]
add ebx, 1
sub ebp, 1
cmp eax, dword [edi]
jb 0x404510
test ebp, ebp
jbe 0x40457a
mov edx, dword [esi]
push 0
push edi
push 0x800
lea ecx, [esi + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40456b
mov dword [esi + 0x808], eax
mov dword [edi], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
cmp dword [edi], 0
mov dword [esi + 0x808], 0
ja 0x404500
xor eax, eax
pop edi
test ebp, ebp
pop ebp
sete al
pop ebx
ret 4

Function at 0x404590
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x88
mov eax, dword [0x40b01c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push ebx
push ebp
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
xor ebp, ebp
cmp ebx, 0xffffffff
mov dword [edi], ebp
je 0x404681
push ebp
lea eax, [esp + 0xc]
push eax
push 0x80
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40467a
push esi
mov esi, dword [sym.imp.MSVCR80.dll_strncmp]
push 6
lea edx, [esp + 0x14]
push str.AC1012
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x404617
mov ebp, 1
jmp 0x404679
push 6
lea eax, [esp + 0x14]
push str.AC1014
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x404633
mov ebp, 2
jmp 0x404679
push 6
lea ecx, [esp + 0x14]
push str.AC1015
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x40464f
mov ebp, 3
jmp 0x404679
push 6
lea edx, [esp + 0x14]
push str.AC1018
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x40469a
mov ebp, 4
mov eax, dword [esp + 0x1d]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
ja 0x404677
mov eax, ecx
mov dword [edi], eax
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x8c]
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0040694a
add esp, 0x88
ret
push 6
lea eax, [esp + 0x14]
push str.AC1021
push eax
call esi
add esp, 0xc
test eax, eax
je 0x4046c4
push 6
lea ecx, [esp + 0x14]
push str.AC701a
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x404679
cmp byte [esp + 0x1b], 0xf
mov ebp, 5
jb 0x404669
mov edx, dword [esp + 0x40]
mov dword [edi], edx
jmp 0x404679
Function at 0x404df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404e07
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404e38
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x404e34
cmp esi, eax
jae 0x404e38
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x404e24
cmp esi, eax
jb 0x404e3e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x406070
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4060de
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4060af
cmp eax, 2
jne 0x4060ca
test esi, esi
mov eax, dword [esp]
je 0x4060d8
test eax, eax
je 0x4060d3
test al, 1
jne 0x4060ca
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4060d8
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x40636d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40b01c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004062ac
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4063bc
cmp dword [ebp - 0x1c], 5
jb 0x4063d4
jmp 0x4063d0
cmp dword [ebp - 0x10], 1
jne 0x4063d4
cmp dword [ebp - 0x1c], 4
ja 0x4063d0
jne 0x4063d4
cmp dword [ebp - 0x18], 0
jbe 0x4063d4
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40823c
call fcn.00406142
test eax, eax
jge 0x4063f5
mov byte [0x40b5a4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040694a
add ebp, 0x78
leave
ret

Function at 0x40694a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b01c]
jne 0x406954
repz ret
jmp fcn.00406cfa
Function at 0x50021a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x104]
mov eax, ecx
lea ecx, [eax + 1]
lea eax, [ebp + eax - 0x104]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [eax - 1], 0x5c
je 0x50021ef
mov byte [eax], 0x5c
and byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.05002154
test eax, eax
je 0x5002254
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5002254
test al, 0x10
je 0x5002254
push 0x5001198
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x500224f
push 0x5001188
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x500224f
lea ecx, [ebp - 0x104]
push 0
push ecx
call eax
test eax, eax
jne 0x500224f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
pop eax
jmp 0x5002256
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x5002484
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x500249f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor ebx, ebx
cmp dword [0x5007244], ebx
jne 0x50024ef
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.0500241f
lea eax, [ebp - 0x80]
push 0x80
push eax
push 0x20000003
push ebx
mov byte [ebp - 0x80], bl
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x80]
push 0x10010
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x50174a8]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.05002521
cmp esi, ebx
jne 0x50024fb
push 1
pop esi
cmp dword [0x500701c], ebx
je 0x5002514
push 0x50174c0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x500701c], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5002521
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x50174c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5007248]
xor ebp, ebp
cmp eax, ebp
je 0x5002548
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5007248], ebp
mov esi, dword [section..data]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, section..data
cmp esi, edi
je 0x5002590
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x500258a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5002587
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5002587
cmp eax, 3
je 0x5002587
push 4
push ebp
push dword [esi + 4]
call ebx
mov dword [esi + 4], ebp
mov esi, dword [esi]
cmp esi, edi
jne 0x500255d
mov esi, dword [0x5007008]
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, 0x5007008
cmp esi, edi
je 0x50025d6
mov eax, dword [esi + 4]
test eax, eax
je 0x50025d0
push eax
call ebp
test eax, eax
jne 0x50025cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x50025cc
cmp eax, 3
je 0x50025cc
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x50025a5
mov esi, 0x5007260
push esi
call ebp
test eax, eax
jne 0x50025f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x50025f9
cmp eax, 3
je 0x50025f9
push 4
push 0
push esi
call ebx
push 0x50174c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x5002889
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x50174e0
push 8
mov eax, edx
pop esi
test al, 1
je 0x50028a3
shr eax, 1
xor eax, 0xedb88320
jmp 0x50028a5
shr eax, 1
dec esi
jne 0x5002896
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x50178e0
jb 0x5002891
pop esi
ret

Function at 0x50028b8
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test edx, edx
je 0x50028e4
push edi
push esi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x50174e0]
xor eax, esi
inc ecx
dec edx
jne 0x50028ca
pop esi
pop edi
ret 0xc
Function at 0x5002c03
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push dword [ebp + 8]
and byte [ebp - 0xc], 0
and byte [ebp - 0xb], 0
and byte [ebp - 0xa], 0
push edi
push edi
and byte [ebp - 9], 0
and byte [ebp - 8], 0
push edi
push edi
push edi
push edi
push 0x220
push 0x20
lea eax, [ebp - 0xc]
push 2
push eax
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5002cf8
lea eax, [ebp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x5002cf8
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push 0x10000
push 0x5007380
push 4
push dword [ebp + 8]
call ebx
test eax, eax
je 0x5002cf8
push dword [0x5007380]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.050022b6
pop ecx
cmp eax, edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x5002cf1
mov ecx, esi
mov esi, dword [0x5007380]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 4]
push eax
push 0x10000
and ecx, 3
push 0x5007380
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x5002cf8
push dword [0x5007380]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.050022b6
pop ecx
mov ecx, dword [ebp + 0x10]
test eax, eax
mov dword [ecx], eax
jne 0x5002cfc
push 8
call fcn.05002484
xor eax, eax
jmp 0x5002d17
mov ecx, esi
mov esi, dword [0x5007380]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 1
and ecx, 3
pop eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5003ee5
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, eax
dec eax
test edi, edi
jle 0x5003f25
lea edi, [eax + 1]
movzx eax, byte [ecx]
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or eax, ebx
inc ecx
xor edx, eax
dec edi
jne 0x5003f03
and esi, 3
xor eax, eax
dec esi
je 0x5003f41
dec esi
je 0x5003f3a
dec esi
jne 0x5003f46
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
pop esi
xor eax, edx
pop ebx
ret 0xc
Function at 0x45ac90
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e9a4b
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.004dbdeb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x45ad12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004d9532
mov eax, dword [eax]
push 0x535250
push eax
call fcn.004c7bd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004dc076
test bl, bl
je 0x45ad12
push 0x535250
lea ecx, [esp + 0xc]
call fcn.004dc452
push 0x538f04
lea ecx, [esp + 0xc]
call fcn.004dc452
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 0x45ad4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004dc076
jmp 0x45ae19
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 0x45add2
lea edx, [esp + 0x7c]
push 0x538f00
push edx
call fcn.004c7bd4
add esp, 8
test eax, eax
je 0x45add2
lea eax, [esp + 0x7c]
push 0x538efc
push eax
call fcn.004c7bd4
add esp, 8
test eax, eax
je 0x45add2
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 0x45ad62
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.004dc076
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 0x45b610
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 0x45b672
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 0x45b680
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e9acb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5ef678]
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 0x45b7b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x45b6e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004dc076
xor eax, eax
jmp 0x45b82f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004dc1ff
push esi
lea ecx, [esp + 0xc]
call fcn.004dc48e
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 0x45b80d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0045b610
test eax, eax
jne 0x45b80d
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.0045b610
test eax, eax
jne 0x45b80d
lea eax, [esp + 0x14]
push 0x538f18
push eax
call fcn.004c8e50
mov esi, eax
add esp, 8
test esi, esi
jne 0x45b7ec
lea ecx, [esp + 0x14]
push 0x538f14
push ecx
call fcn.004c8dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x45b7ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x45b7ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004dc1af
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x45b6fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004dc076
xor eax, eax
jmp 0x45b82f
mov byte [esi], 0
push 0x538f10
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.004dc076
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 0x46d920
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 0x46d98e
cmp si, 0x69
ja 0x46d98e
add esi, 0xffd0
cmp si, 0x11
je 0x46d95e
push 0x11
call edi
test ax, ax
jge 0x46d95e
or esi, 0x2000
cmp si, 0x10
je 0x46d973
push 0x10
call edi
test ax, ax
jge 0x46d973
or esi, 0x4000
cmp si, 0x12
je 0x46d988
push 0x12
call edi
test ax, ax
jge 0x46d988
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x46d99b
mov esi, 0xbd
jmp 0x46d94f
cmp si, 0x6e
jne 0x46d9a8
mov esi, 0xbe
jmp 0x46d94f
cmp si, 0x6f
jne 0x46d949
mov esi, 0xbf
jmp 0x46d94f

Function at 0x46f150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x600d50]
xor edx, edx
cmp eax, edx
jne 0x46f176
xor eax, eax
mov byte [eax + 0x600c50], al
inc eax
cmp eax, 0x100
jl 0x46f15e
mov dword [0x600d50], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x600c50
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x46f207
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 0x46f1da
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 0x46f1a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x46f280
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 0x46f2d3
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 0x46f2ba
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