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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a0a8f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, dword [ecx]
test edx, edx
jne 0x5d79c9
xor al, al
jmp 0x5d7ad7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x20]
movlpd qword [ebp - 0x20], xmm0
call fcn.005d7580
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x20]
push 4
call fcn.00634eb5
add esp, 0xc
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 0
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
push 0x80
push 2
push 2
push 0x40000000
push esi
call fcn.004e08e0
mov esi, dword [ebp - 0x24]
test al, al
je 0x5d7a74
mov dword [ebp - 0x18], 0
test esi, esi
je 0x5d7a74
test edi, edi
je 0x5d7a5c
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5d7a74
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5d7a74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x5d7a74
mov dword [esi], 0xffffffff
mov byte [ebp - 4], 0
test esi, esi
je 0x5d7aa6
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5d7a94
test eax, eax
je 0x5d7a94
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.00634ee5
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x5d7ad5
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x5d7ad5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x5d7ad5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret
Function at 0x5dcc5a
Capabilities:
Check if file exists

Disassembly:
push 0x3cc
mov eax, 0x6a15d3
call fcn.00635544
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3d0], edi
call fcn.005dd9f4
push eax
lea ecx, [ebp - 0x94]
call fcn.005e5851
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.005dd9fa
mov esi, eax
mov ecx, eax
call fcn.005e60cf
lea ecx, [ebp - 0x94]
test al, al
je 0x5dccc7
push edi
call fcn.005e5b4c
lea ecx, [ebp - 0x94]
call fcn.00405e20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5dce14
mov bl, 1
jmp 0x5dce14
push esi
call fcn.005e5b2f
call fcn.005ddc63
mov dword [ebp - 0x3d8], 1
test al, al
je 0x5dcce9
call fcn.005dda00
mov esi, eax
jmp 0x5dcd49
call fcn.005dda06
push eax
lea ecx, [ebp - 0x19c]
call fcn.005e5851
push ebx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.00405e20
push eax
call fcn.005e287d
pop ecx
pop ecx
mov edi, eax
lea ecx, [ebp - 0x94]
push edi
call fcn.00405e20
push eax
call fcn.005e7304
mov esi, eax
pop ecx
pop ecx
test edi, edi
je 0x5dcd35
push edi
call fcn.00634f16
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.005e5978
mov edi, dword [ebp - 0x3d0]
test esi, esi
je 0x5dce14
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3d4], ebx
call fcn.005e5876
push 0x6d79b0
push 0x6d24c0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.005e6283
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00405e20
push eax
push esi
call fcn.005e6cea
add esp, 0x14
test eax, eax
jne 0x5dcdfd
mov edi, dword [ebp - 0x1a0]
test edi, edi
je 0x5dcdfd
cmp edi, 0x400000
ja 0x5dcdfd
push edi
call fcn.006354e1
push edi
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push esi
call fcn.005e7743
add esp, 0x14
test eax, eax
je 0x5dce29
cmp eax, 0x600
je 0x5dce29
push dword [ebp - 0x3d0]
call fcn.00634f16
pop ecx
call fcn.005ddc63
test al, al
jne 0x5dcdfd
push esi
call fcn.005e6acd
pop ecx
mov byte [ebp - 0x3d8], bl
lea ecx, [ebp - 0x118]
call fcn.005e5978
mov bl, byte [ebp - 0x3d8]
lea ecx, [ebp - 0x94]
call fcn.005e5978
mov al, bl
call fcn.006354ff
ret 4
call fcn.005ddc63
test al, al
jne 0x5dce39
push esi
call fcn.005e6acd
pop ecx
push dword [ebp - 0x3d0]
call fcn.00634f16
pop ecx
jmp 0x5dce03

