joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490c84
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x490cb2
mov eax, ebx
call fcn.00491738
cmp dword [ebx + 0x40], 0
je 0x490cab
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x490d23
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x490d15
cmp dword [ebx + 8], 0
je 0x490cd4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x490ce6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x490d15
cmp dword [ebx + 8], 0
je 0x490cc7
cmp eax, 3
je 0x490cf9
dec eax
jne 0x490cc7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x490cc7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x490cc7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x490d41
cmp dword [ebx + 0x14], 0xcc
je 0x490d41
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00490d4c
pop ebx
ret

Function at 0x4a242c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x4a2456
cmp dword [ebx + 0x64], 0
jne 0x4a2456
cmp dword [ebx + 0x6c], 0
jne 0x4a2456
mov edi, esi
jmp 0x4a24dd
cmp edi, 0xffffffff
jne 0x4a245e
dec edi
jmp 0x4a24dd
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x4a24dd
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004a17a0
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4a24ab
mov cx, word [esp]
sub cx, si
jmp 0x4a24ad
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4a2494
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4a24d3
mov cx, word [esp]
sub cx, si
jmp 0x4a24d5
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4a24bc
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4a253a
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004a21c0
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4a2525
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4a253a
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4a2436
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a6a8c
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x4a6aaa
and ecx, ecx
jle 0x4a6aaa
push ebx
xor al, byte [edx]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x4a6a95
pop ebx
ret
Function at 0x4a936c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x28]
shr edx, 1
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x28]
shr ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00402a08
add dword [ebp - 8], 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
shl eax, 2
sub eax, 5
test eax, eax
jl 0x4a944b
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x4e1274]
mov edx, 8
call fcn.004a659c
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0xff
xor ebx, dword [eax*4 + 0x4e1274]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4e1274]
mov edx, 0x10
call fcn.004a659c
xor ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x18
mov eax, dword [eax*4 + 0x4e1274]
mov edx, 0x18
call fcn.004a659c
xor ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax], ebx
add dword [ebp - 8], 4
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x4a93ce
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a97e0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [0x4e7d54]
sbb eax, 0x4e7d54
Function at 0x4aac5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
and eax, 0xff
imul eax, eax, 0x1010101
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
xor eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x40
jne 0x4aac81
mov esp, ebp
pop ebp
ret

Function at 0x4aaca4
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
mov edx, 0x4e2f24
lea eax, [ebp - 0x108]
call fcn.004aac5c
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x18]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x108]
movzx eax, byte [eax + 0x4e2f24]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x4e3124]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx*4], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x4aacd7
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 8
mov edx, 0x4e3024
lea eax, [ebp - 0x108]
call fcn.004aac5c
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x17]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x108]
movzx eax, byte [eax + 0x4e2f24]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x4e3524]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx*4 + 0x400], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x4aad38
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x10
mov edx, 0x4e2f24
lea eax, [ebp - 0x108]
call fcn.004aac5c
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x16]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x108]
movzx eax, byte [eax + 0x4e3024]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x4e3924]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx*4 + 0x800], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x4aad9d
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x18
mov edx, 0x4e3024
lea eax, [ebp - 0x108]
call fcn.004aac5c
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x15]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x108]
movzx eax, byte [eax + 0x4e3024]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x4e3d24]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx*4 + 0xc00], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x4aae02
mov esp, ebp
pop ebp
ret
Function at 0x4aae40
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
mov edx, 0x4e3024
lea eax, [ebp - 0x10c]
call fcn.004aac5c
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x14]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x10c]
movzx eax, byte [eax + 0x4e2f24]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x4e2f24]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x4e3124]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x4aae7d
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 8
mov edx, 0x4e3024
lea eax, [ebp - 0x10c]
call fcn.004aac5c
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x17]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x13]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x10c]
movzx eax, byte [eax + 0x4e3024]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x4e2f24]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x4e3524]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x400], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x4aaef2
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 0x10
mov edx, 0x4e2f24
lea eax, [ebp - 0x10c]
call fcn.004aac5c
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x16]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x12]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x10c]
movzx eax, byte [eax + 0x4e2f24]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x4e3024]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x4e3924]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x800], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x4aaf6b
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 0x18
mov edx, 0x4e2f24
lea eax, [ebp - 0x10c]
call fcn.004aac5c
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x15]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x11]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x10c]
movzx eax, byte [eax + 0x4e3024]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x4e3024]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x4e3d24]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0xc00], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x4aafe4
mov esp, ebp
pop ebp
ret
Function at 0x4b0bf4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, 8
mov edx, 0x3020100
mov dword [eax], edx
add edx, 0x4040404
mov dword [eax + 4], edx
add edx, 0x4040404
mov dword [eax + 8], edx
add edx, 0x4040404
mov dword [eax + 0xc], edx
add edx, 0x4040404
mov dword [eax + 0x10], edx
add edx, 0x4040404
mov dword [eax + 0x14], edx
add edx, 0x4040404
mov dword [eax + 0x18], edx
add edx, 0x4040404
mov dword [eax + 0x1c], edx
add edx, 0x4040404
add eax, 0x20
dec ecx
jne 0x4b0bfe
ret

