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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x421b81
push esi
call fcn.00420eb0
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 0x421bf5
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x421be2
dec ecx
je 0x421bcd
sub ecx, 2
je 0x421bba
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 0x421c3a
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 0x421c5b
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 0x421c80
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 0x421ca7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00421b60
mov dword [esp + 4], eax
jmp 0x421cc1
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 0x421ccd
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x421ce9
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 0x421cf9
mov esi, 2
jmp 0x421d15
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x421d08
mov esi, 3
jmp 0x421d15
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x421d72
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x421d44
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.00421b60
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 0x422a54
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.0042e56d
mov edi, eax
test edi, edi
je 0x422b4a
cmp dword [edi + 0x14], esi
je 0x422b4a
cmp dword [edi], 0xf
jne 0x422b4a
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x422b4a
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x422b3f
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 0x422b3f
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 0x422adc
push dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
push ebx
call fcn.00436290
mov edi, eax
cmp dword [esp + 0x14], esi
jle 0x422b39
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 0x422b16
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 0x422b56
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.004363a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x4232d5
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x77d61c]
call fcn.0043564f
mov ebx, eax
test ebx, ebx
je 0x423339
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4232fe
push dword [esp + 0xc]
push ebx
call eax
jmp 0x423339
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.00436290
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.00436370
pop edi
pop esi
pop ebx
ret 8
Function at 0x4262ab
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x77d62c]
call fcn.004354de
xor ebp, ebp
mov esi, eax
cmp dword [0x77b2e0], ebp
jne 0x426387
xor ebx, ebx
inc ebx
mov dword [0x77b2e0], ebx
call fcn.0042b398
mov edi, 0xa4
push edi
push ebp
push 0x77b2e8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x77b2e8], 0x13
lea eax, [esp + 0x10]
mov dword [0x77b2ec], edi
mov dword [0x77b2f8], 0x4261f6
mov dword [0x77b2fc], 0x426541
push eax
mov dword [0x77b350], 0x4261d1
mov dword [0x77b354], 0x42648c
mov dword [0x77b2f4], 0x4261ac
mov dword [0x77b378], 0x426211
mov dword [0x77b38c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x426387
cmp dword [esp + 0x20], ebx
je 0x42636f
cmp dword [esp + 0x20], 2
jne 0x426387
cmp dword [esp + 0x14], 5
jae 0x426377
mov dword [0x77b38c], ebp
jmp 0x426387
jne 0x426387
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x77b38c], 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.0042ed9a
mov eax, dword [esp + 0x140]
push ebp
push dword [0x77a404]
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 0x42645d
push dword [esp + 0x128]
push dword [0x77d61c]
call fcn.0043568e
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x42642c
push edi
call fcn.00431331
test eax, eax
je 0x42642c
push ebp
push ebp
push edi
call fcn.00430f7b
mov dword [esi + 0x18], eax
jmp 0x42642f
mov dword [esi + 0x18], ebp
push 0x425efb
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x77b2e8
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x77b2e4], eax
call fcn.0042b0b2
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x42c1e8
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 0x42c22d
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42c2a9
cmp dword [0x77cf18], 1
je 0x42c2a9
push ebx
mov ebx, 0x77cf20
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x77cf3c]
and dword [0x77cf44], 0
mov dword [0x77cf40], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x77cf38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x77cf3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42c2a1
push 0
push dword [0x77cf1c]
mov dword [0x77cf18], 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 0x42c56a
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x77ca40], 0
jne 0x42c63b
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x77d64c
mov dword [0x77ca40], 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 [0x77a400]
mov dword [0x77cf04], eax
mov dword [0x77ca44], 0x1f4
call esi
mov dword [0x77cf14], eax
mov eax, dword [0x77ca44]
add eax, eax
push eax
push 8
push dword [0x77a400]
call esi
xor ebx, ebx
mov dword [0x77cf10], eax
push 0x77cf20
mov dword [0x77cf08], ebx
mov dword [0x77cf0c], 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 [0x77cf38], eax
call esi
mov dword [0x77cf3c], eax
cmp dword [0x77cf38], ebx
je 0x42c632
test eax, eax
je 0x42c632
lea eax, [esp + 0xc]
mov dword [0x77cf18], ebx
push eax
push ebx
push ebx
push 0x42bfed
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x77cf1c], eax
jmp 0x42c638
mov dword [0x77cf18], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x42c63d
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42c6e2
cmp dword [esp + 0xc], 0
je 0x42c6e2
cmp dword [0x77cf18], 1
je 0x42c6e2
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42c6e1
push ebp
mov ebp, 0x77cf20
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x77cf3c]
mov dword [0x77cf40], esi
mov dword [0x77cf44], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x77cf38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x77cf3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42c6d9
push 0
push dword [0x77cf1c]
mov dword [0x77cf18], 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 0x42ca81
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x77d620]
call fcn.0043564f
mov esi, eax
test esi, esi
je 0x42cb5b
cmp dword [ebp + 0xc], 0
je 0x42cacd
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x42cabe
cmp dword [esi + 0x1c], 0
jne 0x42cabe
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42cb5b
test byte [ebp + 0x10], 3
je 0x42cae8
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0042d384
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x42cb0d
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 0x42cb21
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 0x42cb3e
test ebx, ebx
je 0x42cb32
push 8
jmp 0x42cb44
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x42cb51
test ebx, ebx
je 0x42cb47
push 3
pop ecx
jmp 0x42cb51
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 0x42d517
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 0x42d5aa
push 9
call esi
test al, al
jns 0x42d5aa
push 0x11
call esi
test al, al
js 0x42d5aa
push 0x10
call esi
test al, al
js 0x42d5aa
push 0x12
call esi
test al, al
js 0x42d5aa
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 0x42d58c
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x42d5aa
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
jne 0x42d5aa
xor eax, eax
jmp 0x42d62b
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42d5d2
push 0x11
call esi
test al, al
js 0x42d5ca
push 0x10
call esi
test al, al
js 0x42d5ca
push 0x12
call esi
test al, al
jns 0x42d5d2
push 1
push edi
call fcn.0042d633
mov esi, dword [sym.imp.USER32.dll_GetPropW]
test ebx, ebx
je 0x42d5e8
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x42d628
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x42d628
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x42d628
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x42d628
lea eax, [esi - 1]
push eax
push dword [0x77d620]
call fcn.0043564f
test eax, eax
je 0x42d628
mov eax, dword [eax + 8]
jmp 0x42d62a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42ee2e
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 0x42ee6f
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x42ee67
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x42ee67
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x42ee72
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.00436290
test esi, esi
je 0x42ee9a
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 0x42ee9f
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42f2b3
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 0x42f310
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 0x42f310
mov eax, dword [esi + 0x70]
test eax, eax
je 0x42f2ef
push ebx
push esi
call eax
push esi
push ebx
push dword [0x77a400]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x77d6a4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x77d6a8], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42f7ae
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 0x42f832
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x77a400]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42f82a
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 0x42f81b
cmp dword [esp + 0x18], ebx
jne 0x42f81b
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0042f454
mov ebp, eax
push edi
push 0
push dword [0x77a400]
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 0x43148f
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 [0x77cf8c], eax
test eax, eax
je 0x4314bd
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x77cf88], eax
lea eax, [ebp - 0x114]
mov dword [0x77cf90], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43151f
cmp dword [ebp - 0x104], 1
jne 0x4314f4
and dword [0x77cf90], 0
jmp 0x431537
cmp dword [ebp - 0x104], 2
jne 0x43151f
cmp dword [ebp - 0x110], 5
jb 0x4314eb
jne 0x43151f
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x77cf90]
mov dword [0x77cf90], eax
jmp 0x431524
mov eax, dword [0x77cf90]
test eax, eax
je 0x431537
call fcn.00430d6a
neg eax
sbb eax, eax
and dword [0x77cf90], eax
mov esp, ebp
pop ebp
ret

Function at 0x4325a0
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 0x4325d2
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 0x4325cd
cmp dword [esp + 0xc], esi
je 0x4325e9
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 0x432755
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 0x432785
cmp esi, 2
je 0x432785
cmp esi, 4
je 0x432785
cmp esi, 8
je 0x432785
cmp esi, 0x18
je 0x432785
cmp esi, 0x20
je 0x432785
xor eax, eax
jmp 0x43294f
mov ecx, dword [0x77cfec]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x43294b
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x77d734]
cmp dword [eax], edx
je 0x4327b8
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x43279f
jmp 0x43294b
cmp dword [esp + 0x38], 0x20
jne 0x432922
mov eax, dword [eax + 8]
test eax, eax
je 0x4327f8
cmp esi, 0x20
je 0x4327d4
cmp esi, 0xffffffff
jne 0x4327f8
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 0x432949
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 [0x77a400]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43294b
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x4328ed
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 0x4328cd
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 0x43285e
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 0x43284b
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x77d734]
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 [0x77a400]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x43294b
cmp dword [esp + 0x38], 0x18
jne 0x43294b
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