joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030ae
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4030da
mov ecx, dword [0x4705f8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a010]
mov dword [0x42e1c4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f30
cmp eax, edi
jl 0x4031d3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a010]
call ebx
test eax, eax
je 0x4031cf
cmp dword [ebp - 4], esi
jne 0x4031cf
push dword [ebp + 8]
add dword [0x42e1c4], esi
call fcn.00402f30
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4031d2
cmp dword [ebp + 0x10], edi
jne 0x40319e
cmp dword [ebp + 8], edi
jle 0x4031ca
mov esi, 0x42e1c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40314e
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a010]
call ebx
test eax, eax
je 0x4031cf
cmp edi, dword [ebp - 4]
jne 0x4031cf
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40319a
cmp dword [ebp + 0x14], edi
jne 0x40319a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42e1c4], eax
cmp dword [ebp + 8], 0
jg 0x403141
jmp 0x4031ca
push 0xfffffffffffffffe
jmp 0x4031d1
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031a9
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a010]
call ebx
test eax, eax
je 0x4031cf
mov eax, dword [ebp - 4]
add dword [0x42e1c4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4031d2
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405720
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x456260
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x456260], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40575b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405910
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40592d
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405930
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x40595f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4088ec]
mov dword [ebp - 8], eax
mov eax, dword [0x4088f0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4059af
test edi, edi
jne 0x40596c
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4059a9

Function at 0x4059b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405a27
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405a14
cmp dword [ebp + 0x14], 1
je 0x405a17
cmp dword [ebp + 0x14], 2
je 0x405a17
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x4006], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406063
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4562a8
push esi
call fcn.00405ae6
push esi
call fcn.00405839
mov edi, eax
test edi, edi
jne 0x406084
xor eax, eax
jmp 0x4060e2
push edi
call fcn.00405b15
test byte [0x470608], 0x80
je 0x4060a1
movzx eax, word [edi]
test ax, ax
je 0x406080
cmp ax, 0x5c
je 0x406080
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4060c3
push esi
call fcn.00405bc4
test eax, eax
je 0x4060bd
test byte [eax], 0x10
je 0x4060e7
push esi
call fcn.00406037
push esi
call ebx
cmp eax, edi
jg 0x4060ae
push esi
call fcn.00406008
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4060e1
Function at 0x40637c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089d4
mov ebx, 0x45a2b0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x4063ca
push 1
push ebp
push edi
call fcn.00405930
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406541
cmp eax, esi
jg 0x406541
push esi
mov edi, 0x45f908
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406541
cmp eax, esi
jg 0x406541
push ebp
push ebp
push esi
push 0x45aab0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406541
push ebp
push ebp
push esi
mov esi, 0x45b100
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406541
push esi
push 0x45aab0
push str._s_s_r_n
push 0x45b500
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4705bc]
push dword [eax + 0x128]
push edi
call fcn.004060eb
push 4
push 0xc0000000
push edi
call fcn.00405930
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x406541
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406537
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406537
cmp edi, dword [esp + 0x10]
jne 0x406537
push str._Rename__r_n
push esi
call fcn.00405896
cmp eax, ebp
jne 0x4064ce
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4064ff
push 0x4089c8
add eax, 0xa
push eax
call fcn.00405896
mov ebp, eax
test ebp, ebp
je 0x4064fd
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4064f0
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4064ea
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406501
xor ebp, ebp
mov eax, edi
push ebx
push 0x45b500
add eax, esi
push eax
call fcn.004058ec
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40657a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406063
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 0xc], eax
je 0x4065af
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x470668], eax
jmp 0x406754
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4065ca
test eax, eax
je 0x4066ff
test cl, 2
je 0x4066ff
push edi
push ebx
mov esi, 0x45b900
push esi
call fcn.00405ae6
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4065ed
push str..
push esi
call edi
jmp 0x4065f3
push ebx
call fcn.00406037
cmp word [ebx], 0
jne 0x406603
cmp word [0x45b900], 0x5c
jne 0x40660b
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4066ef
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.004057e5
xor edi, edi
cmp word [eax], di
je 0x406652
cmp word [ebp - 0x28], di
je 0x406652
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x40666d
movzx eax, word [esi + 2]
cmp ax, di
je 0x4066cc
cmp ax, 0x2e
jne 0x40666d
cmp word [esi + 4], di
je 0x4066cc
push esi
push dword [ebp - 4]
call fcn.00405ae6
test byte [ebp - 0x25c], 0x10
je 0x406694
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4066cc
push dword [ebp + 0xc]
push ebx
call fcn.0040657a
jmp 0x4066cc
push ebx
call fcn.00405910
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4066c4
test byte [ebp + 0xc], 4
je 0x4066bc
push ebx
push 0xfffffffffffffff1
call fcn.00404ac7
push edi
push ebx
call fcn.00406547
jmp 0x4066cc
inc dword [0x470668]
jmp 0x4066cc
push ebx
push 0xfffffffffffffff2
call fcn.00404ac7
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406632
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4066f1
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x4066ff
mov eax, dword [ebp - 4]
and word [eax - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406753
cmp dword [ebp - 0xc], esi
je 0x406743
push ebx
call fcn.00405bc4
test eax, eax
je 0x406753
push ebx
call fcn.00406008
push ebx
call fcn.00405910
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40674b
test byte [ebp + 0xc], 4
je 0x406743
push ebx
push 0xfffffffffffffff1
call fcn.00404ac7
push esi
push ebx
call fcn.00406547
jmp 0x406753
inc dword [0x470668]
jmp 0x406753
push ebx
push 0xffffffffffffffe5
call fcn.00404ac7
pop esi
pop ebx
leave
ret 8
Function at 0x406759
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46010c], 0
jne 0x406794
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40676d
mov dword [ecx*4 + 0x460108], eax
inc ecx
cmp ecx, 0x100
jl 0x406768
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4067c1
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460108]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4067a2
not eax
pop ebp
ret 0xc
Function at 0x40282e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0040c7b4
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0040c7b4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x4028aa
mov eax, dword [0x4eb7cc]
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 0xc
call fcn.0040c7de
cmp dword [ebp - 0x18], esp
je 0x4028d6
push 6
call fcn.0040c7ba
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 0xd
call fcn.0040c7de
cmp dword [ebp - 0x18], esp
je 0x402904
push 6
call fcn.0040c7ba
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push 0x480a06
push 0
mov eax, 0xe
call fcn.0040c7de
cmp dword [ebp - 0x18], esp
je 0x402930
push 6
call fcn.0040c7ba
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0xf
call fcn.0040c7de
cmp dword [ebp - 0x18], esp
je 0x4029bf
push 6
call fcn.0040c7ba
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 0x10
call fcn.0040c7de
cmp dword [ebp - 0x18], esp
je 0x4029e4
push 6
call fcn.0040c7ba
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x4029ec
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0040c7c6
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0040c7c6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x417900
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a04b
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.0046e9a9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417982
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046c8c0
mov eax, dword [eax]
push 0x4db224
push eax
call fcn.0045f464
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046ec34
test bl, bl
je 0x417982
push 0x4db224
lea ecx, [esp + 0xc]
call fcn.0046efc4
push 0x4deda4
lea ecx, [esp + 0xc]
call fcn.0046efc4
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 0x4179be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046ec34
jmp 0x417a89
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 0x417a42
lea edx, [esp + 0x7c]
push 0x4deda0
push edx
call fcn.0045f464
add esp, 8
test eax, eax
je 0x417a42
lea eax, [esp + 0x7c]
push 0x4ded9c
push eax
call fcn.0045f464
add esp, 8
test eax, eax
je 0x417a42
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 0x4179d2
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.0046ec34
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 0x418280
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 0x4182e2
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_lstrcpy]
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 0x4182f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a0cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4e7828]
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 0x418428
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x418356
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ec34
xor eax, eax
jmp 0x41849f
push 0x4dede4
lea ecx, [esp + 0xc]
call fcn.0046ed71
push esi
lea ecx, [esp + 0xc]
call fcn.0046f000
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4deddc
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41847d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x4dedd4
push 0x80000000
call fcn.00418280
test eax, eax
jne 0x41847d
mov ebx, dword [sym.imp.kernel32.dll_lstrcat]
lea eax, [esp + 0x14]
push 0x4dedc0
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.00418280
test eax, eax
jne 0x41847d
lea eax, [esp + 0x14]
push 0x4dedb8
push eax
call fcn.00460600
mov esi, eax
add esp, 8
test esi, esi
jne 0x41845c
lea ecx, [esp + 0x14]
push 0x4dedb4
push ecx
call fcn.00460580
mov esi, eax
add esp, 8
test esi, esi
jne 0x41845c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.kernel32.dll_lstrlen]
lea esi, [esp + eax + 0x13]
jmp 0x41845f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046ed21
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41836e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ec34
xor eax, eax
jmp 0x41849f
mov byte [esi], 0
push 0x4dedb0
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.0046ec34
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 0x42a6e0
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 0x42a74e
cmp si, 0x69
ja 0x42a74e
add esi, 0xffd0
cmp si, 0x11
je 0x42a71e
push 0x11
call edi
test ax, ax
jge 0x42a71e
or esi, 0x2000
cmp si, 0x10
je 0x42a733
push 0x10
call edi
test ax, ax
jge 0x42a733
or esi, 0x4000
cmp si, 0x12
je 0x42a748
push 0x12
call edi
test ax, ax
jge 0x42a748
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42a75b
mov esi, 0xbd
jmp 0x42a70f
cmp si, 0x6e
jne 0x42a768
mov esi, 0xbe
jmp 0x42a70f
cmp si, 0x6f
jne 0x42a709
mov esi, 0xbf
jmp 0x42a70f

Function at 0x42be80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f7ef8]
xor edx, edx
cmp eax, edx
jne 0x42bea6
xor eax, eax
mov byte [eax + 0x4f7df8], al
inc eax
cmp eax, 0x100
jl 0x42be8e
mov dword [0x4f7ef8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f7df8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42bf37
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 0x42bf0a
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 0x42bed8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42bfb0
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 0x42c003
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 0x42bfea
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