joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55c100
Capabilities:
Copy file
Get common file path
Parse pe header
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x240
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
je 0x55c115
call fcn.0055c2c0
push ebp
lea eax, [esp + 0x14c]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov edi, 0x685c34
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 4]
push esi
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
push esi
push 0
push 0x6887a0
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
push 0
lea eax, [esp + 0x150]
push esi
push eax
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x55c273
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x40
push edx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
cmp word [esp + 0x14], 0x5a4d
jne 0x55c26c
mov eax, dword [esp + 0x50]
mov ebp, dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push 0
push eax
push edi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [esp + 0x54], 0x4550
jne 0x55c26c
cmp dword [esp + 0x88], 0x80000000
jbe 0x55c26c
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
push edi
mov dword [esp + 0x98], 0x10000000
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExA]
push 8
push 0
push esi
call edi
test eax, eax
mov dword [ebx], eax
pop ebp
je 0x55c298
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x240
ret 4
mov eax, dword [esp + 0x250]
push 8
push 0
push eax
mov byte [esi], 0
call edi
xor ecx, ecx
pop edi
test eax, eax
setne cl
mov dword [ebx], eax
pop esi
mov eax, ecx
pop ebx
add esp, 0x240
ret 4
Function at 0x55c350
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x148
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [ebp]
cmp ebx, 0xffffffff
jne 0x55c36f
pop ebp
xor al, al
pop ebx
add esp, 0x148
ret 0xc
mov edx, dword [esp + 0x158]
mov ecx, dword [esp + 0x154]
push esi
mov esi, dword [esp + 0x160]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x613
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
jne 0x55c40a
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
cmp eax, 0x104
mov dword [esp + 0x20], eax
jbe 0x55c3c4
mov eax, 0x104
mov byte [esi + 0x103], 0
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ecx
mov ecx, eax
mov dword [esp + 0x48], edx
mov edx, ecx
lea edi, [esp + 0x54]
mov dword [esp + 0x50], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
add eax, 0x10
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
push eax
mov eax, dword [ebp]
push edx
push eax
jmp 0x55c465
cmp edx, 0x619
jne 0x55c456
mov eax, 0x10
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x3c], eax
push 0
push edx
lea eax, [esp + 0x2c]
push 0x20
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], ecx
push eax
jmp 0x55c464
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x10
push edx
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
pop edi
pop esi
test eax, eax
jne 0x55c495
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x55c488
cmp eax, 0xe8
je 0x55c488
cmp eax, 6
jne 0x55c495
pop ebp
xor al, al
pop ebx
add esp, 0x148
ret 0xc
pop ebp
mov al, 1
pop ebx
add esp, 0x148
ret 0xc
Function at 0x55c5b0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0xffffffff
je 0x55c5c8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
push 0xfffffffffffffff5
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esi + 0x130], eax
lea eax, [esp + 0x10]
lea ebx, [esi + 0x140]
push 0
lea edi, [esi + 0x13c]
push eax
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x55c617
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.kernel32.dll_SetStdHandle]
test eax, eax
jne 0x55c630
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov ebp, dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 2
push 0
lea edx, [esi + 4]
push 0
push edx
call ebp
push eax
mov eax, dword [edi]
push eax
call ebp
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
jne 0x55c65d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov ecx, dword [edi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea edx, [esp + 0x10]
lea edi, [esi + 0x138]
push 0
lea ebx, [esi + 0x134]
push edx
push edi
push ebx
mov dword [esi + 0x12c], eax
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x55c69d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [ebx]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_SetStdHandle]
test eax, eax
jne 0x55c6b6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
push 2
push 0
push 0
push esi
call ebp
mov ecx, dword [edi]
push eax
push ecx
call ebp
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
jne 0x55c6da
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [edi]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret

Function at 0x55c6f0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0xffffffff
jne 0x55c700
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0x12c]
mov edi, dword [sym.imp.kernel32.dll_SetStdHandle]
push eax
push 0xfffffffffffffff6
call edi
test eax, eax
jne 0x55c719
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x130]
push ecx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x55c72c
pop edi
pop esi
pop ecx
ret
mov edx, dword [esi + 0x140]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x134]
push eax
call edi
push 0
push 0
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x55c75d
pop edi
pop esi
pop ecx
ret
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x55c830
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esp + 8]
mov dword [esi + 0x144], eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
pop ecx
ret
Function at 0x55c790
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
jne 0x55c79c
xor al, al
pop esi
ret
push 0
push 0x610
push 0x8b1
mov ecx, esi
call fcn.0055c350
mov eax, dword [esi + 0xc]
test eax, eax
je 0x55c7bd
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [esi + 0x144]
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x55c800
push 0x64
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x55c7ed
mov eax, dword [esi + 0x144]
push 0
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
mov ecx, dword [esi + 0x144]
push ecx
call edi
mov dword [esi + 0x144], 0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x55c810
push eax
call edi
mov dword [esi], 0xffffffff
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x55c822
push eax
call edi
mov dword [esi + 4], 0xffffffff
pop edi
mov al, 1
pop esi
ret
Function at 0x55daa0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
je 0x55db37
mov ecx, edi
push ebx
and ecx, 0xff
push esi
mov byte [0x93e9e1], cl
mov byte [0x93e9e0], 1
lea edx, [ecx + ecx*2 + 0x65]
lea ecx, [ecx + ecx*2 + 1]
mov dword [esp + 0x10], edx
mov esi, 4
lea ecx, [ecx + ecx*2]
lea edx, [ecx + 0x65]
inc ecx
test eax, eax
jle 0x55db0c
push ebp
sub edi, 0x93e9e4
mov ebp, eax
mov bl, byte [edi + esi + 0x93e9e0]
lea ecx, [ecx + ecx*2]
mov al, cl
add al, 0x65
xor bl, al
mov byte [esi + 0x93e9e0], bl
inc esi
inc ecx
dec ebp
jne 0x55daf0
pop ebp
mov bl, byte [esp + 0x10]
lea ecx, [esi - 4]
mov eax, ecx
mov byte [esi + 0x93e9e0], 0
sar eax, 8
xor al, bl
xor dl, cl
pop esi
mov byte [0x93e9e2], al
pop ebx
mov byte [0x93e9e3], dl
mov eax, 0x93e9e0
pop edi
ret
mov eax, 0x93e9e0
pop edi
ret

Function at 0x55db40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x55db49
ret
cmp byte [eax], 1
jne 0x55dba4
movsx ecx, byte [eax + 1]
push ebx
mov bl, byte [eax + 2]
lea ecx, [ecx + ecx*2]
push esi
mov dl, cl
push edi
add dl, 0x65
lea ecx, [ecx + ecx*2 + 3]
xor bl, dl
mov dl, cl
mov byte [eax + 2], bl
mov bl, byte [eax + 3]
add dl, 0x65
xor esi, esi
xor bl, dl
xor edx, edx
mov dh, byte [eax + 2]
inc ecx
mov dl, bl
mov byte [eax + 3], bl
mov edi, edx
test edi, edi
jle 0x55db9d
mov bl, byte [esi + eax + 4]
lea ecx, [ecx + ecx*2]
mov dl, cl
add dl, 0x65
xor bl, dl
inc ecx
mov byte [esi + eax], bl
inc esi
cmp esi, edi
jl 0x55db86
mov byte [edi + eax], 0
pop edi
pop esi
pop ebx
ret
Function at 0x55dbb0
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x93e9d8]
sub esp, 0x40c
test al, 1
push ebx
push edi
jne 0x55dbe4
mov bl, al
push 0x93e958
or bl, 1
mov byte [0x93e9d8], bl
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
push 0x55dd80
call fcn.006171d6
add esp, 4
mov edi, dword [esp + 0x418]
test edi, edi
jne 0x55dbfa
pop edi
xor eax, eax
pop ebx
add esp, 0x40c
ret
push ebp
push esi
push 0x93e958
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [edi], 1
jne 0x55dc5c
movsx eax, byte [edi + 1]
mov dl, byte [edi + 2]
mov bl, byte [edi + 3]
lea eax, [eax + eax*2]
xor esi, esi
mov cl, al
add cl, 0x65
lea eax, [eax + eax*2 + 3]
xor dl, cl
xor ecx, ecx
mov byte [edi + 2], dl
mov ch, byte [edi + 2]
mov dl, al
add dl, 0x65
xor bl, dl
inc eax
mov cl, bl
mov byte [edi + 3], bl
mov ebp, ecx
test ebp, ebp
jle 0x55dc58
mov cl, byte [esi + edi + 4]
lea eax, [eax + eax*2]
mov dl, al
add dl, 0x65
xor cl, dl
inc eax
mov byte [esi + edi], cl
inc esi
cmp esi, ebp
jl 0x55dc41
mov byte [edi + ebp], 0
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edx, 1
mov ecx, 0x93e974
cmp dword [ecx], eax
je 0x55dc80
add ecx, 4
inc edx
cmp ecx, 0x93e998
jl 0x55dc6e
jmp 0x55dc86
test edx, edx
mov ebx, edx
jne 0x55dca1
mov ecx, dword [0x93ede0]
cmp ecx, 9
jae 0x55dca1
inc ecx
mov dword [0x93ede0], ecx
mov ebx, ecx
mov dword [ecx*4 + 0x93e970], eax
mov esi, dword [ebx*4 + 0x93e998]
mov dword [ebx*4 + 0x93e998], edi
test esi, esi
je 0x55dd5b
cmp esi, edi
je 0x55dd5b
cmp byte [edi], 1
je 0x55dd5b
cmp byte [esi], 1
je 0x55dd5b
lea edx, [esp + 0x1c]
push esi
push edx
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
mov dword [esp + 0x18], eax
je 0x55dd5b
lea ecx, [esp + 0x1c]
mov byte [esi], 1
and ecx, 0xff
mov ebp, 4
mov byte [esi + 1], cl
lea edx, [ecx + ecx*2 + 0x65]
lea ecx, [ecx + ecx*2 + 1]
mov dword [esp + 0x14], edx
xor edx, edx
lea ecx, [ecx + ecx*2]
lea ebx, [ecx + 0x65]
inc ecx
test eax, eax
mov dword [esp + 0x10], ebx
jle 0x55dd41
mov bl, byte [esp + edx + 0x1c]
lea ecx, [ecx + ecx*2]
mov al, cl
add al, 0x65
xor bl, al
mov eax, dword [esp + 0x18]
mov byte [esi + ebp], bl
inc ebp
inc ecx
inc edx
cmp edx, eax
jl 0x55dd22
mov ebx, dword [esp + 0x10]
mov dl, byte [esp + 0x14]
lea eax, [ebp - 4]
mov ecx, eax
mov byte [esi + ebp], 0
sar ecx, 8
xor cl, dl
xor bl, al
mov byte [esi + 2], cl
mov byte [esi + 3], bl
push 0x93e958
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x40c
ret

