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

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
push dword [esi + 0x1420]
call fcn.00401c83
pop ecx
lea edi, [esi + 0x1418]
push ebp
mov ebx, eax
push dword [esi + 0x141c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll__llseek]
push dword [esi + 0x1420]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, dword [esi + 0x1420]
jne 0x401721
lea eax, [esi + 0x1210]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [esi + 0x1424], eax
jne 0x4016fe
lea eax, [esi + 4]
push str.Unable_to_open_setup_file
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x37
jmp 0x401732
xor eax, eax
xor byte [eax + ebx], 7
inc eax
cmp eax, 0x7d0
jl 0x401700
push dword [esi + 0x1420]
push ebx
push dword [esi + 0x1424]
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x401733
lea eax, [esi + 4]
push str.Failed_to_read_setup_engine
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x36
pop ebp
push ebx
call fcn.00401b9a
mov esi, dword [esi + 0x1424]
pop ecx
cmp esi, 0xffffffff
je 0x40174c
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x401753
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
push edi
call esi
cmp byte [eax + edi - 1], 0x5c
je 0x401785
push 0x407188
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call esi
mov ebx, eax
xor esi, esi
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00401b00
add esp, 0xc
cmp ebx, 2
jle 0x4017fd
cmp byte [edi + 1], 0x3a
jne 0x4017fd
test ebx, ebx
jle 0x401800
lea eax, [ebp - 0x108]
sub edi, eax
cmp dword [ebp - 4], 0
je 0x401800
lea eax, [ebp + esi - 0x108]
mov cl, byte [edi + eax]
cmp cl, 0x5c
mov byte [eax], cl
jne 0x4017f6
cmp esi, 2
je 0x4017f6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4017f6
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
inc esi
cmp esi, ebx
jl 0x4017b8
jmp 0x401800
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40180a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push esi
push edi
mov esi, ecx
push 0x10
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x70], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
lea eax, [ebp - 0x70]
pop edi
push edi
push ebx
push eax
call fcn.00401b00
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00401b00
mov eax, dword [esi + 0x1420]
add esp, 0x18
add eax, dword [esi + 0x141c]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x3c], ebx
push eax
lea eax, [ebp - 0x194]
push str.__IRAOFF:_u
push eax
mov word [ebp - 0x3e], bx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esi + 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
je 0x4018a7
lea eax, [esi + 0x804]
push 0x4071f0
push eax
call edi
lea eax, [ebp - 0x194]
push eax
lea eax, [esi + 0x804]
push eax
call edi
lea eax, [esi + 0x110c]
push eax
lea eax, [ebp - 0x194]
push str.___IRAFN:_s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esi + 0x804]
push 0x4071f0
push eax
call edi
lea eax, [ebp - 0x194]
push eax
lea eax, [esi + 0x804]
push eax
call edi
cmp dword [0x409c08], ebx
je 0x40190f
lea eax, [esi + 0x1210]
push ebx
push eax
lea eax, [esi + 0x804]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
lea eax, [ebp - 0x10]
pop edi
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [esi + 0x1314]
push eax
push ebx
push 0x20
push ebx
push ebx
lea eax, [esi + 0x804]
push ebx
push eax
lea eax, [esi + 0x1210]
mov dword [esi + 0x1108], edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401959
add esi, 4
push str.Could_not_start_the_setup
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x37
pop edi
jmp 0x4019d1
cmp dword [esi + 0x1108], ebx
je 0x4019af
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, edi
jne 0x4019af
push edi
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jle 0x401961
cmp dword [ebp - 0x28], 0xf
je 0x401999
cmp dword [ebp - 0x28], 0x200
jne 0x401978
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401978
add esi, 0x1428
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [esi]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ae2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4093b8
cmp edx, dword [eax]
je 0x403b04
add eax, 8
inc ecx
cmp eax, 0x409448
jl 0x403af5
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4093b8]
jne 0x403c32
mov eax, dword [0x409c58]
cmp eax, 1
je 0x403c0c
test eax, eax
jne 0x403b35
cmp dword [0x407204], 1
je 0x403c0c
cmp edx, 0xfc
je 0x403c32
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403b6c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404760
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404850
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403baf
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404850
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406488
push edi
call fcn.00404dd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404760
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404770
lea eax, [ebp - 0xa0]
push 0x406468
push eax
call fcn.00404770
push dword [esi + 0x4093bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404770
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404d42
add esp, 0x2c
pop edi
jmp 0x403c32
lea eax, [ebp + 8]
lea esi, [esi + 0x4093bc]
push 0
push eax
push dword [esi]
call fcn.00404850
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 0x401098
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4010b8
jmp 0x4010d8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x4031f0], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4010d5
jmp 0x4010d8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4010e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.kernel32.dll_lstrcpyA
xor ecx, ecx
jmp 0x4010ff
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x4010fe
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
mov edi, 0x401c7e
push str.HKEY_CLASSES_ROOT
push ebx
call edi
or eax, eax
jne 0x401125
mov eax, 0x80000000
jmp 0x401186
push str.HKEY_CURRENT_CONFIG
push ebx
call edi
or eax, eax
jne 0x401138
mov eax, 0x80000005
jmp 0x401186
push str.HKEY_CURRENT_USER
push ebx
call edi
or eax, eax
jne 0x40114b
mov eax, 0x80000001
jmp 0x401186
push str.HKEY_LOCAL_MACHINE
push ebx
call edi
or eax, eax
jne 0x40115e
mov eax, 0x80000002
jmp 0x401186
push str.HKEY_USERS
push ebx
call edi
or eax, eax
jne 0x401171
mov eax, 0x80000003
jmp 0x401186
push str.HKEY_DYN_DATA
push ebx
call edi
or eax, eax
jne 0x401184
mov eax, 0x80000006
jmp 0x401186
jmp 0x4011a2
mov byte [ebx], 0
push dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.00401dc0
cmp byte [ebx], 0
je 0x4011a2
push ebx
push dword [ebp + 8]
call sub.kernel32.dll_SetEnvironmentVariableA
popal
leave
ret 0xc

