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

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov di, word [esp + 0x14]
movsx eax, di
cmp eax, 4
jb 0x10b2e
mov eax, dword [esi]
xor eax, dword [esp + 0x10]
movsx ecx, di
shl ecx, 9
add eax, ecx
mov dword [esi], eax
push 1
lea eax, [esp + 0x14]
push 4
add esi, 4
push eax
call section..text
sub di, 4
movsx eax, di
cmp eax, 4
jae 0x10b01
pop edi
pop esi
ret 0xc

Function at 0x10d5a
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 8
pop ecx
mov esi, 0x10d10
lea edi, [ebp - 0x30]
push 0xa
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10d30
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00011590
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
call ebx
mov esi, dword [ebp + 8]
push 0x1f1c0
push 0
push 0
lea eax, [ebp - 8]
push 0x16
push eax
push 0xf4
push esi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov eax, dword [0x1f1c0]
push 6
pop ecx
mov edx, dword [eax + 0x28]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x1f1c0]
and dword [edx + 0xc], 0
mov dword [edx], eax
add edx, 0x14
push edx
call dword [sym.imp.ntoskrnl.exe_KeInitializeSpinLock]
mov eax, 0x10ea6
mov dword [esi + 0x30], 0x10f02
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
lea eax, [ebp - 0x5c]
mov dword [esi + 0x34], 0x10e62
push eax
lea eax, [ebp - 0x10]
push eax
call ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
jge 0x10e30
cmp dword [0x1f1c0], 0
je 0x10e2b
push dword [esi + 4]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401400
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push edi
push 5
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4014da
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.004014f0
add esp, 0xc
test eax, eax
jne 0x4014da
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.004014f0
add esp, 0xc
test eax, eax
jne 0x4014da
push esi
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.004048e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4014bd
lea eax, [esp + 0xc]
push 0x40c038
push eax
call fcn.004048e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4014bd
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x4014c0
mov byte [esi], 0
push 0x40c034
push esi
call edi
push ebx
push esi
call edi
lea edx, [esp + 0xc]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
pop ebx
add esp, 0x208
ret

