joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af98c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x4af9c1
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004f6e20
jmp 0x4af9cb
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.004f6d8c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4b0908
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4b0940
mov eax, esi
call fcn.004c119c
test al, al
je 0x4b0940
mov eax, dword [ebx + 0x74]
call fcn.004c0ea0
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4b0940
push 0
mov eax, dword [ebx + 0x74]
call fcn.004c0ea0
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x4b8a10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x71d978], 0
sete dl
or al, dl
jne 0x4b8b50
mov eax, dword [0x71d97c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x71d978]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4b8b1f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x71d978]
call fcn.004e026c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4b8b17
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x4b8b17
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4b8b17
mov eax, dword [ebp - 0x14]
call fcn.004c0ea0
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4b8b17
push ebp
call fcn.004b89cc
pop ecx
test al, al
jne 0x4b8b17
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x4b8ad3
mov eax, dword [ebp - 0x14]
call fcn.004bf82c
dec eax
jle 0x4b8b17
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.004f6464
cmp byte [ebp - 1], 0
je 0x4b8b17
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4b8b17
mov edx, dword [ebp - 0x14]
mov eax, dword [0x71d97c]
call fcn.004b8218
inc edi
dec esi
jne 0x4b8a66
mov eax, dword [0x71d97c]
cmp dword [eax + 8], 0
jle 0x4b8b37
mov eax, dword [0x71d97c]
call fcn.004b82a8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4b8b50
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004b8834
pop ecx
test al, al
jne 0x4b8b50
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cc494
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cc56c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x71d9c4], 0
jne 0x4cc550
lea eax, [ebp - 4]
mov edx, 0x4cc584
call fcn.004f6dd0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004f717c
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4cc550
mov eax, ebx
call fcn.004f5b58
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4cc549
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x4cc533
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4cc594
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4cc533
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x71d9c4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc550
mov eax, dword [ebp - 0xc]
call fcn.004f5b70
ret
mov ebx, dword [0x71d9c4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc573
lea eax, [ebp - 4]
call fcn.004f6d38
ret

Function at 0x4dda14
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x4dda68
mov eax, dword [0x71d060]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x4dda40
push ebx
push 0x4dda70
call fcn.004a7320
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.USER32.DLL_OpenClipboard
test eax, eax
jne 0x4dda64
mov ecx, dword [0x71d44c]
mov dl, 1
mov eax, dword [0x4eda40]
call fcn.004f1c90
call fcn.004f6a00
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x4dda90
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004dda14
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ddb02
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4ddad6
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004f6ef0
jmp 0x4ddadd
mov eax, ebx
call fcn.004f6d38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddb09
cmp dword [ebp - 8], 0
je 0x4ddaf9
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.004dd9e8
ret
Function at 0x4ddb10
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004dda14
xor edx, edx
push ebp
push 0x4ddbb2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4ddb85
mov edx, ebx
mov eax, dword [0x49b878]
call fcn.0049fe34
test al, al
je 0x4ddb75
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0049fd44
call fcn.004f6aa0
jmp 0x4ddbb9
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4ddb40
mov ecx, dword [0x71d450]
mov dl, 1
mov eax, dword [0x4eda40]
call fcn.004f1c90
call fcn.004f6a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddbb9
mov eax, dword [ebp - 4]
call fcn.004dd9e8
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4ddbc0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004dda14
xor eax, eax
push ebp
push 0x4ddc18
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddc1f
mov eax, dword [ebp - 4]
call fcn.004dd9e8
ret

Function at 0x4ddc28
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004dda14
xor edx, edx
push ebp
push 0x4ddc7d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddc84
mov eax, dword [ebp - 4]
call fcn.004dd9e8
ret

Function at 0x4ddcf4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004dda14
xor eax, eax
push ebp
push 0x4ddd69
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004dd9cc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0049fe08
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4ddd53
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddd70
mov eax, dword [ebp - 4]
call fcn.004dd9e8
ret
Function at 0x4ddd78
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004dda14
xor eax, eax
push ebp
push 0x4ddded
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004dd9cc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4dddd7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dddf4
mov eax, dword [ebp - 4]
call fcn.004dd9e8
ret
Function at 0x11b62
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
jmp fcn.0001c1c6

Function at 0x15006
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 4], 5
mov eax, dword [ebp - 8]
jne 0x1504e
cmp eax, 2
jne 0x15039
mov dword [0x14034], 0x45
leave
ret
cmp eax, 1
jne 0x1504a
mov dword [0x14034], 0x42
leave
ret
test eax, eax
je 0x15095
cmp dword [ebp - 4], 6
jne 0x15095
test eax, eax
jne 0x15064
mov dword [0x14034], 0x7f
leave
ret
cmp eax, 1
jne 0x15075
mov dword [0x14034], 0x6b
leave
ret
cmp eax, 2
jne 0x15086
mov dword [0x14034], 0x134
leave
ret
cmp eax, 3
jne 0x15095
mov dword [0x14034], 0x137
leave
ret

Function at 0x15368
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp + 0xc]
add eax, ecx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
cmp edx, dword [ecx + 0xc]
jae 0x15389
mov eax, edx
jmp 0x153b4
push ebx
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
test esi, esi
jbe 0x153ae
mov eax, dword [ecx + 0xc]
cmp edx, eax
jb 0x153a6
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edx, ebx
jb 0x153b8
add ecx, 0x28
inc edi
cmp edi, esi
jb 0x15396
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, edx
jmp 0x153b1
Function at 0x15516
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push esi
push edi
push 0x18
pop edi
push 0x820
mov dword [ebp - 0x1c], eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push 0x120089
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jge 0x15567
xor eax, eax
jmp 0x155d8
push 5
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jge 0x1558a
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x15563
push esi
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, esi
je 0x1557f
push esi
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push edi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
push dword [ebp - 4]
test eax, eax
jge 0x155c8
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x15563
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x155e4
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor ebx, ebx
push ebx
push 0xa
push ebx
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push ebx
push edi
cmp eax, 0xc0000004
jne 0x156a5
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push ebx
push dword [ebp - 4]
push ebx
call esi
mov esi, eax
cmp esi, ebx
je 0x156ab
push ebx
push dword [ebp - 4]
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x15644
push ebx
push esi
call edi
jmp 0x156ab
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0x20]
push 0x5c
push eax
call dword [sym.imp.ntoskrnl.exe_strrchr]
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, ecx
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
cmp dx, bx
jne 0x15684
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push ebx
push esi
call edi
mov eax, dword [ebp - 8]
jmp 0x156ad
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1e3e1
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
pushfd
jmp 0x1be87
mov dword [eax + 4], 0xefcdab89
jmp 0x199e6
push 0xbb051a84
mov ax, cx
mov eax, dword [ebp + 8]
inc dl
dec ch
pushfd
mov ecx, dword [ebp + 0xc]
movsx si, al
movzx si, dl
jmp 0x188cd
jmp 0x1c0e3
lea esp, [esp + 8]
jmp 0x1c4c5

Function at 0x203ca
Capabilities:
Check http status code

Disassembly:
cmc
test cx, 0xb82a
xor ebx, esi
bt edi, 0x12
add ebx, dword [ebp - 0x18]
pushfd
jmp 0x206bc
pushfd
clc
not ebx
push 0x67d6959e
push 0x9bb5803d
or ebx, edi
jmp 0x1bd72
test sp, sp
add ebx, dword [ebp - 0x34]
clc
mov byte [esp + 0xc], 0xdf
clc
mov byte [esp + 4], ah
lea edi, [ebx + edi - 0x5cfebcec]
bswap bx
rol edi, 0xf
lea ebx, [0x5dfdffbf]
test ah, 0x37
add edi, esi
inc bl
mov ebx, edx
test cl, 0xc8
jmp 0x1e1bd
cmp di, cx
or ebx, esi
mov word [esp + 4], ax
stc
xor ebx, edx
bt dx, 0xf
pushfd
jmp 0x1e3ab
mov byte [esp + 8], bl
call fcn.0001e67b
Function at 0x4010b9
Capabilities:
Encode data using xor