Function at 0x401278
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push esi
push edi
push ebx
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._regpatch.reg
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov esi, dword [ebp + 8]
test dword [esi + 5], 1
je 0x4012f2
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x408], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x404], eax
lea eax, [esi + 9]
push dword [ebp - 0x408]
push dword [ebp - 0x404]
push eax
call fcn.0040136c
mov ecx, dword [ebp - 0x404]
jmp 0x4012f8
mov eax, dword [esi + 1]
lea eax, [esi + 9]
push eax
push ecx
lea eax, [ebp - 0x400]
push eax
call fcn.00401d04
test eax, eax
je 0x40133a
mov edi, 0x4031f8
push str.regedit.exe__s__
push edi
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
push edi
call sub.kernel32.dll_lstrcatA
push 0x403117
push edi
call sub.kernel32.dll_lstrcatA
push 0
push edi
call sub.kernel32.dll_WinExec
test dword [esi + 5], 1
je 0x401359
push 0x4000
push dword [ebp - 0x408]
push dword [ebp - 0x404]
call sub.kernel32.dll_VirtualFree
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x40136c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
mov eax, dword [ebp + 0x10]
add eax, 0x100000
mov dword [ebp - 8], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, dword [ebp - 4]
or eax, eax
je 0x4013eb
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcmpA
or eax, eax
je 0x4013eb
mov bl, 0
jmp 0x4013e3
lodsb al, byte [esi]
cmp word [esi], 0x5b0a
jne 0x4013c5
mov bl, 1
cmp al, 0x5c
jne 0x4013d9
or bl, bl
jne 0x4013d9
cmp byte [esi], 0x5c
je 0x4013d9
cmp byte [esi - 2], 0x5c
je 0x4013d9
stosb byte es:[edi], al
stosb byte es:[edi], al
cmp word [esi], 0xd5d
jne 0x4013e3
mov bl, 0
cmp byte [esi], 0
jne 0x4013bb
mov byte [edi], 0
push 0x4000
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrlenA
pop edi
pop esi
leave
ret 0xc
Function at 0x40175d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ecx
push edx
push esi
push edi
push dword [ebp + 8]
call fcn.00401cd0
cmp eax, 0xffffffff
je 0x4017e6
mov dword [ebp - 4], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4017e0
mov dword [ebp - 0xc], eax
push 4
push 0x1000
push dword [ebp - 4]
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push dword [ebp - 0xc]
call sub.kernel32.dll_ReadFile
add esi, dword [esi + 0x3c]
mov eax, dword [esi + 0x34]
mov ebx, dword [esi + 0x50]
push eax
push ebx
push dword [ebp - 0xc]
call sub.kernel32.dll_CloseHandle
push 0x4000
push dword [ebp - 4]
push esi
call sub.kernel32.dll_VirtualFree
pop ebx
pop eax
jmp 0x4017ea
xor eax, eax
xor ebx, ebx
jmp 0x4017ea
xor eax, eax
xor ebx, ebx
pop edi
pop esi
pop edx
pop ecx
leave
ret 4
Function at 0x401b41
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
pushal
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401bc1
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 2
push 0
push eax
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
je 0x401bb9
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 4
push eax
call sub.kernel32.dll_MapViewOfFile
or eax, eax
je 0x401bb1
mov dword [ebp - 0xc], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
push dword [ebp - 0xc]
push eax
call section..text
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x401d04
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401d2f
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x401dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyA
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x401e42
mov eax, 4
mov dword [ebp - 4], eax
inc dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x10