Function at 0x4014f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
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 0x401539
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x401760
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push 0x208
push eax
push esi
call fcn.00401540
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov al, byte [esp + 8]
test al, al
je 0x4017ef
push 0x5c
push esi
call fcn.004043f0
add esp, 8
lea ecx, [esp + 8]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x40e934]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x4017bf
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 4]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4017ef
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
add esp, 0x20c
ret
Function at 0x401890
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push ebp
push edi
push 0x208
call fcn.0040446b
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x4018b4
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push esi
cmp eax, ebx
je 0x4018d8
cmp byte [eax], bl
je 0x4018d8
push eax
mov eax, dword [esp + 0x6c]
push eax
push str._s__s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4018f9
mov edi, dword [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov edi, dword [esp + 0x70]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [edi], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebp
mov esi, eax
call fcn.0040486e
add esp, 4
cmp esi, ebx
pop esi
jne 0x401953
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov edx, dword [esp + 0xc]
mov eax, 1
mov dword [edi], edx
pop edi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x4024a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x408
push ebp
mov ebp, dword [esp + 0x414]
test ebp, ebp
je 0x402578
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x402578
mov ecx, dword [esp + 0x410]
lea eax, [esp + 4]
push eax
push 0x10008
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40257d
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x400
call edi
mov esi, eax
cmp esi, 0x103
je 0x402550
test esi, esi
jne 0x402561
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004024a0
mov esi, eax
add esp, 8
test esi, esi
je 0x4024f0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x408
ret
mov ecx, dword [esp + 0x418]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x408
ret
mov eax, 0x3f2
pop ebp
add esp, 0x408
ret

Function at 0x402590
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [0x40e918]
push ebx
mov ebx, dword [0x40e914]
push ebp
xor ebp, ebp
test eax, eax
jbe 0x402673
push esi
push edi
mov esi, dword [ebx]
mov eax, dword [esi + 4]
cmp byte [eax], 0
je 0x402631
push 0x5c
push eax
call fcn.004043f0
mov edi, eax
add esp, 8
test edi, edi
je 0x40260a
cmp edi, dword [esi + 4]
je 0x40260a
cmp byte [edi - 1], 0x5c
jne 0x40260a
mov byte [edi - 1], 0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402604
mov ecx, dword [esp + 0x10]
lea eax, [edi + 1]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [edi - 1], 0x5c
jmp 0x402660
mov eax, dword [0x40e934]
test eax, eax
je 0x402624
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
call fcn.004024a0
add esp, 8
jmp 0x402631
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [0x40e938]
test ecx, ecx
je 0x402660
mov edx, dword [0x40e928]
mov eax, dword [0x40e920]
add eax, edx
xor edx, edx
add eax, ebp
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
div ecx
push eax
call fcn.00401d20
add esp, 4
mov eax, dword [0x40e918]
inc ebp
add ebx, 4
cmp ebp, eax
jb 0x4025aa
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402680
Capabilities:
Get common file path
Set current directory

Disassembly:
push esi
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4026bd
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x40c144
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00404960
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
ret
push 0x40c144
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop esi
ret
Function at 0x402b20
Capabilities:
Get common file path
Set current directory

Disassembly:
push ecx
push ebx
push 0x118
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 4], ebx
je 0x402d3f
push ebp
push esi
push edi
push ebx
push 0x40c16c
call fcn.00404a4c
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x402c0f
test byte [ebx], 0x10
je 0x402bdb
lea edi, [ebx + 0x14]
mov esi, 0x40c168
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402b8c
test cl, cl
je 0x402b88
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402b8c
add eax, 2
add esi, 2
test cl, cl
jne 0x402b68
xor eax, eax
jmp 0x402b91
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402bf4
mov esi, 0x40c144
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402bc0
test cl, cl
je 0x402bbc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402bc0
add eax, 2
add esi, 2
test cl, cl
jne 0x402b9c
xor eax, eax
jmp 0x402bc5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402bf4
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x402bf4
call fcn.00402b20
jmp 0x402bf4
lea esi, [ebx + 0x14]
push esi
call fcn.00402ab0
add esp, 4
test eax, eax
je 0x402bf4
push esi
call fcn.0040498a
add esp, 4
push ebx
push ebp
call fcn.00404b16
add esp, 8
test eax, eax
je 0x402b59
push ebp
call fcn.00404bdb
add esp, 4
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x402d2a
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call fcn.004026d0
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x402d2a
mov edi, dword [esp + 0x10]
mov ebx, 1
push edi
push 0x40c16c
call fcn.00404a4c
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x402d10
test byte [edi], 0x10
je 0x402d01
add edi, 0x14
mov esi, 0x40c168
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402ca5
test cl, cl
je 0x402ca1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402ca5
add eax, 2
add esi, 2
test cl, cl
jne 0x402c81
xor eax, eax
jmp 0x402caa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402ce2
mov esi, 0x40c144
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402cd9
test cl, cl
je 0x402cd5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402cd9
add eax, 2
add esi, 2
test cl, cl
jne 0x402cb5
xor eax, eax
jmp 0x402cde
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402d01
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.00404b16
add esp, 8
test eax, eax
jne 0x402d03
mov ecx, dword [esp + 0x10]
test byte [ecx], 0x10
jne 0x402c7a
xor ebx, ebx
push ebp
call fcn.00404bdb
add esp, 4
test ebx, ebx
je 0x402d26
call fcn.00402680
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x10]
push 0x40c144
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402d50
Capabilities:
Set current directory

Disassembly:
push edi
mov edi, dword [0x40e910]
test edi, edi
je 0x402da8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402da8
mov eax, dword [0x40e8fc]
push eax
call fcn.004026d0
add esp, 4
test eax, eax
jne 0x402da8
mov ecx, dword [0x40e8fc]
push ecx
call fcn.004012f0
mov edx, dword [0x40e8fc]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x40e8fc]
push eax
call fcn.004012a0
add esp, 4
call fcn.00402b20
pop edi
ret
Function at 0x404190
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4041bb
test byte [esp + 8], 0x80
je 0x4041aa
and al, 0xfe
jmp 0x4041ac
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4041cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404fb0
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4042d1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4042f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404fb0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x404312
test byte [esp + 8], 2
je 0x404312
mov dword [0x40e958], 0xd
mov dword [0x40e95c], 5
jmp 0x4042ed
xor eax, eax
ret