Function at 0x5ddd8e
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x5dddb1
or esi, 1
push 2
call edi
test ax, ax
jns 0x5dddbd
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x5dddc9
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x5dddd5
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x5e1097
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x498]
call fcn.00414020
mov edi, dword [ebp + 8]
test eax, eax
jle 0x5e10ed
push ebx
lea ecx, [esi + 0x498]
mov byte [ebp + 0xb], 0
call fcn.005e5a77
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x5e114b
lea ecx, [esi + 0x498]
inc ebx
call fcn.00414020
cmp ebx, eax
jl 0x5e10b6
sub edi, 0x100
je 0x5e11b8
sub edi, 4
je 0x5e114f
dec edi
sub edi, 1
jne 0x5e11af
push dword [ebp + 0xc]
and dword [ebp + 8], edi
call fcn.00657b9f
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp + 8]
push 0x80000012
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x5e2788
call dword [eax + 0x12c]
mov esi, eax
test esi, esi
je 0x5e11af
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x120]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x5e11b1
cmp dword [esi + 0x108], 0
je 0x5e11af
xor eax, eax
mov dword [ebp - 0x20], 6
mov word [ebp - 2], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x120]
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0xa], xmm0
mov dword [ebp - 0x10], eax
call fcn.005ddd8e
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x138]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x5e11af
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x5e1211
mov eax, dword [ecx]
call dword [eax + 0xf8]
test al, al
je 0x5e1211
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x104]
test al, al
je 0x5e1211
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0064d16a
pop ecx
pop ecx
test eax, eax
je 0x5e1211
mov ecx, dword [esi + 0x108]
call fcn.00604584
test al, al
jne 0x5e11af
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x5e1259
mov eax, dword [ecx]
call dword [eax + 0xf8]
test al, al
je 0x5e1259
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x104]
test al, al
je 0x5e1259
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0064d16a
pop ecx
pop ecx
test eax, eax
jne 0x5e11af
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.005e2285
jmp 0x5e114b
Function at 0x5e1ef9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x5e1f25
cmp esi, dword [edi + 0x108]
je 0x5e1f25
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x108]
cmp esi, eax
je 0x5e200b
test eax, eax
je 0x5e1f8c
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x17
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x138]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0x108]
call fcn.005e1b4d
and dword [edi + 0x108], 0
test esi, esi
je 0x5e200b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x5e200b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf8]
test al, al
je 0x5e200b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x104]
test al, al
je 0x5e200b
xorps xmm0, xmm0
mov dword [edi + 0x108], esi
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x138]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0x108]
call fcn.005e1b4d
pop edi
pop esi
leave
ret 4
Function at 0x5e3538
Capabilities:
Terminate process

Disassembly:
push 0x2e0
mov eax, 0x6a1a47
call fcn.00635544
mov edi, ecx
push 0xfffffffffffffff0
call fcn.00414020
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.00414020
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi]
lea ebx, [edi + 0x30]
mov ecx, edi
call dword [eax + 0x30]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.005dda71
mov ecx, edi
lea eax, [edi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call fcn.005dca44
lea ecx, [ebp - 0x2e8]
call fcn.006075a7
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
push ecx
xor esi, esi
mov ecx, edi
mov dword [ebp - 4], esi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.005e60cf
lea ecx, [ebp - 0x94]
test al, al
mov eax, dword [edi]
push ecx
mov ecx, edi
jne 0x5e3628
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00405e20
push eax
call fcn.00659174
pop ecx
lea ecx, [ebp - 0x94]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.005e5978
mov ecx, edi
lea eax, [edi + 0x28]
neg ecx
push 0
sbb ecx, ecx
and ecx, eax
push ebx
push ecx
lea ecx, [ebp - 0x118]
call fcn.00405e20
push eax
push esi
lea ecx, [ebp - 0x2e8]
call fcn.00608673
mov esi, eax
jmp 0x5e3666
call dword [eax + 0x2c]
mov edx, edi
mov byte [ebp - 4], 3
neg edx
lea ecx, [edi + 0x28]
push esi
sbb edx, edx
push ebx
and edx, ecx
mov ecx, eax
push edx
push esi
call fcn.00405e20
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x2e8]
call fcn.00608673
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.005e5978
test esi, esi
jne 0x5e36cf
push 0xffffffffffffffff
push 0x6a6cc4
lea ecx, [ebp - 0x94]
call fcn.005e5876
mov eax, dword [edi]
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.005e5b2f
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 4
call fcn.005e5978
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.00405e20
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.005dcaee
mov edx, edi
lea eax, [edi + 0x20]
neg edx
mov ecx, ebx
sbb edx, edx
and edx, eax
push edx
call fcn.005dc98a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.005e5978
lea ecx, [ebp - 0x2e8]
call fcn.006066f1
xor eax, eax
call fcn.006354ff
ret 0x10
Function at 0x5e553d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
push dword [ebx + 4]
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jmp 0x5e55ec
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x5e55f0
cmp dword [ebp - 0x1c], 0x10
jne 0x5e55bb
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x5e55bb
mov eax, dword [ebp - 0x18]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
lea eax, [ebp - 0x20]
push eax
call fcn.005e256b
pop ecx
test al, al
jne 0x5e55dd
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x5e55f0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x5e5588
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
cmp dword [ebp - 0x1c], 0x12
pop edi
pop esi
pop ebx
jne 0x5e560e
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x5e5613
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5e5645
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x5e6b2b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x5e6b5f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5e6b5f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x5e6c15
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x5e6b7e
cmp dx, 0x5c
jne 0x5e6b80
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x5e6b72
cmp esi, ebx
je 0x5e6bc8
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.0064c510
add esp, 0xc
cmp esi, 0x208
jae 0x5e6c23
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.005e6b2b
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x5e6be5
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.006591f9
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.006591c8
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5e6c15
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00634bf3
leave
ret
call fcn.0063570d
int3

