joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c5d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x67e3b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ecx + 8]
push esi
mov esi, edx
mov dword [ebp - 0x18], eax
cmp bl, 3
je 0x42c790
mov edx, dword [ecx]
push edi
mov dword [ebp - 0x1c], 0
test bl, 2
je 0x42c631
movzx eax, byte [ecx + 9]
movzx edi, byte [esi]
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi + 1]
mov dword [ebp - 0x14], ebx
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi + 2]
sub eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov edi, 3
jmp 0x42c643
movzx edi, byte [esi + 3]
movzx ebx, byte [ecx + 9]
sub ebx, edi
mov dword [ebp - 0x14], ebx
mov edi, 1
test byte [ecx + 8], 4
je 0x42c658
movzx esi, byte [esi + 4]
movzx ebx, byte [ecx + 9]
sub ebx, esi
mov dword [ebp + edi*4 - 0x14], ebx
inc edi
xor esi, esi
test edi, edi
jle case.0x42c6a1.3
cmp dword [ebp + esi*4 - 0x14], 0
jg 0x42c673
mov dword [ebp + esi*4 - 0x14], 0
jmp 0x42c67a
mov dword [ebp - 0x1c], 1
inc esi
cmp esi, edi
jl 0x42c662
cmp word [ebp - 0x1c], 0
je case.0x42c6a1.3
movzx esi, byte [ecx + 9]
add esi, 0xfffffffe
cmp esi, 0xe
ja case.0x42c6a1.3
movzx esi, byte [esi + 0x42c7b4]
jmp dword [esi*4 + 0x42c7a0]
mov ecx, dword [ecx + 4]
test ecx, ecx
je case.0x42c6a1.3
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
dec ecx
jne 0x42c6b3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530614
mov esp, ebp
pop ebp
ret
mov edi, dword [ecx + 4]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edx, 0xf0
sar edx, cl
mov ebx, 0xf
sar ebx, cl
and dl, 0xf0
or dl, bl
test edi, edi
je case.0x42c6a1.3
mov bl, byte [esi]
mov cl, al
shr bl, cl
inc esi
and bl, dl
dec edi
mov byte [esi - 1], bl
jne 0x42c6f6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530614
mov esp, ebp
pop ebp
ret
imul edx, edi
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x18], edx
test edx, edx
je case.0x42c6a1.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
cmp ebx, dword [ebp - 0x18]
jb 0x42c724
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530614
mov esp, ebp
pop ebp
ret
imul edx, edi
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x18], edx
test edx, edx
je case.0x42c6a1.3
xor edx, edx
mov eax, ebx
div edi
movzx eax, byte [esi]
mov ecx, pe_nt_image_headers32
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc ebx
add esi, 2
movzx ecx, word [ebp + edx*4 - 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, dword [ebp - 0x18]
jb 0x42c757
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00530614
mov esp, ebp
pop ebp
ret
Function at 0x43a3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
xor edx, edx
cmp edi, edx
je 0x43a458
mov ecx, dword [edi]
push ebx
push esi
mov esi, dword [edi + 4]
xor eax, eax
mov word [ecx + 0x16], dx
mov word [ecx + 0x18], dx
cmp esi, edx
jle 0x43a411
movzx edi, byte [ecx + edx]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edi*4 + 0x6323e0]
inc edx
cmp edx, esi
jl 0x43a3f2
mov edi, dword [ebp + 8]
xor edx, edx
mov esi, dword [edi + 0xc]
cmp esi, edx
jle 0x43a43d
mov edi, dword [edi + 8]
mov dword [ebp + 8], edi
mov edi, edi
mov edi, dword [ebp + 8]
movzx edi, byte [edi + edx]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edi*4 + 0x6323e0]
inc edx
cmp edx, esi
jl 0x43a420
mov edx, eax
shr edx, 8
mov byte [ecx + 0x16], al
mov byte [ecx + 0x17], dl
mov edx, eax
shr edx, 0x10
shr eax, 0x18
pop esi
mov byte [ecx + 0x18], dl
mov byte [ecx + 0x19], al
pop ebx
pop edi
pop ebp
ret
Function at 0x457db0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x10
cmp dword [esi + 0x14], ebx
jb 0x457dc9
mov eax, dword [esi]
jmp 0x457dcb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x457de6
shr eax, 4
and al, 1
je 0x457de6
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
cmp dword [esi + 0x10], edi
jbe 0x457e66
nop
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
jb 0x457e0b
mov eax, dword [esi]
jmp 0x457e0d
mov eax, esi
mov al, byte [eax + edi]
cmp al, 0x5c
je 0x457e18
cmp al, 0x2f
jne 0x457e60
cmp ecx, ebx
jb 0x457e20
mov eax, dword [esi]
jmp 0x457e22
mov eax, esi
push edi
push eax
call fcn.0052ecb7
add esp, 8
test eax, eax
jne 0x457e60
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00405400
cmp dword [eax + 0x14], ebx
jb 0x457e44
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp - 0x18], ebx
jb 0x457e60
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0052d217
add esp, 4
inc edi
cmp edi, dword [esi + 0x10]
jb 0x457e00
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
pop edi
cmp edx, ebx
jb 0x457e75
mov eax, dword [esi]
jmp 0x457e77
mov eax, esi
mov al, byte [eax + ecx - 1]
cmp al, 0x5c
je 0x457e98
cmp al, 0x2f
je 0x457e98
cmp edx, ebx
jb 0x457e8b
mov eax, dword [esi]
jmp 0x457e8d
mov eax, esi
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [esi + 0x14], ebx
jb 0x457e9f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x457eb2
shr eax, 4
and al, 1
jne 0x457eba
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp + 0xb]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x103
lea eax, [ebp - 0x10b]
push 0
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.0052e6e0
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x457f4a
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 8]
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x457f3f
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x10c]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x457f68
sub eax, edx
push eax
lea eax, [ebp - 0x10c]
push eax
mov ecx, esi
call fcn.00405440
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46a160
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c354f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
cmp dword [0x68a560], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x46a278
push 0
push 0x75
push 0x3ff
push 0x3fe
push 0x73
mov dword [ebp - 4], 0
call fcn.00426840
add esp, 0x14
test al, al
je 0x46a278
mov ax, word [0x60e294]
mov cl, byte [0x60e296]
push 0x101
lea edx, [ebp - 0x14d]
push 0
push edx
mov word [ebp - 0x150], ax
mov byte [ebp - 0x14e], cl
call fcn.0052e6e0
add esp, 0xc
push 0x102
lea eax, [ebp - 0x14e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x38
lea ecx, [ebp - 0x48]
push 0
push ecx
mov dword [ebp - 0x4c], 0x3c
call fcn.0052e6e0
add esp, 0xc
cmp dword [0x68a468], 0x10
mov dword [ebp - 0x48], 0x8000
jb 0x46a22d
mov edx, dword [0x68a454]
mov dword [ebp - 0x3c], edx
jmp 0x46a234
mov dword [ebp - 0x3c], 0x68a454
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x150]
push ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a7e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
push ebx
push esi
push edi
lea eax, [ebp - 0x294]
push eax
xor ebx, ebx
push 0x104
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ecx, [ebp - 0x294]
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46a810
sub eax, esi
test eax, eax
jle 0x46a841
lea ecx, [ecx]
mov dword [ebp + ebx*4 - 0x90], ecx
lea ecx, [ecx + eax + 1]
mov eax, ecx
inc ebx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46a831
sub eax, esi
test eax, eax
jg 0x46a820
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
jle 0x46a93e
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + ecx*4 - 0x90]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x46a92f
push pe_nt_image_headers32
lea edx, [ebp - 0x394]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0
push pe_nt_image_headers32
lea edx, [ebp - 0x190]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [ebp - 0x190]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46a8b1
sub eax, edx
push eax
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x24]
call fcn.00405440
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
cmp ecx, eax
jae 0x46a8f1
cmp dword [edi + 0x14], 0x10
jb 0x46a8e7
mov eax, dword [edi]
movsx eax, byte [eax + ecx]
neg eax
jmp 0x46a912
mov eax, edi
movsx eax, byte [eax + ecx]
neg eax
jmp 0x46a912
jbe 0x46a904
mov ecx, dword [ebp - 0x24]
cmp esi, 0x10
jae 0x46a8fe
lea ecx, [ebp - 0x24]
movsx eax, byte [ecx + eax]
jmp 0x46a912
push ecx
lea ecx, [ebp - 0x24]
push edi
push ecx
call fcn.0046b900
add esp, 0xc
test eax, eax
sete bl
cmp esi, 0x10
jb 0x46a928
mov edx, dword [ebp - 0x24]
push edx
call fcn.0052d217
add esp, 4
test bl, bl
jne 0x46a949
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x46a853
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov edx, dword [ebp + eax*4 - 0x90]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46a958
mov ecx, dword [ebp + 8]
sub eax, esi
push eax
push edx
call fcn.00405440
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46f6c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c39ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.0046f3b0
mov edx, dword [ebp + 0xc]
push ebx
push edx
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], ebx
call fcn.0046f3b0
push 0x60f150
lea ecx, [ebp - 0x7c]
push 0x673f38
push ecx
mov byte [ebp - 4], 1
call fcn.0041c900
push 0x60f144
push eax
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 2
call fcn.0041bfc0
mov edi, 0x10
add esp, 0x30
cmp dword [ebp - 0x68], edi
jb 0x46f742
mov eax, dword [ebp - 0x7c]
push eax
call fcn.0052d217
add esp, 4
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jae 0x46f74d
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], edi
jae 0x46f758
lea eax, [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push ecx
push eax
call esi
mov ecx, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], edi
jae 0x46f76d
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], edi
jae 0x46f778
lea eax, [ebp - 0x44]
push ecx
push eax
call esi
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x30], edi
jae 0x46f787
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jae 0x46f792
lea eax, [ebp - 0x28]
push ecx
push eax
call esi
cmp dword [ebp - 0x14], edi
jb 0x46f7a7
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0052d217
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
cmp dword [ebp - 0x30], edi
jb 0x46f7c6
mov edx, dword [ebp - 0x44]
push edx
call fcn.0052d217
add esp, 4
cmp dword [ebp - 0x4c], edi
pop edi
mov dword [ebp - 0x30], esi
pop esi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
pop ebx
jb 0x46f7e3
mov eax, dword [ebp - 0x60]
push eax
call fcn.0052d217
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x46f800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
push 0
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0046f3b0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x46f820
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], 0x10
jb 0x46f839
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0052d217
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x4764d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3dab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov dword [ebp - 0x10], ecx
push 0x672dfc
mov ecx, 0x691118
call fcn.004084f0
mov eax, dword [eax + 0x1c]
test al, 1
jne 0x4766a3
push ebx
push esi
push edi
mov esi, 0x9c
push 0
lea edi, [esi - 1]
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.0046f3b0
push 1
lea ecx, [ebp - 0x2c]
push edi
push ecx
mov dword [ebp - 4], 0
call fcn.0046f3b0
add esp, 0x18
mov eax, dword [ebp - 0x2c]
mov ebx, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jae 0x476549
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x47655b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x476566
lea eax, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x47659c
mov eax, esi
sub eax, dword [0x69004c]
js 0x47659c
cmp eax, dword [0x68b2f4]
jge 0x47659c
cmp esi, 0x9c
je 0x47659c
mov eax, dword [eax*8 + 0x68d288]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
cmp dword [ebp - 0x18], ebx
jb 0x4765ad
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x50], ebx
jb 0x4765d7
mov edx, dword [ebp - 0x64]
push edx
call fcn.0052d217
add esp, 4
mov esi, edi
cmp esi, 0x90
jg 0x476510
mov ecx, dword [ebp - 0x10]
push 0x90
call fcn.00473ad0
test al, al
je 0x4766a0
mov eax, 0x90
sub eax, dword [0x69004c]
js 0x47661f
cmp eax, dword [0x68b2f4]
jge 0x47661f
mov eax, dword [eax*8 + 0x68d288]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
cmp byte [ebp + 8], 0
je 0x4766a0
push 0xe
push 0x60f158
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00405440
test byte [0x68987c], 1
mov ebx, 2
mov dword [ebp - 4], ebx
jne 0x47667c
or dword [0x68987c], 1
mov ecx, 0x689868
mov byte [ebp - 4], 3
call fcn.0047f100
push 0x5f2070
call fcn.0052e444
add esp, 4
mov byte [ebp - 4], bl
push 0
push 0
lea ecx, [ebp - 0x48]
push ecx
mov ecx, 0x689868
call fcn.0047fc30
cmp dword [ebp - 0x34], 0x10
jb 0x4766a0
mov edx, dword [ebp - 0x48]
push edx
call fcn.0052d217
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x480bb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 0x18], 1
push edi
mov edi, ecx
mov dword [ebp - 4], edi
jne 0x480c38
cmp dword [0x690a7c], 2
jne 0x480c41
mov eax, dword [edi + 4]
push ebx
push eax
call fcn.00480490
mov edi, eax
add esp, 4
mov ebx, edx
test edi, edi
jle 0x480c00
test ebx, ebx
jle 0x480c00
mov ecx, dword [esi + 0x10]
sub ecx, edi
push 0xffffffffffffffff
push ecx
call fcn.00480430
add eax, edi
add esp, 8
add edx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 4]
sub edx, ebx
push edx
sub eax, edi
push eax
call fcn.004807d0
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x5b
call edi
pop ebx
test ax, ax
js 0x480c2d
push 0x5c
call edi
test ax, ax
jns 0x480c35
mov ecx, dword [ebp - 4]
call fcn.00480840
mov edi, dword [ebp - 4]
cmp dword [0x690a7c], 2
je 0x480c74
mov eax, dword [0x68a3f8]
mov edx, dword [0x68a3f0]
mov ecx, dword [0x68a3fc]
sub ecx, dword [0x68a3f4]
sub eax, edx
test eax, eax
jle 0x480c74
test ecx, ecx
jle 0x480c74
mov dword [esi + 8], edx
mov edx, dword [0x68a3f4]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [edi]
mov edx, dword [eax + 0xc0]
push esi
push 0
push 0x46
mov ecx, edi
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x481540
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x68bb78]
sub esp, 0x18
test eax, eax
je 0x48163b
cmp dword [eax + 8], 0
je 0x48163b
cmp byte [ebp + 0xc], 0
je 0x4815b4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [0x68bb78]
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x4815af
cmp eax, dword [ebp - 0x10]
jg 0x4815af
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jl 0x4815af
cmp eax, dword [ebp - 0xc]
jle 0x48163b
mov eax, dword [0x68bb78]
cmp byte [ebp + 0x18], 0
mov cl, byte [ebp + 0x1c]
push ebx
mov bl, byte [0x673d91]
push esi
mov byte [0x673d91], cl
push 0
je 0x4815da
mov edx, dword [eax + 8]
push 0xd
push pe_nt_image_headers32
push edx
jmp 0x4815e5
mov eax, dword [eax + 8]
push 0x1b
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [0x68bb7c]
mov byte [0x673d91], bl
mov dword [0x68bb78], 0
mov dword [0x68bb7c], 0
test esi, esi
je 0x481639
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x481639
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x481639
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48ea50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c5808
push eax
mov eax, 0x16a8
mov dword fs:[0], esp
call fcn.0052e520
push esi
lea ecx, [ebp - 0x64]
call fcn.005ac8c0
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.005ac7d0
lea ecx, [ebp - 0x64]
call fcn.005acd10
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.005acb70
cmp esi, 0x78
jne 0x48eb59
push 1
push 0x162c
lea ecx, [ebp - 0x16b4]
push ecx
lea ecx, [ebp - 0x64]
call fcn.005acf10
test eax, eax
jne 0x48ead1
push eax
push eax
push 0x610a88
jmp 0x48ebb1
push edi
mov ecx, 0x87
lea esi, [ebp - 0xb50]
mov edi, 0x690594
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x189
lea esi, [ebp - 0x6ac]
mov edi, 0x690a38
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [0x6907ac]
cmp eax, 3
jge 0x48eb26
cmp eax, 1
jge 0x48eb1c
mov eax, dword [0x690be4]
mov ecx, dword [0x690be8]
mov dword [0x690bf8], eax
mov dword [0x690bfc], ecx
mov dword [0x6907ac], 3
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x74], 1
ja 0x48eb43
mov dword [0x6905a8], 1
mov eax, dword [0x68a8dc]
cmp eax, 0xffffffff
jne 0x48eb79
mov dword [0x690a78], 0
jmp 0x48eb88
cmp esi, 0x6e
jne 0x48eba8
lea edx, [ebp - 0x64]
push edx
call fcn.00495c00
add esp, 4
test al, al
jne 0x48eaf7
push 0
push 0
push 0x610ab8
jmp 0x48ebb1
cmp eax, 2
jne 0x48eb88
mov dword [0x690a78], 1
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.005ac8b0
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x610ae8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.005ac8b0
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x49ae60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c61c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CMovie.0
mov eax, dword [0x6911dc]
mov dword [ebp - 4], 2
test eax, eax
je 0x49aeb1
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
mov eax, dword [0x6911dc]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x6132ec
lea ecx, [ebp - 0x48]
push 0x673f38
push ecx
call fcn.0041c900
lea esi, [edi + 0x1a8]
push esi
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 3
call fcn.0041c8c0
mov ebx, 0x10
add esp, 0x18
cmp dword [eax + 0x14], ebx
jb 0x49aee8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x18], ebx
jb 0x49af00
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], ebx
jb 0x49af27
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0052d217
add esp, 4
mov dword [edi + 0x1a0], 0
mov ebx, dword [edi + 0x1a4]
mov dword [edi + 0x1a4], 0
test ebx, ebx
je 0x49af6f
lea edx, [ebx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x49af6f
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49af6f
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
cmp dword [esi + 0x14], 0x10
jb 0x49af80
mov eax, dword [esi]
push eax
call fcn.0052d217
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov esi, dword [edi + 0x1a4]
mov byte [ebp - 4], 0
test esi, esi
je 0x49afc9
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49afc9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49afc9
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.004f90d0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4ad560
Capabilities:
Encode data using xor
Get process heap force flags

Disassembly:
mov ecx, dword [ecx + 0x1a0]
jmp fcn.0059ec90

Function at 0x4b7010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x4b7020
mov edx, dword [eax]
jmp 0x4b7022
mov edx, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x4b702f
mov ecx, dword [eax]
jmp 0x4b7031
mov ecx, eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4b703c
mov eax, dword [eax]
push 5
push edx
push ecx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret 0xc