Function at 0x55dfd0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
mov eax, ecx
push edi
xor esi, esi
mov edi, eax
mov edx, esi
mov ebx, 8
test dl, 1
je 0x55dfef
shr edx, 1
xor edx, 0xedb88320
jmp 0x55dff1
shr edx, 1
dec ebx
jne 0x55dfe0
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x55dfd9
pop edi
pop esi
pop ebx
ret
Function at 0x55e050
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebp
test edx, edx
mov ebp, ecx
jne 0x55e06b
mov dword [ebp + 0x400], 1
xor al, al
pop ebp
ret 0xc
mov eax, dword [esp + 0xc]
push edi
lea edi, [edx + eax]
cmp edx, edi
jae 0x55e09f
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
xor ebx, ebx
mov bl, byte [edx]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ebp + ecx*4]
xor ecx, eax
inc edx
cmp edx, edi
mov dword [esi], ecx
jb 0x55e07d
pop esi
pop ebx
pop edi
mov al, 1
pop ebp
ret 0xc

Function at 0x55e0b0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.00616c80
mov eax, dword [esp + 0x100c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x101c]
mov ebp, ecx
test eax, eax
mov dword [esi], 0xffffffff
je 0x55e1c1
cmp byte [eax], 0
je 0x55e1c1
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x55e120
mov dword [ebp + 0x400], 2
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1008
ret 8
push edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x1000
push ecx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x55e19b
mov edx, dword [esp + 0x10]
test edx, edx
je 0x55e197
lea edi, [esp + edx + 0x18]
lea edx, [esp + 0x18]
cmp edx, edi
lea ecx, [esp + 0x18]
jae 0x55e179
mov eax, dword [esi]
xor ebx, ebx
mov bl, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [ebp + edx*4]
xor edx, eax
inc ecx
cmp ecx, edi
mov dword [esi], edx
jb 0x55e155
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x1000
push ecx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x55e13d
jmp 0x55e19b
test eax, eax
jne 0x55e1a5
mov dword [ebp + 0x400], 3
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esi]
pop edi
not edx
mov dword [esi], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1008
ret 8
mov dword [ebp + 0x400], 1
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1008
ret 8
Function at 0x55ee90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x648028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov edx, dword [esp + 0x30]
push esi
mov eax, edx
push edi
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x55eec8
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.00403a30
mov esi, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0055e910
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov edi, eax
call fcn.0055e850
mov esi, eax
cmp dword [esp + 0x20], 0x10
jb 0x55ef18
mov edx, dword [esp + 0xc]
push edx
call fcn.00615a1d
add esp, 4
cmp esi, edi
je 0x55ef7e
mov ecx, dword [esp + 0x3c]
and ecx, 0xfffffff
mov eax, dword [esi + 0x28]
and eax, 0xfffffff
cmp eax, ecx
je 0x55ef91
mov al, byte [esi + 0x31]
test al, al
jne 0x55ef7a
mov eax, dword [esi + 8]
mov dl, byte [eax + 0x31]
test dl, dl
jne 0x55ef5d
mov esi, eax
mov eax, dword [esi]
mov dl, byte [eax + 0x31]
test dl, dl
jne 0x55ef7a
mov edi, edi
mov esi, eax
mov eax, dword [esi]
mov dl, byte [eax + 0x31]
test dl, dl
je 0x55ef50
jmp 0x55ef7a
mov eax, dword [esi + 4]
mov dl, byte [eax + 0x31]
test dl, dl
jne 0x55ef78
cmp esi, dword [eax + 8]
jne 0x55ef78
mov esi, eax
mov eax, dword [eax + 4]
mov dl, byte [eax + 0x31]
test dl, dl
je 0x55ef67
mov esi, eax
cmp esi, edi
jne 0x55ef26
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x560170
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x6480eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
mov esi, dword [esp + 0xc8]
push edi
push 1
push 0x1b6
push 0x21
mov ebx, ecx
push esi
lea ecx, [esp + 0x34]
call fcn.0055f190
mov eax, dword [esp + 0x84]
test eax, eax
mov dword [esp + 0xc4], 0
jne 0x5601ce
push esi
push 0x660ff0
call fcn.00560550
add esp, 8
push 2
push 0
lea ecx, [esp + 0x2c]
call fcn.0055e440
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x2c], 6
jne 0x5601ff
mov ecx, dword [esp + eax + 0x4c]
mov edx, dword [ecx]
push 1
push 1
push 0
lea eax, [esp + 0x18]
push eax
call dword [edx + 0x20]
jmp 0x560226
mov ecx, dword [0x666e0c]
mov edx, dword [0xdb7bf0]
mov eax, dword [0xdb7bf4]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x93e19c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push 0
push 0
lea ecx, [esp + 0x2c]
lea edi, [edx + eax]
call fcn.0055e440
push edi
call fcn.00614c96
add esp, 4
mov esi, eax
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.005554b0
mov ecx, edi
shr ecx, 2
xor eax, eax
test ecx, ecx
jle 0x56026c
nop
xor dword [esi + eax*4], 0x425529ac
inc eax
cmp eax, ecx
jl 0x560260
push edi
push esi
mov ecx, ebx
call fcn.0055fc40
push esi
call fcn.00616a81
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00555e60
test eax, eax
pop edi
pop esi
pop ebx
jne 0x5602b3
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x20]
mov edx, dword [esp + ecx + 0x40]
lea ecx, [esp + ecx + 0x18]
or eax, 2
test edx, edx
jne 0x5602ab
or eax, 4
push 0
push eax
call fcn.00614e3a
lea ecx, [esp + 0x7c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00555f70
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x666f18
call fcn.00614d50
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
add esp, 0xbc
ret 4

Function at 0x5604d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
push str.Error__line__d__:__s
call fcn.00560470
add esp, 0xc
push 0
call fcn.00619976
int3

Function at 0x5604f0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1004
call fcn.00616c80
mov eax, dword [0x68e698]
mov ecx, dword [esp + 0x100c]
mov dword [esp + 0x1000], eax
lea eax, [esp + 0x1010]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.0061814d
mov ecx, dword [esp + 0x1014]
lea eax, [esp + 0xc]
push eax
push ecx
push str.Error__line__d__:__s
call fcn.00560470
add esp, 0x18
push 0
call fcn.00619976
int3

Function at 0x560550
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1004
call fcn.00616c80
mov eax, dword [0x68e698]
mov ecx, dword [esp + 0x1008]
mov dword [esp + 0x1000], eax
lea eax, [esp + 0x100c]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.0061814d
lea eax, [esp + 0xc]
push eax
push str.Error_:__s
call fcn.00560470
add esp, 0x14
push 0
call fcn.00619976
int3
Function at 0x567340
Capabilities:
Terminate process

Disassembly:
push esi
push 0x28
call fcn.00617cbf
mov esi, eax
add esp, 4
test esi, esi
jne 0x56735b
mov eax, str.out_of_dynamic_memory_in_yy_create_buffer__
jmp 0x5672d0
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
add eax, 2
push eax
call fcn.00617cbf
add esp, 4
test eax, eax
mov dword [esi + 4], eax
jne 0x56737f
mov eax, str.out_of_dynamic_memory_in_yy_create_buffer__
jmp 0x5672d0
mov eax, dword [esp + 8]
push eax
push esi
mov dword [esi + 0x14], 1
call fcn.005672f0
add esp, 8
mov eax, esi
pop esi
ret
Function at 0x572fa9
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
push edi
mov dword [esi + 4], eax
call dword [sym.imp.user32.dll_GetCursorPos]
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x572fe7
cmp dword [esi + 0x14], ebx
je 0x572fe7
mov ebp, dword [sym.imp.user32.dll_GetFocus]
call ebp
cmp eax, dword [esi + 0x10]
je 0x572fe7
call ebp
cmp eax, dword [esi + 0x14]
jne 0x5730c5
xor eax, eax
mov ax, word [0x9411dc]
mov ecx, 0x940f08
push eax
xor eax, eax
mov ax, word [0x9411d8]
push eax
push ebx
push ebx
call fcn.00402d80
test eax, eax
je 0x5730c5
mov eax, dword [esi]
sub eax, dword [edi]
mov ebp, pe_nt_image_headers32
mov dword [esi + 0x278], eax
mov eax, dword [esi + 4]
sub eax, dword [esi + 0xc]
push ebp
mov dword [esi + 0x27c], eax
lea edi, [esi + 0x78]
lea eax, [esi + 0x178]
push edi
push eax
call fcn.0061ad70
push ebp
push ebx
push edi
call fcn.0061ad10
add esp, 0x18
push ebx
call dword [sym.imp.user32.dll_GetAsyncKeyState]
shr eax, 8
test al, al
je 0x573056
mov byte [edi + ebx], 0x80
inc ebx
cmp ebx, ebp
jl 0x573044
mov eax, dword [esi + 0x28]
mov dword [esi + 0x2c], eax
xor eax, eax
cmp byte [esi + 0x79], al
setne al
xor ecx, ecx
inc ecx
mov dword [esi + 0x28], eax
xor eax, eax
cmp dword [esi + 0x30], eax
mov dword [esi + 0x1c], eax
je 0x57307c
mov dword [esi + 0x1c], ecx
mov edx, dword [esi + 0x34]
mov dword [esi + 0x38], edx
xor edx, edx
cmp byte [esi + 0x7a], dl
mov dword [esi + 0x30], eax
setne dl
cmp dword [esi + 0x3c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x34], edx
je 0x57309b
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x40]
mov dword [esi + 0x44], edx
xor edx, edx
cmp byte [esi + 0x7c], dl
mov dword [esi + 0x3c], eax
setne dl
cmp dword [esi + 0x18], eax
mov dword [esi + 0x40], edx
mov edx, dword [esi + 0x70]
mov dword [esi + 0x294], edx
mov dword [esi + 0x70], eax
jne 0x5730cf
mov dword [esi + 0x18], ecx
jmp 0x5730cf
mov ecx, esi
call fcn.00572f5d
mov dword [esi + 0x18], ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x573df2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x9416fc]
cmp eax, 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
push edi
jne 0x573e15
call esi
mov dword [0x9416fc], eax
mov dword [0x9416f8], eax
mov edi, eax
call esi
mov dword [0x9416fc], eax
xor ebx, ebx
sub eax, edi
cmp dword [0x941710], ebx
jle 0x573e95
test eax, eax
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jge 0x573e3a
fadd dword [0x64fe80]
mov eax, dword [0x941718]
fld dword [0x652fc4]
mov esi, ebx
shl esi, 2
fdiv dword [esi + eax]
mov eax, dword [0x94170c]
fdivr st(1)
fstp dword [esi + eax]
mov ecx, dword [0x941700]
fld dword [esi + ecx]
mov eax, dword [0x94170c]
add eax, esi
fadd dword [eax]
fstp dword [eax]
mov eax, dword [0x94170c]
lea edi, [esi + eax]
fld dword [edi]
call fcn.0061672c
mov dword [ebp - 4], eax
fild dword [ebp - 4]
mov eax, dword [0x941700]
inc ebx
fsubr dword [edi]
fstp dword [esi + eax]
cmp ebx, dword [0x941710]
jl 0x573e3a
fstp st(0)
pop edi
pop esi
pop ebx
leave
ret