Function at 0x401e50
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
pushal
cmp dword [ebp + 8], 0
jne 0x401e90
push 0
call sub.kernel32.dll_GetModuleHandleA
lea esi, [ebp - 0x200]
push 0x200
push esi
push eax
call sub.kernel32.dll_GetModuleFileNameA
push esi
call sub.kernel32.dll_lstrlenA
push esi
add esi, eax
jmp 0x401e85
dec esi
cmp byte [esi], 0x5c
jne 0x401e84
mov byte [esi], 0
pop esi
jmp 0x401e93
mov esi, dword [ebp + 8]
push esi
call sub.kernel32.dll_SetCurrentDirectoryA
popal
leave
ret 4
Function at 0x411f00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f2cb
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.00463c36
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x411f82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00461b4d
mov eax, dword [eax]
push 0x4881e0
push eax
call fcn.004549b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00463ec1
test bl, bl
je 0x411f82
push 0x4881e0
lea ecx, [esp + 0xc]
call fcn.00464251
push 0x48bd5c
lea ecx, [esp + 0xc]
call fcn.00464251
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 0x411fbe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00463ec1
jmp 0x412089
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 0x412042
lea edx, [esp + 0x7c]
push 0x48bd58
push edx
call fcn.004549b4
add esp, 8
test eax, eax
je 0x412042
lea eax, [esp + 0x7c]
push 0x48bd54
push eax
call fcn.004549b4
add esp, 8
test eax, eax
je 0x412042
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 0x411fd2
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.00463ec1
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 0x412880
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 0x4128e2
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 0x4128f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f34b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x492210]
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 0x412a28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x412956
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463ec1
xor eax, eax
jmp 0x412a9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00463ffe
push esi
lea ecx, [esp + 0xc]
call fcn.0046428d
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 0x412a7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00412880
test eax, eax
jne 0x412a7d
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 SysReAllocString
mov ecx, edi
call fcn.00412880
test eax, eax
jne 0x412a7d
lea eax, [esp + 0x14]
push 0x48bd70
push eax
call fcn.00455ac0
mov esi, eax
add esp, 8
test esi, esi
jne 0x412a5c
lea ecx, [esp + 0x14]
push 0x48bd6c
push ecx
call fcn.00455a40
mov esi, eax
add esp, 8
test esi, esi
jne 0x412a5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x412a5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00463fae
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41296e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463ec1
xor eax, eax
jmp 0x412a9f
mov byte [esi], 0
push 0x48bd68
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.00463ec1
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 0x424ef0
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 0x424f5e
cmp si, 0x69
ja 0x424f5e
add esi, 0xffd0
cmp si, 0x11
je 0x424f2e
push 0x11
call edi
test ax, ax
jge 0x424f2e
or esi, 0x2000
cmp si, 0x10
je 0x424f43
push 0x10
call edi
test ax, ax
jge 0x424f43
or esi, 0x4000
cmp si, 0x12
je 0x424f58
push 0x12
call edi
test ax, ax
jge 0x424f58
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x424f6b
mov esi, 0xbd
jmp 0x424f1f
cmp si, 0x6e
jne 0x424f78
mov esi, 0xbe
jmp 0x424f1f
cmp si, 0x6f
jne 0x424f19
mov esi, 0xbf
jmp 0x424f1f

Function at 0x426720
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a2918]
xor edx, edx
cmp eax, edx
jne 0x426746
xor eax, eax
mov byte [eax + 0x4a2818], al
inc eax
cmp eax, 0x100
jl 0x42672e
mov dword [0x4a2918], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a2818
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4267d7
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 0x4267aa
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 0x426778
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x426850
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 0x4268a3
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 0x42688a
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