Function at 0x4b2f2c
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x4b2f4f
and ecx, ecx
jle 0x4b2f4f
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x4b2f55]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x4b2f3f
pop edi
pop ebx
ret
Function at 0x4babf8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x113]
mov edx, 0x4bac80
call fcn.00409e14
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x4bac33
lea eax, [ebp - 0x108]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
call fcn.00409e14
jmp 0x4bac44
lea eax, [ebp - 0x108]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x113]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x105
call fcn.004049ec
mov esp, ebp
pop ebp
ret

Function at 0x4bbbbc
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c2c
xor eax, eax
push ebp
push 0x4bbc3f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004098b4
lea eax, [ebp - 0x14]
mov edx, 0x4bbc58
call fcn.00404a44
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404c3c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExA
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbc46
lea eax, [ebp - 0x14]
call fcn.0040477c
lea eax, [ebp - 8]
call fcn.0040477c
ret
Function at 0x4bf0f8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetCurrentThread
cmp eax, dword [ebp - 4]
je 0x4bf123
call sub.kernel32.dll_GetCurrentProcess
cmp eax, dword [ebp - 4]
jne 0x4bf145
push 0
push 0
push 0x100000
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
xor ecx, ecx
push ebp
push 0x4bf203
push dword fs:[ecx]
mov dword fs:[ecx], esp
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
push 0x78
push esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x4bf1da
jmp 0x4bf1b2
mov eax, dword [ebx + 4]
cmp eax, 0x100
jb 0x4bf186
cmp eax, 0x108
jbe 0x4bf1b2
mov edx, dword [ebx + 4]
cmp edx, 0x200
jb 0x4bf199
cmp edx, 0x20a
jbe 0x4bf1b2
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
cmp dword [ebx + 4], 0x12
jne 0x4bf1b2
call fcn.004041e0
jmp 0x4bf20a
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4bf175
cmp esi, 0xffffffff
je 0x4bf1da
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
cmp esi, eax
jbe 0x4bf1d8
sub esi, eax
jmp 0x4bf1da
xor esi, esi
cmp dword [ebp - 8], 1
je 0x4bf153
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf20a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
je 0x4bf202
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c13c0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebx
push esi
push ecx
mov esi, eax
mov dword [esp], 0xf
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4c13f3
cmp word [esi + 0x32], 0
je 0x4c1402
mov edx, esi
mov eax, dword [esi + 0x34]
call dword [esi + 0x30]
jmp 0x4c1402
cmp word [esi + 0x3a], 0
je 0x4c1402
mov edx, esi
mov eax, dword [esi + 0x3c]
call dword [esi + 0x38]
mov eax, ebx
pop edx
pop esi
pop ebx
ret
Function at 0x4c28fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4c2b0b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi + 0x40], 0
je 0x4c2ae7
mov eax, dword [esi + 0x450]
mov eax, dword [eax + 4]
call fcn.00404a3c
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4c28d8]
call fcn.00405b84
add esp, 4
cmp word [esi + 0x3a], 0
je 0x4c2ae7
mov eax, dword [esi + 0x450]
cmp dword [eax + 4], 0
je 0x4c2ae7
mov eax, dword [esi + 0x450]
cmp byte [eax + 8], 0
jne 0x4c2ae7
mov eax, dword [esi + 0x450]
cmp byte [eax + 9], 1
je 0x4c29b7
mov eax, dword [esi + 0x450]
cmp byte [eax + 9], 0
jne 0x4c2997
push 0x14
call sub.user32.dll_GetKeyState
cmp ax, 1
je 0x4c29b7
mov eax, dword [esi + 0x450]
cmp byte [eax + 9], 2
jne 0x4c2ae7
push 0x14
call sub.user32.dll_GetKeyState
test ax, ax
jne 0x4c2ae7
mov eax, dword [esi + 0x450]
cmp byte [eax + 0xa], 1
je 0x4c2a02
mov eax, dword [esi + 0x450]
cmp byte [eax + 0xa], 0
jne 0x4c29df
push 0x90
call sub.user32.dll_GetKeyState
cmp ax, 1
je 0x4c2a02
mov eax, dword [esi + 0x450]
cmp byte [eax + 0xa], 2
jne 0x4c2ae7
push 0x90
call sub.user32.dll_GetKeyState
test ax, ax
jne 0x4c2ae7
mov eax, dword [esi + 0x450]
cmp byte [eax + 0xb], 1
je 0x4c2a4d
mov eax, dword [esi + 0x450]
cmp byte [eax + 0xb], 0
jne 0x4c2a2a
push 0x91
call sub.user32.dll_GetKeyState
cmp ax, 1
je 0x4c2a4d
mov eax, dword [esi + 0x450]
cmp byte [eax + 0xb], 2
jne 0x4c2ae7
push 0x91
call sub.user32.dll_GetKeyState
test ax, ax
jne 0x4c2ae7
lea edx, [ebp - 4]
mov eax, dword [esi + 0x450]
mov eax, dword [eax + 4]
call fcn.004089c8
mov eax, dword [ebp - 4]
call fcn.00404a3c
dec eax
test al, al
jb 0x4c2ab0
inc eax
mov byte [ebp - 9], al
mov bl, 0
mov edi, ebx
and edi, 0xff
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
push eax
call sub.user32.dll_GetAsyncKeyState
cmp ax, 0x8000
je 0x4c2a9f
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
push eax
call sub.user32.dll_GetAsyncKeyState
cmp ax, 0x8001
jne 0x4c2ab0
xor eax, eax
mov al, bl
mov edx, dword [ebp - 8]
mov byte [edx + eax], 1
inc ebx
dec byte [ebp - 9]
jne 0x4c2a71
mov eax, dword [ebp - 4]
call fcn.00404a3c
dec eax
test al, al
jb 0x4c2ad6
inc eax
mov byte [ebp - 9], al
mov bl, 0
xor eax, eax
mov al, bl
mov edx, dword [ebp - 8]
cmp byte [edx + eax], 0
je 0x4c2ae7
inc ebx
dec byte [ebp - 9]
jne 0x4c2ac3
mov eax, dword [esi + 0x450]
mov ecx, dword [eax + 4]
mov edx, esi
mov eax, dword [esi + 0x3c]
call dword [esi + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2b12
lea eax, [ebp - 8]
mov edx, dword [0x4c28d8]
call fcn.00405b90
lea eax, [ebp - 4]
call fcn.0040477c
ret
Function at 0x4c48dc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4c492d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4c4914
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4c4904
jmp 0x4c492d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4c4915
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d33e8
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4d33f1
mov eax, dword [ebp - 4]
add esp, 0xffffff94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2070], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c2c
xor eax, eax
push ebp
push 0x4d35fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040477c
lea eax, [ebp - 0x200c]
push eax
push 0x2000
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x200c]
push eax
push 0
push 0x4d360c
lea eax, [ebp - 0x200c]
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 8]
lea edx, [ebp - 0x200c]
mov ecx, 0x2000
call fcn.004049ec
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4d3618
call fcn.00404a88
push 0x2000
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 4]
call fcn.00404c94
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x205c]
xor ecx, ecx
mov edx, 0xc
call fcn.0040320c
mov dword [ebp - 0x205c], 0xc
mov dword [ebp - 0x2054], 0xffffffff
push 0
push 0x80
push 2
lea eax, [ebp - 0x205c]
push eax
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.00404c3c
mov edi, eax
push edi
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d35d5
lea eax, [ebp - 0x2050]
xor ecx, ecx
mov edx, 0x44
call fcn.0040320c
mov dword [ebp - 0x2050], 0xc
mov dword [ebp - 0x2024], 0x101
mov dword [ebp - 0x2014], ebx
mov dword [ebp - 0x2010], ebx
mov word [ebp - 0x2020], 0
lea eax, [ebp - 0x206c]
push eax
lea eax, [ebp - 0x2050]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x200c]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4d35b7
push 0xffffffffffffffff
mov eax, dword [ebp - 0x206c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x2068]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x206c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, esi
call fcn.00404dc8
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi]
call fcn.00404a3c
push eax
mov eax, esi
call fcn.00404c94
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov edx, edi
lea eax, [ebp - 0x2070]
call fcn.00404974
mov eax, dword [ebp - 0x2070]
call fcn.004097c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3602
lea eax, [ebp - 0x2070]
call fcn.0040477c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047a0
ret
Function at 0x4d3628
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetPriorityClass
mov ebx, eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov esi, eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push 0xa
call sub.kernel32.dll_Sleep_1
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call sub.kernel32.dll_Sleep_1
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x4d36c8]
fstp qword [ebp - 0x10]
wait
fld qword [ebp - 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret