joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422c70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x77c498]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x422dc0
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x422cbc
test edi, edi
je 0x422d2d
dec edi
push esi
push ebp
call fcn.00422ef0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x422ccf
xor cl, cl
jmp 0x422cd1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x422d14
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x77c498]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x422d2d
test eax, eax
jne 0x422cb2
cmp cl, 0xd
je 0x422d31
cmp cl, 0xa
jne 0x422cb2
dec esi
jmp 0x422da3
test eax, eax
jne 0x422da3
cmp cl, 0xa
jne 0x422d39
dec esi
jmp 0x422da3
cmp cl, 0xd
jne 0x422da3
dec esi
cmp dword [ebp + 4], 0
je 0x422d58
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00422dd0
mov dword [esp + 0x20], eax
jmp 0x422d6f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x422da3
cmp dword [ebp + 4], 0
je 0x422d81
inc dword [ebp + 0xc]
jmp 0x422da3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x422dd0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x422df1
push esi
call fcn.00421eb0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x422e65
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x422e52
dec ecx
je 0x422e3d
sub ecx, 2
je 0x422e2a
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x422eaa
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x422ecb
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x422ef0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x422f17
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00422dd0
mov dword [esp + 4], eax
jmp 0x422f31
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x422f3d
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x422f59
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x422f69
mov esi, 2
jmp 0x422f85
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x422f78
mov esi, 3
jmp 0x422f85
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x422fe2
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x422fb4
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.00422dd0
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
Function at 0x423cc4
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, esi
call fcn.0042f7dd
mov edi, eax
test edi, edi
je 0x423dba
cmp dword [edi + 0x14], esi
je 0x423dba
cmp dword [edi], 0xf
jne 0x423dba
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x423dba
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x423daf
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
push 0xffffffffffffffff
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jle 0x423daf
lea ebx, [edi - 1]
mov eax, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
push esi
push esi
push eax
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
add ebx, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, edi
jl 0x423d4c
push dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
push ebx
call fcn.00437860
mov edi, eax
cmp dword [esp + 0x14], esi
jle 0x423da9
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push eax
push edi
push esi
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xa
lea edi, [edi + eax*2]
pop eax
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0x10]
inc esi
cmp esi, ebx
jl 0x423d86
mov ebx, dword [esp + 0x18]
xor eax, eax
mov word [edi - 2], ax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x423dc6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.00437970
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x424545
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x77f6bc]
call fcn.00436c1f
mov ebx, eax
test ebx, ebx
je 0x4245a9
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x42456e
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4245a9
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00437860
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00437940
pop edi
pop esi
pop ebx
ret 8
Function at 0x42751b
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x77f6cc]
call fcn.00436aae
xor ebp, ebp
mov esi, eax
cmp dword [0x77d380], ebp
jne 0x4275f7
xor ebx, ebx
inc ebx
mov dword [0x77d380], ebx
call fcn.0042c608
mov edi, 0xa4
push edi
push ebp
push 0x77d388
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x77d388], 0x13
lea eax, [esp + 0x10]
mov dword [0x77d38c], edi
mov dword [0x77d398], 0x427466
mov dword [0x77d39c], 0x4277b1
push eax
mov dword [0x77d3f0], 0x427441
mov dword [0x77d3f4], 0x4276fc
mov dword [0x77d394], 0x42741c
mov dword [0x77d418], 0x427481
mov dword [0x77d42c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4275f7
cmp dword [esp + 0x20], ebx
je 0x4275df
cmp dword [esp + 0x20], 2
jne 0x4275f7
cmp dword [esp + 0x14], 5
jae 0x4275e7
mov dword [0x77d42c], ebp
jmp 0x4275f7
jne 0x4275f7
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x77d42c], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0043000a
mov eax, dword [esp + 0x140]
push ebp
push dword [0x77c49c]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4276cd
push dword [esp + 0x128]
push dword [0x77f6bc]
call fcn.00436c5e
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x42769c
push edi
call fcn.004325a1
test eax, eax
je 0x42769c
push ebp
push ebp
push edi
call fcn.004321eb
mov dword [esi + 0x18], eax
jmp 0x42769f
mov dword [esi + 0x18], ebp
push 0x42716b
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x77d388
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x77d384], eax
call fcn.0042c322
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x42d458
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x42d49d
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42d519
cmp dword [0x77efb8], 1
je 0x42d519
push ebx
mov ebx, 0x77efc0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x77efdc]
and dword [0x77efe4], 0
mov dword [0x77efe0], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x77efd8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x77efdc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42d511
push 0
push dword [0x77efbc]
mov dword [0x77efb8], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x42d7da
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x77eae0], 0
jne 0x42d8ab
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x77f6ec
mov dword [0x77eae0], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x77c498]
mov dword [0x77efa4], eax
mov dword [0x77eae4], 0x1f4
call esi
mov dword [0x77efb4], eax
mov eax, dword [0x77eae4]
add eax, eax
push eax
push 8
push dword [0x77c498]
call esi
xor ebx, ebx
mov dword [0x77efb0], eax
push 0x77efc0
mov dword [0x77efa8], ebx
mov dword [0x77efac], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x77efd8], eax
call esi
mov dword [0x77efdc], eax
cmp dword [0x77efd8], ebx
je 0x42d8a2
test eax, eax
je 0x42d8a2
lea eax, [esp + 0xc]
mov dword [0x77efb8], ebx
push eax
push ebx
push ebx
push 0x42d25d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x77efbc], eax
jmp 0x42d8a8
mov dword [0x77efb8], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x42d8ad
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42d952
cmp dword [esp + 0xc], 0
je 0x42d952
cmp dword [0x77efb8], 1
je 0x42d952
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42d951
push ebp
mov ebp, 0x77efc0
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x77efdc]
mov dword [0x77efe0], esi
mov dword [0x77efe4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x77efd8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x77efdc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42d949
push 0
push dword [0x77efbc]
mov dword [0x77efb8], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x42dcf1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x77f6c0]
call fcn.00436c1f
mov esi, eax
test esi, esi
je 0x42ddcb
cmp dword [ebp + 0xc], 0
je 0x42dd3d
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x42dd2e
cmp dword [esi + 0x1c], 0
jne 0x42dd2e
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42ddcb
test byte [ebp + 0x10], 3
je 0x42dd58
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0042e5f4
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x42dd7d
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x42dd91
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x42ddae
test ebx, ebx
je 0x42dda2
push 8
jmp 0x42ddb4
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x42ddc1
test ebx, ebx
je 0x42ddb7
push 3
pop ecx
jmp 0x42ddc1
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x42e787
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x42e81a
push 9
call esi
test al, al
jns 0x42e81a
push 0x11
call esi
test al, al
js 0x42e81a
push 0x10
call esi
test al, al
js 0x42e81a
push 0x12
call esi
test al, al
js 0x42e81a
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 5
lea eax, [ebp - 0x24]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x42e7fc
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x42e81a
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
jne 0x42e81a
xor eax, eax
jmp 0x42e89b
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42e842
push 0x11
call esi
test al, al
js 0x42e83a
push 0x10
call esi
test al, al
js 0x42e83a
push 0x12
call esi
test al, al
jns 0x42e842
push 1
push edi
call fcn.0042e8a3
mov esi, dword [sym.imp.USER32.dll_GetPropW]
test ebx, ebx
je 0x42e858
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x42e898
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x42e898
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x42e898
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x42e898
lea eax, [esi - 1]
push eax
push dword [0x77f6c0]
call fcn.00436c1f
test eax, eax
je 0x42e898
mov eax, dword [eax + 8]
jmp 0x42e89a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43009e
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4300df
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4300d7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4300d7
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4300e2
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.00437860
test esi, esi
je 0x43010a
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x43010f
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x430523
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x430580
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x430580
mov eax, dword [esi + 0x70]
test eax, eax
je 0x43055f
push ebx
push esi
call eax
push esi
push ebx
push dword [0x77c498]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x77f744]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x77f748], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x430a1e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x430aa2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x77c498]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x430a9a
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430a8b
cmp dword [esp + 0x18], ebx
jne 0x430a8b
push ebx
push edi
push dword [esp + 0x1c]
call fcn.004306c4
mov ebp, eax
push edi
push 0
push dword [0x77c498]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x4326ff
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x77f02c], eax
test eax, eax
je 0x43272d
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x77f028], eax
lea eax, [ebp - 0x114]
mov dword [0x77f030], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43278f
cmp dword [ebp - 0x104], 1
jne 0x432764
and dword [0x77f030], 0
jmp 0x4327a7
cmp dword [ebp - 0x104], 2
jne 0x43278f
cmp dword [ebp - 0x110], 5
jb 0x43275b
jne 0x43278f
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x77f030]
mov dword [0x77f030], eax
jmp 0x432794
mov eax, dword [0x77f030]
test eax, eax
je 0x4327a7
call fcn.00431fda
neg eax
sbb eax, eax
and dword [0x77f030], eax
mov esp, ebp
pop ebp
ret

Function at 0x433810
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x433842
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43383d
cmp dword [esp + 0xc], esi
je 0x433859
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x4339c5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x4339f5
cmp esi, 2
je 0x4339f5
cmp esi, 4
je 0x4339f5
cmp esi, 8
je 0x4339f5
cmp esi, 0x18
je 0x4339f5
cmp esi, 0x20
je 0x4339f5
xor eax, eax
jmp 0x433bbf
mov ecx, dword [0x77f08c]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x433bbb
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x77f7d4]
cmp dword [eax], edx
je 0x433a28
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x433a0f
jmp 0x433bbb
cmp dword [esp + 0x38], 0x20
jne 0x433b92
mov eax, dword [eax + 8]
test eax, eax
je 0x433a68
cmp esi, 0x20
je 0x433a44
cmp esi, 0xffffffff
jne 0x433a68
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x433bb9
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x77c498]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x433bbb
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x433b5d
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x433b3d
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
dec edi
jne 0x433ace
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x433abb
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x77f7d4]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x77c498]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x433bbb
cmp dword [esp + 0x38], 0x18
jne 0x433bbb
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28