joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1740
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bc940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00496720
mov eax, dword [0x586698]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00496652
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004a2240
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4a17e7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a17de
cmp al, 0xff
je 0x4a17de
dec al
mov byte [ecx], al
jmp 0x4a17e7
push ecx
call fcn.004ab6c6
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4a1818
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a180f
cmp al, 0xff
je 0x4a180f
dec al
mov byte [ecx], al
jmp 0x4a1818
push ecx
call fcn.004ab6c6
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4add2a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4add62
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004abdb7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004abd8f
jmp 0x4add6e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4af41c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4af45e
call fcn.004b529a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4af45e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4af455
xor eax, eax
jmp 0x4af466
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004af46c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b57ca
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b57f8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b5816
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b5730
jmp 0x4b5816
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b5816
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b5730
test edi, edi
mov eax, edi
jne 0x4b5800
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x415c0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4228b4]
jne 0x415c15
repz ret
jmp fcn.00418d2a

Function at 0x416008
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.004135ce
and dword [ebp - 4], 0
cmp dword [0x423e3c], 0
mov ebx, eax
jne 0x4160b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41616a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41616a
push eax
call fcn.0041355c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e3c], eax
call esi
push eax
call fcn.0041355c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e40], eax
call esi
push eax
call fcn.0041355c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e44], eax
call esi
push eax
call fcn.0041355c
pop ecx
mov dword [0x423e4c], eax
test eax, eax
je 0x4160b9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041355c
pop ecx
mov dword [0x423e48], eax
mov eax, dword [0x423e48]
cmp eax, ebx
je 0x416111
cmp dword [0x423e4c], ebx
je 0x416111
push eax
call fcn.004135d7
push dword [0x423e4c]
mov esi, eax
call fcn.004135d7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416111
test edi, edi
je 0x416111
call esi
test eax, eax
je 0x416108
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416108
test byte [ebp - 0xc], 1
jne 0x416111
or dword [ebp + 0x10], 0x200000
jmp 0x41614a
mov eax, dword [0x423e40]
cmp eax, ebx
je 0x41614a
push eax
call fcn.004135d7
pop ecx
test eax, eax
je 0x41614a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41614a
mov eax, dword [0x423e44]
cmp eax, ebx
je 0x41614a
push eax
call fcn.004135d7
pop ecx
test eax, eax
je 0x41614a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e3c]
call fcn.004135d7
pop ecx
test eax, eax
je 0x41616a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41616c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41208a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4b1064
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41210a
arpl word [edx + esi], si
mov cl, 0xa5
cdq
invalid
invalid
Function at 0x401050
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_FreeConsole
mov dword [esp], str.user32.dll
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
test eax, eax
mov ebx, eax
je 0x401100
mov dword [esp], eax
mov ecx, str.GetProcessWindowStation
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov edx, str.GetUserObjectInformationW
mov esi, eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x34], eax
sub esp, 8
mov eax, str.CreateWindowStationW
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x38], eax
sub esp, 8
mov eax, str.SetProcessWindowStation
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov edi, eax
mov eax, str.CloseWindowStation
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x3c], eax
sub esp, 8
test esi, esi
setne al
xor edx, edx
cmp dword [ebp - 0x34], 0
setne dl
test eax, edx
jne 0x401110
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x38]
test eax, eax
setne al
xor edx, edx
test edi, edi
setne dl
test eax, edx
je 0x401100
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x401100
call sub.KERNEL32.dll_FreeConsole
call esi
mov dword [ebp - 0x30], eax
test eax, eax
mov ebx, eax
je 0x4011dd
mov dword [esp], ebx
lea eax, [ebp - 0x2c]
mov esi, 1
mov dword [esp + 0x10], eax
mov eax, 0xc
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call dword [ebp - 0x34]
sub esp, 0x14
test eax, eax
je 0x4011dd
test byte [ebp - 0x20], 1
je 0x4011dd
mov dword [esp], 0
xor ecx, ecx
xor eax, eax
mov dword [esp + 0xc], ecx
mov edx, 0x20000
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [ebp - 0x38]
sub esp, 0x10
test eax, eax
mov ebx, eax
je 0x4011a1
mov dword [esp], eax
call edi
sub esp, 4
call sub.KERNEL32.dll_AllocConsole
test ebx, ebx
mov esi, eax
je 0x4011c9
cmp ebx, dword [ebp - 0x30]
je 0x4011c9
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call edi
sub esp, 4
test eax, eax
je 0x4011c9
mov dword [esp], ebx
call dword [ebp - 0x3c]
sub esp, 4
mov eax, esi
nop
lea esi, [esi]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_AllocConsole
mov esi, eax
mov eax, esi
jmp 0x4011d0
Function at 0x4011f0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push esi
mov ecx, 0x44
push ebx
sub esp, 0x30
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.cygwin1.dll_memset
mov dword [esi], 0x44
mov dword [esp], 0xfffffff6
call sub.KERNEL32.dll_GetStdHandle
mov dword [esi + 0x38], eax
sub esp, 4
mov dword [esp], 0xfffffff5
call sub.KERNEL32.dll_GetStdHandle
mov dword [esi + 0x3c], eax
sub esp, 4
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [esi + 0x2c], 0x101
test eax, eax
mov word [esi + 0x30], 0
je 0x401277
mov dword [ebx], 0
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret
mov dword [ebx], 1
xor eax, eax
lea ebx, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
xor eax, eax
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_SetHandleInformation
sub esp, 0xc
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], ebx
mov ebx, 1
mov dword [esp], eax
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
xor eax, eax
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_SetHandleInformation
mov ebx, dword [ebp - 0x20]
sub esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x38], ebx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret

Function at 0x401580
Capabilities:
Terminate process

Disassembly:
push ebp
mov eax, 0x1014
mov ebp, esp
push ebx
call fcn.00402d80
lea eax, [ebp + 0xc]
mov ecx, 0x203a72
mov ebx, 0x6f727245
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1008], ebx
lea ebx, [ebp - 0x1008]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1001]
mov dword [ebp - 0x1004], ecx
mov dword [esp], eax
call sub.cygwin1.dll_vsprintf
mov dword [esp + 4], ebx
mov edx, 0xa
mov word [eax + ebp - 0x1001], dx
mov eax, 0x10
mov dword [esp + 0xc], eax
mov eax, str.Run.exe
mov dword [esp + 8], eax
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
lea edi, [edi]
Function at 0x401f30
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [esp], str.PATH
call sub.cygwin1.dll_getenv
test eax, eax
mov esi, eax
je 0x401fd0
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov dword [esp], edi
mov ebx, eax
call sub.cygwin1.dll_strlen
lea eax, [ebx + eax + 2]
mov dword [esp], eax
call sub.cygwin1.dll_malloc
mov dword [esp], eax
mov ebx, eax
mov dword [esp + 4], esi
call sub.cygwin1.dll_strcpy
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
mov word [ebx + eax], 0x3a
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.cygwin1.dll_strcat
mov dword [esp + 4], ebx
mov eax, 1
mov dword [esp + 8], eax
mov dword [esp], str.PATH
call sub.cygwin1.dll_setenv
mov dword [esp], ebx
call sub.cygwin1.dll_free
mov dword [ebp + 8], edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp fcn.00401d80
mov dword [esp + 4], edi
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], str.PATH
call sub.cygwin1.dll_setenv
mov dword [ebp + 8], edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp fcn.00401d80
Function at 0x4125fa
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004127aa
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4126f8
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x41269b
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4126de
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4126b2
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4126cd
test al, 0x40
je 0x4126c4
mov ecx, dword [edi + 0x20]
jmp 0x4126cb
test al, 0x80
je 0x4126de
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4126de
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x41266a
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x459c60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x509c5b
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.004f96fe
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x459ce2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004f691d
mov eax, dword [eax]
push 0x576284
push eax
call fcn.004e6fe4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004f9989
test bl, bl
je 0x459ce2
push 0x576284
lea ecx, [esp + 0xc]
call fcn.004f9d65
push 0x579e80
lea ecx, [esp + 0xc]
call fcn.004f9d65
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 0x459d1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004f9989
jmp 0x459de9
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 0x459da2
lea edx, [esp + 0x7c]
push 0x579e7c
push edx
call fcn.004e6fe4
add esp, 8
test eax, eax
je 0x459da2
lea eax, [esp + 0x7c]
push 0x579e78
push eax
call fcn.004e6fe4
add esp, 8
test eax, eax
je 0x459da2
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 0x459d32
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.004f9989
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 0x45a5e0
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 0x45a642
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 0x45a650
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x509cdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x58b064]
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 0x45a788
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x45a6b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004f9989
xor eax, eax
jmp 0x45a7ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004f9b12
push esi
lea ecx, [esp + 0xc]
call fcn.004f9da1
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x579eb8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x45a7dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x579eb0
push closesocket
call fcn.0045a5e0
test eax, eax
jne 0x45a7dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x579e9c
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0045a5e0
test eax, eax
jne 0x45a7dd
lea eax, [esp + 0x14]
push 0x579e94
push eax
call fcn.004e82f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x45a7bc
lea ecx, [esp + 0x14]
push 0x579e90
push ecx
call fcn.004e8270
mov esi, eax
add esp, 8
test esi, esi
jne 0x45a7bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x45a7bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004f9ac2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x45a6ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004f9989
xor eax, eax
jmp 0x45a7ff
mov byte [esi], 0
push 0x579e8c
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.004f9989
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 0x470e80
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 0x470eee
cmp si, 0x69
ja 0x470eee
add esi, 0xffd0
cmp si, 0x11
je 0x470ebe
push 0x11
call edi
test ax, ax
jge 0x470ebe
or esi, 0x2000
cmp si, 0x10
je 0x470ed3
push 0x10
call edi
test ax, ax
jge 0x470ed3
or esi, 0x4000
cmp si, 0x12
je 0x470ee8
push 0x12
call edi
test ax, ax
jge 0x470ee8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x470efb
mov esi, 0xbd
jmp 0x470eaf
cmp si, 0x6e
jne 0x470f08
mov esi, 0xbe
jmp 0x470eaf
cmp si, 0x6f
jne 0x470ea9
mov esi, 0xbf
jmp 0x470eaf

Function at 0x472700
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x59c230]
xor edx, edx
cmp eax, edx
jne 0x472726
xor eax, eax
mov byte [eax + 0x59c130], al
inc eax
cmp eax, 0x100
jl 0x47270e
mov dword [0x59c230], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x59c130
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4727b7
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 0x47278a
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 0x472758
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x472830
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 0x472883
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 0x47286a
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