Function at 0x407c79
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e738
cmp edx, dword [eax]
je 0x407c9b
add eax, 8
inc ecx
cmp eax, 0x40e7c8
jl 0x407c8c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e738]
jne 0x407dc9
mov eax, dword [0x40e9ac]
cmp eax, 1
je 0x407da3
test eax, eax
jne 0x407ccc
cmp dword [0x40c1e4], 1
je 0x407da3
cmp edx, 0xfc
je 0x407dc9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407d03
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406950
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406f70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407d46
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406f70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a584
push edi
call fcn.00408a40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406950
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406960
lea eax, [ebp - 0xa0]
push 0x40a564
push eax
call fcn.00406960
push dword [esi + 0x40e73c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406960
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408b80
add esp, 0x2c
pop edi
jmp 0x407dc9
lea eax, [ebp + 8]
lea esi, [esi + 0x40e73c]
push 0
push eax
push dword [esi]
call fcn.00406f70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x407a50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x462eab
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.00457c78
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407ad2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00455bc7
mov eax, dword [eax]
push 0x50e1c0
push eax
call fcn.00448ac4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00457f03
test bl, bl
je 0x407ad2
push 0x50e1c0
lea ecx, [esp + 0xc]
call fcn.00458293
push 0x511d28
lea ecx, [esp + 0xc]
call fcn.00458293
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 0x407b0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00457f03
jmp 0x407bd9
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 0x407b92
lea edx, [esp + 0x7c]
push 0x511d24
push edx
call fcn.00448ac4
add esp, 8
test eax, eax
je 0x407b92
lea eax, [esp + 0x7c]
push 0x511d20
push eax
call fcn.00448ac4
add esp, 8
test eax, eax
je 0x407b92
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 0x407b22
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.00457f03
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 0x4083d0
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 0x408432
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 0x408440
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x462f2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5181e8]
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 0x408578
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4084a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457f03
xor eax, eax
jmp 0x4085ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00458040
push esi
lea ecx, [esp + 0xc]
call fcn.004582cf
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 0x4085cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004083d0
test eax, eax
jne 0x4085cd
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.004083d0
test eax, eax
jne 0x4085cd
lea eax, [esp + 0x14]
push 0x511d3c
push eax
call fcn.00449b00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4085ac
lea ecx, [esp + 0x14]
push 0x511d38
push ecx
call fcn.00449a80
mov esi, eax
add esp, 8
test esi, esi
jne 0x4085ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4085af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00457ff0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4084be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457f03
xor eax, eax
jmp 0x4085ef
mov byte [esi], 0
push 0x511d34
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.00457f03
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 0x418be0
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 0x418c4e
cmp si, 0x69
ja 0x418c4e
add esi, 0xffd0
cmp si, 0x11
je 0x418c1e
push 0x11
call edi
test ax, ax
jge 0x418c1e
or esi, 0x2000
cmp si, 0x10
je 0x418c33
push 0x10
call edi
test ax, ax
jge 0x418c33
or esi, 0x4000
cmp si, 0x12
je 0x418c48
push 0x12
call edi
test ax, ax
jge 0x418c48
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x418c5b
mov esi, 0xbd
jmp 0x418c0f
cmp si, 0x6e
jne 0x418c68
mov esi, 0xbe
jmp 0x418c0f
cmp si, 0x6f
jne 0x418c09
mov esi, 0xbf
jmp 0x418c0f

Function at 0x41a300
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x528828]
xor edx, edx
cmp eax, edx
jne 0x41a326
xor eax, eax
mov byte [eax + 0x528728], al
inc eax
cmp eax, 0x100
jl 0x41a30e
mov dword [0x528828], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x528728
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a3b7
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 0x41a38a
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 0x41a358
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a430
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 0x41a483
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 0x41a46a
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