Disassembly:
jmp 0x459350
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSemaphore::acquire_int_]
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x40
lea eax, [esp + 0x14]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esi + 0x18]
add esp, 0xc
push 1
call ebp
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x459456
cmp byte [esi + 8], bl
je 0x459456
push 0x1388
push 0x40
lea ecx, [esp + 0x18]
push ecx
push 0x81
push eax
call sub.libusb0.dll_usb_bulk_read
mov edi, eax
add esp, 0x14
cmp edi, ebx
jge 0x4593e8
cmp edi, 0xffffff8c
je 0x4593e6
mov ecx, dword [esi + 0x18]
push 1
call ebp
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4593db
mov edx, dword [esi + 4]
push edx
push eax
call sub.libusb0.dll_usb_release_interface
mov eax, dword [esi + 0xc]
push eax
call sub.libusb0.dll_usb_close
add esp, 0xc
mov dword [esi + 0xc], ebx
mov byte [esi + 8], bl
mov ecx, dword [esi + 0x18]
push 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSemaphore::release_int_]
xor edi, edi
mov ecx, dword [esi + 0x18]
push 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSemaphore::release_int_]
cmp edi, ebx
jle 0x459461
cmp byte [esp + 0x10], 0xad
jne 0x459361
cmp byte [esp + 0x13], 0xff
jne 0x459361
movzx edx, byte [esp + 0x11]
movzx ecx, byte [esp + 0x12]
shl edx, 8
add edx, ecx
xor eax, eax
cmp edx, 6
jg 0x459463
lea esi, [edx - 1]
or cl, 0xff
cmp esi, ebx
jle 0x45943b
lea ecx, [ecx]
xor cl, byte [esp + eax + 0x14]
add eax, 1
cmp eax, esi
jl 0x459430
cmp cl, byte [esp + edx + 0x13]
jne 0x459461
mov eax, dword [esp + 0x54]
sub edx, 2
cmp edx, 1
mov dword [eax], ebx
jne 0x45946d
movzx ecx, byte [esp + 0x15]
jmp 0x4594a1
mov ecx, dword [esi + 0x18]
push 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSemaphore::release_int_]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x10
cmp edx, 2
jne 0x459479
movzx ecx, byte [esp + 0x16]
jmp 0x459497
cmp edx, 4
jne 0x459461
movzx ecx, byte [esp + 0x18]
movzx esi, byte [esp + 0x17]
shl ecx, 8
or ecx, esi
movzx esi, byte [esp + 0x16]
shl ecx, 8
or ecx, esi
movzx esi, byte [esp + 0x15]
shl ecx, 8
or ecx, esi
mov dword [eax], ecx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
pop edi
mov dword [eax], edx
mov dl, byte [esp + 0x10]
pop esi
pop ebp
mov byte [ecx], dl
mov eax, 1
pop ebx
add esp, 0x40
ret 0x10
Function at 0x40121c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
jmp 0x411020
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCR80.dll_clock]
mov ebp, ecx
xor bl, bl
push edi
mov dword [esp + 0x18], ebp
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
call esi
mov edi, eax
push 1
lea eax, [esp + 0x17]
push eax
mov ecx, ebp
call fcn.00401c80
test eax, eax
je 0x4110b1
mov dl, byte [esp + 0x17]
mov cl, byte [esp + 0x13]
mov al, bl
cmp al, 0xad
mov bl, byte [esp + 0x16]
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], cl
jne 0x411072
cmp cl, 0xff
je 0x4110bd
call esi
mov ecx, eax
sub ecx, edi
imul ecx, ecx, 0x3e8
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, dword [esp + 0x40]
jae 0x4110b1
push 2
call fcn.00401334
add esp, 4
push 1
lea edx, [esp + 0x17]
push edx
mov ecx, ebp
call fcn.00401c80
test eax, eax
jne 0x411053
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
movzx eax, dl
movzx esi, bl
shl esi, 8
add esi, eax
mov dword [esp + 0x14], eax
xor eax, eax
cmp esi, 6
jg 0x4110b3
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push esi
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
xor edi, edi
call fcn.00401c80
test eax, eax
je 0x4110b1
cmp esi, edi
mov dword [esp + 0x40], edi
jle 0x41116b
lea ebp, [esp + 0x25]
lea ebx, [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x60], 2
mov al, byte [ebx]
jne 0x411150
cmp al, 0x5c
jne 0x411150
mov edx, dword [esp + 0x40]
add edx, esi
push 1
lea eax, [esp + edx + 0x28]
push eax
call fcn.00401c80
test eax, eax
je 0x4110b1
mov al, byte [ebp]
cmp al, 0xee
jne 0x411133
mov al, 0x11
jmp 0x411145
cmp al, 0xec
jne 0x41113b
mov al, 0x13
jmp 0x411145
cmp al, 0xa3
jne 0x4110b1
mov al, 0x5c
add dword [esp + 0x40], 1
add ebx, 1
add ebp, 1
push 2
mov byte [esp + edi + 0x20], al
call fcn.00401334
add edi, 1
add esp, 4
add ebx, 1
add ebp, 1
cmp edi, esi
jl 0x411102
lea edx, [esi - 1]
or cl, 0xff
xor eax, eax
test edx, edx
jle 0x411182
xor cl, byte [esp + eax + 0x1c]
add eax, 1
cmp eax, edx
jl 0x411177
cmp cl, byte [esp + esi + 0x1b]
jne 0x4110b1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
add eax, 0xfffffffe
cmp eax, 1
mov dword [ecx], 0
jne 0x4111a9
movzx edx, byte [esp + 0x1d]
jmp 0x4111e1
cmp eax, 2
jne 0x4111b5
movzx edx, byte [esp + 0x1e]
jmp 0x4111d7
cmp eax, 4
jne 0x4110b1
movzx edx, byte [esp + 0x20]
movzx esi, byte [esp + 0x1f]
shl edx, 8
or edx, esi
movzx esi, byte [esp + 0x1e]
shl edx, 8
or edx, esi
movzx esi, byte [esp + 0x1d]
shl edx, 8
or edx, esi
mov dword [ecx], edx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
pop edi
mov dword [ecx], eax
mov al, byte [esp + 0x18]
pop esi
pop ebp
mov byte [edx], al
mov eax, 1
pop ebx
add esp, 0x20
ret 0x10
Function at 0x401280
Capabilities:
Encode data using xor

Disassembly:
jmp 0x459080
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
lea ebp, [ebx + 0xa]
push ebp
mov edi, ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.MSVCR80.dll_malloc]
mov dl, byte [esp + 0x24]
mov esi, eax
lea eax, [ebx + 6]
sar eax, 8
mov cl, bl
add cl, 6
mov byte [esi + 1], al
mov eax, dword [esp + 0x1c]
mov byte [esi + 2], cl
mov byte [esi + 4], dl
mov ecx, eax
mov edx, eax
mov byte [esi + 5], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
mov byte [esi + 8], al
add esp, 4
xor eax, eax
test ebx, ebx
mov byte [esi], 0xad
mov byte [esi + 3], 0xff
mov byte [esi + 6], cl
mov byte [esi + 7], dl
jle 0x4590f5
mov ebp, dword [esp + 0x14]
mov cl, byte [eax + ebp]
mov byte [esi + eax + 9], cl
add eax, 1
cmp eax, ebx
jl 0x4590e3
mov ebp, dword [esp + 0x1c]
mov cl, byte [esi + 3]
mov eax, 4
add ebx, 9
cmp ebx, eax
jle 0x45910e
xor cl, byte [eax + esi]
add eax, 1
cmp eax, ebx
jl 0x459104
mov byte [eax + esi], cl
mov ecx, dword [edi + 0x18]
push 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSemaphore::acquire_int_]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4591a2
cmp byte [edi + 8], 0
je 0x4591a2
push 0x1388
push ebp
push esi
push 1
push eax
call sub.libusb0.dll_usb_bulk_write
mov ebp, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSemaphore::release_int_]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jge 0x459188
cmp ebx, 0xffffff8c
je 0x459186
mov ecx, dword [edi + 0x18]
push 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSemaphore::acquire_int_]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x45917f
mov edx, dword [edi + 4]
push edx
push eax
call sub.libusb0.dll_usb_release_interface
mov eax, dword [edi + 0xc]
push eax
call sub.libusb0.dll_usb_close
add esp, 0xc
mov dword [edi + 0xc], 0
mov byte [edi + 8], 0
mov ecx, dword [edi + 0x18]
push 1
call ebp
xor ebx, ebx
mov ecx, dword [edi + 0x18]
push 1
call ebp
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x10
mov ecx, dword [edi + 0x18]
push 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSemaphore::release_int_]
push esi
xor ebx, ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x10

Function at 0x40130c
Capabilities:
Create thread

Disassembly:
jmp 0x408570
push ecx
mov eax, dword [0x6ce28c]
push esi
push edi
mov edi, ecx
mov ecx, dword [eax]
cmp ecx, 1
mov esi, dword [edi + 0xe4]
je 0x40859e
mov eax, dword [0x6ce28c]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
mov ecx, 0x6ce28c
call fcn.004012fd
mov edx, dword [0x6ce28c]
lea ecx, [esi + esi*2]
cmp byte [edx + ecx*4 + 0x11], 0
jne 0x4085c5
lea eax, [esp + 8]
push eax
push 0
push edi
push 0x4014bf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ecx
ret