Function at 0x5e724e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x5e72fa
cmp dword [esi + 4], 0xffffffff
jne 0x5e72fa
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0065921b
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x5e72a1
cmp eax, 0x2f
je 0x5e72a1
push 0x6d24c0
push edi
call fcn.006591c8
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x5e72c3
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5e72c3
mov eax, 0x2000000
jmp 0x5e72ff
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005e99c5
add esp, 0x10
test eax, eax
jne 0x5e72e1
mov eax, dword [ebp - 4]
jmp 0x5e72ff
push eax
call fcn.005ea0a2
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x5e72ff
mov eax, 0x1000000
pop esi
leave
ret 0xc
Function at 0x5e7796
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x6a85e0]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a85e0]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x5e9ac2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x5e9af5
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5e9af0
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x5e9b1f
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0064c510
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x5e9c4f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x5e9c5d
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x5e9d1c
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a85e0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a85e0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a85e0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a85e0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a85e0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a85e0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a85e0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a85e0]
sub edi, 1
jne 0x5e9c75
pop edi
test esi, esi
je 0x5e9d38
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a85e0]
inc edx
sub esi, 1
jne 0x5e9d20
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x5ffbb8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x5ffbe6
cmp eax, edi
jge 0x5ffbda
push esi
call fcn.005fb15c
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x5ffc09
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
mov byte [ebp + ecx + 8], al
inc ecx
lea eax, [edx - 8]
shr edi, 8
mov dword [esi + 0xc], edi
mov edx, eax
test eax, eax
jg 0x5ffbef
mov dword [esi + 8], edx
jns 0x5ffc1b
push str.zlib_corrupt
call fcn.005fb081
pop ecx
jmp 0x5ffca0
cmp ecx, 4
jge 0x5ffc3a
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x5ffc2b
xor dl, dl
jmp 0x5ffc30
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x5ffc22
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x5ffc0b
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x5ffc70
push str.read_past_buffer
jmp 0x5ffc10
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x5ffc8a
push edi
push ecx
push esi
call fcn.00602fde
add esp, 0xc
test eax, eax
je 0x5ffca0
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0064c510
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x6062a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x69c], edi
je 0x606312
cmp dword [ebp + 8], 0x100
jne 0x606301
cmp word [ebp + 0xc], 0xd
jne 0x606301
cmp byte [esi + 0x6a2], 0
je 0x6062e8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x606301
cmp byte [esi + 0x6a3], 0
jne 0x606301
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x6062fd
push edi
push edi
push edi
push str.return
push esi
call fcn.005e1b4d
xor eax, eax
jmp 0x606315
mov eax, dword [esi + 0x69c]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x60e7aa
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x10c]
mov edi, dword [ebp + 8]
test al, al
jne 0x60e7eb
mov eax, dword [edi]
sub eax, 9
cmp eax, 0xc
ja 0x60e7eb
mov ecx, dword [esi + 0x6d0]
push edi
test ecx, ecx
je 0x60e7df
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x60e974
mov ecx, esi
call fcn.00608ed1
jmp 0x60e974
cmp dword [edi], 0x13
jne 0x60e815
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x104]
test al, al
je 0x60e974
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, esi
call fcn.0061055b
jmp 0x60e974
cmp dword [edi], 3
push ebx
push 0xd
pop ebx
jne 0x60e83e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x104]
test al, al
je 0x60e83e
cmp word [edi + 0x14], bx
jne 0x60e83e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
jmp 0x60e912
cmp dword [edi], ebx
je 0x60e85f
mov ecx, dword [esi + 0x6d0]
test ecx, ecx
je 0x60e8ae
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax + 0x458], 0
je 0x60e8ae
cmp dword [edi], 0xf
jne 0x60e8ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x104]
test al, al
je 0x60e973
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
lea esi, [esi + 0x6c0]
mov edi, dword [esi]
and ax, cx
mov ecx, esi
je 0x60e8a4
call dword [edi + 0x10]
neg al
mov ecx, esi
sbb al, al
inc al
movzx eax, al
push eax
call dword [edi + 0x18]
jmp 0x60e973
push 1
call dword [edi + 0x14]
jmp 0x60e973
cmp dword [edi], 0xe
jne 0x60e8d1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x104]
test al, al
je 0x60e973
xor eax, eax
push eax
push eax
push eax
push str.itemclick
jmp 0x60e94f
cmp dword [edi], 9
je 0x60e973
cmp dword [edi], 0xb
jne 0x60e8fa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x104]
test al, al
je 0x60e973
or dword [esi + 0x6cc], 8
jmp 0x60e912
cmp dword [edi], 0xa
jne 0x60e91b
mov eax, dword [esi + 0x6cc]
test al, 8
je 0x60e973
and eax, 0xfffffff7
mov dword [esi + 0x6cc], eax
mov ecx, esi
call fcn.0061055b
jmp 0x60e973
cmp dword [edi], 0x1b
jne 0x60e92f
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push str.timer
jmp 0x60e94f
cmp dword [edi], 0x14
jne 0x60e95a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe0]
test al, al
je 0x60e95a
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push str.menu
mov ecx, dword [esi + 0x44]
push esi
call fcn.005e1b4d
jmp 0x60e973
mov ecx, dword [esi + 0x6d0]
push edi
test ecx, ecx
je 0x60e96c
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x60e973
mov ecx, esi
call fcn.005ed7db
pop ebx
pop edi
pop esi
pop ebp
ret 4