joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1b1c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4a1b3d
test edi, 0x40000
je 0x4a1b57
test bl, bl
jne 0x4a1bd8
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4a1bd8
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4a1b8a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4a1b9f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x4a1bae
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4a1bbf
cmp byte [esp + 2], 0
je 0x4a1bd8
cmp byte [esp + 2], 0
je 0x4a1bd0
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4a1bd8
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4a1e84
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4a1eaa
mov eax, esp
push eax
push 0x4a1e4c
call sub.user32.dll_EnumWindows
jmp 0x4a1ebd
mov eax, esp
push eax
push 0x4a1e2c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4a1f80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4a1fd0]
test bl, 4
je 0x4a1f94
or si, 1
test bl, 8
je 0x4a1f9d
or si, 4
test bl, 1
je 0x4a1fa6
or si, 8
test bl, 2
je 0x4a1faf
or si, 0x10
test bl, 0x10
je 0x4a1fb8
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a1fc8
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4a1fd4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4a2010]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a1fef
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a1fff
or bx, 4
test esi, 0x20000000
je 0x4a200b
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4aab08
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4aab1a
add esp, 0xfffffff0
call fcn.004053a4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0044604c
mov eax, dword [0x4b9f30]
mov dword [eax + 4], ebx
mov dword [eax], 0x4aaf44
mov eax, dword [0x4b9f3c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4aaf50
mov eax, ebx
call fcn.004aaf5c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x42ea10]
call fcn.00404e5c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x42ea10]
call fcn.00404e5c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x42ea10]
call fcn.00404e5c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x42ea10]
call fcn.00404e5c
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x42ea10]
call fcn.00404e5c
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4a5980
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x44cec8]
call fcn.0045215c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x44cec8]
call fcn.0045215c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44cec8]
call fcn.0045215c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x44cec8]
call fcn.0045215c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44cec8]
call fcn.0045215c
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004ab4b4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab324
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab324
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab324
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab324
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab324
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4aac91
call fcn.004053fc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ab0c4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ab26f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4ab250
mov dl, 1
mov eax, dword [0x4311ec]
call fcn.0043d89c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.00406894
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4ab23f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0047aea8
test al, al
je 0x4ab232
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4ab280
lea eax, [ebp - 0x394]
call fcn.0041bc48
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4ab232
xor eax, eax
push ebp
push 0x4ab22b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4ab2f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4ab214
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407264
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4ab214
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab232
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4ab135
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0043d7d8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab276
lea eax, [ebp - 0x3a0]
call fcn.00406894
ret

Function at 0x4abdcc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4c024c]
cmp byte [eax + 0xad], 0
jne 0x4abe3e
cmp dword [0x4c0264], 0
jne 0x4abdfe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4b9e10]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4c0264], eax
cmp dword [0x4c0260], 0
jne 0x4abe19
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4c0260], eax
cmp dword [0x4c0268], 0
jne 0x4abe3e
push esp
push 0
push 0
mov eax, dword [0x4b9e0c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4c0268], eax
pop edx
ret
Function at 0x4ac154
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4ac16b
add esp, 0xfffffff0
call fcn.004053a4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0044604c
mov eax, dword [0x4b9e74]
cmp byte [eax], 0
jne 0x4ac198
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4ba0a4]
cmp word [eax + 2], 0
jne 0x4ac1b2
mov eax, dword [0x4ba0a4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004ae21c
mov eax, dword [0x4ba174]
cmp word [eax + 2], 0
jne 0x4ac1cc
mov eax, dword [0x4ba174]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004ae420
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44cec8]
call fcn.0045215c
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4ae998
mov dl, 1
mov eax, dword [0x42ea10]
call fcn.00404e5c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42ea10]
call fcn.00404e5c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4507c0]
call fcn.00458fa4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4ac3ac
mov eax, dword [0x4b9fa8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00459438
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4aec80
mov dl, 1
mov eax, dword [0x42ea10]
call fcn.00404e5c
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4b9fa8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041ba70
test eax, eax
je 0x4ac2dd
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041b824
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041ba54
test eax, eax
je 0x4ac2f5
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407264
push ebx
push 0x4adc08
call fcn.004a1f64
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4b9e74]
cmp byte [eax], 0
jne 0x4ac346
mov eax, ebx
call fcn.004ac520
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004aeeac
mov eax, ebx
call fcn.004afadc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4ac3a3
call fcn.004053fc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ac7ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4ac88e
cmp dword [ebx + 0x94], 0
jne 0x4ac888
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4ac738
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4ac888
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4ac84e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4ac888
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00439d7c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4ac85d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4acaac
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4c024c]
cmp dword [eax + 0x170], 0
je 0x4acc11
test bl, bl
jne 0x4acb5f
cmp dword [esi + 0x9c], 0
jne 0x4acb54
mov eax, esi
call fcn.004af92c
push eax
push 0x4ac9b8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4acb25
mov eax, dword [0x4c024c]
cmp byte [eax + 0xd3], 0
je 0x4acb25
mov eax, dword [esi + 0xd8]
call fcn.00408144
mov edi, eax
cmp edi, 0
jl 0x4acb25
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4acb0e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4acb54
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00439d7c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4acb34
inc dword [esi + 0x9c]
jmp 0x4acc11
cmp dword [esi + 0x9c], 0
jle 0x4acc11
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4acc11
cmp dword [esi + 0x44], 0
je 0x4acbbc
mov eax, dword [0x4c024c]
cmp byte [eax + 0xd3], 0
je 0x4acbbc
mov eax, dword [esi + 0xd8]
call fcn.00408144
mov edi, eax
cmp edi, 0
jl 0x4acbbc
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4acba5
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4acbeb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00439d7c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4acbcb
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49fe3c]
call fcn.00408304
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4ad854
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4ad8bf
cmp byte [ebx + 0xd3], 0
jne 0x4ad8bf
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004069fc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4ad8ac
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4ad8cc
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c54
jmp 0x4ad8cc
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c54
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4af094
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4af102
mov eax, esi
call fcn.00474e90
test al, al
je 0x4af102
mov eax, dword [ebx + 0x84]
call fcn.00474ae4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4af102
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4af0f6
push 0
mov eax, dword [ebx + 0x84]
call fcn.00474ae4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0046ba60
jmp 0x4af102
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004aeecc
pop esi
pop ebx
ret
Function at 0x65c41900
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0xc]
test byte [0x65c45060], 8
jne 0x65c419c0
mov ebx, dword [0x65c45080]
test ebx, ebx
je 0x65c41a00
mov edx, dword [esi]
xor edi, edi
jmp 0x65c4193e
mov eax, dword [ebx]
mov edi, ebx
test eax, eax
je 0x65c41a00
mov ebx, eax
cmp dword [ebx + 4], edx
jne 0x65c41930
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x402
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [ebx + 0xa4]
sub esp, 0x14
mov esi, eax
test edi, edi
je 0x65c419f0
mov eax, dword [ebx]
mov dword [edi], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp si, 1
sbb eax, eax
not eax
and eax, 0xb
mov word [0x65c4502c], ax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.DG_CONTROL_DAT_IDENTITY_MSG_CLOSEDS_n
mov dword [esp + 8], str.TWAIN_CloseDS
mov dword [esp + 4], 0x65c45060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65c41919
mov eax, dword [ebx]
mov dword [0x65c45080], eax
jmp 0x65c41978
mov eax, 3
mov esi, 1
mov word [0x65c4502c], ax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x65c41b30
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test byte [0x65c45060], 8
jne 0x65c41ca0
lea eax, [esi - 0x101]
cmp ax, 1
jbe 0x65c41b78
cmp si, 0x104
je 0x65c41b78
mov eax, 9
mov word [0x65c4502c], ax
mov eax, 1
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x65c41d1b
lea edx, [ebx + 0xa8]
mov word [eax + 8], si
mov dword [eax], edx
mov edx, dword [ebx + 0xac]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ebx + 0xac], eax
mov eax, dword [0x65c45024]
test eax, eax
je 0x65c41c60
mov edx, dword [0x65c45094]
mov esi, dword [sym.imp.user32.dll_PostMessageW]
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call esi
mov eax, dword [ebx + 0xb0]
sub esp, 0x10
test eax, eax
je 0x65c41d08
cmp eax, dword [0x65c45024]
jne 0x65c41c70
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x65c41c2e
cmp eax, dword [ebx + 0xb0]
je 0x65c41c2e
cmp dword [0x65c45024], eax
jne 0x65c41cde
mov eax, dword [0x65c45094]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call esi
xor eax, eax
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebx + 0xb0]
mov esi, dword [sym.imp.user32.dll_PostMessageW]
test eax, eax
je 0x65c41cd0
mov edx, dword [0x65c45094]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
sub esp, 0x10
jmp 0x65c41c10
movzx eax, si
mov dword [esp + 0xc], str.DG_CONTROL_DAT_NULL_MSG_i_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.TWAIN_ControlNull
mov dword [esp + 4], 0x65c45060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65c41b4b
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x65c41c2e
mov edx, dword [0x65c45094]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
sub esp, 0x10
jmp 0x65c41c2e
mov eax, dword [ebx + 0xb4]
test eax, eax
jne 0x65c41c22
jmp 0x65c41c2e
mov word [0x65c4502c], 2
mov eax, 1
jmp 0x65c41b6e
Function at 0x65c43150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x65c431ab
cmp byte [esi + ebx - 1], 0xa
je 0x65c4317f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x65c4513c], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0xc49b00
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c49c50
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc49b26
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc49b12
add dl, dl
jne 0xc49b31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc49b84
xor eax, eax
add dl, dl
jne 0xc49b3e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc49c25
add dl, dl
jne 0xc49b4d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc49b58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc49b63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc49b6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc49b7a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc49b1d
mov eax, 1
add dl, dl
jne 0xc49b92
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc49b9d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc49b89
sub eax, ebx
mov ebx, 1
jne 0xc49bd0
mov ecx, 1
add dl, dl
jne 0xc49bb6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc49bc1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc49bad
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc49b1d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc49be7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc49bf2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc49bde
cmp eax, 0x7d00
jae 0xc49c15
cmp eax, 0x500
jb 0xc49c10
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc49b1d
cmp eax, 0x7f
ja 0xc49c18
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc49b1d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc49c46
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc49b1d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1000431f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000432e
pop dword [ebp - 0xc]
mov eax, 0x43df4f6e
sub eax, 0x33df0c40
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x46afa7d9
sub dword [ebp - 0x1c], 0xf85d628e
mov dword [ebp - 0x18], 0xddf929f4
add dword [ebp - 0x18], 0x543a2251
mov dword [ebp - 0x14], 0x4b883727
sub dword [ebp - 0x14], 0xff3bf2f9
mov dword [ebp - 0x10], 0x954359a6
add dword [ebp - 0x10], 0x6abca65a
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xb2f63fc2
sub eax, 0xa2f5bf66
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x6db3af89
sub dword [ebp - 0x1c], 0xf9414633
mov dword [ebp - 0x18], 0xe861296c
add dword [ebp - 0x18], 0x590b3809
mov dword [ebp - 0x14], 0x46084d31
sub dword [ebp - 0x14], 0xe298e0c5
mov dword [ebp - 0x10], 0xbaab91e6
add dword [ebp - 0x10], 0x45546e1a
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x38460
push 0
call eax
mov ecx, 0x904bfeae
sub ecx, 0x904bb3da
mov esi, eax
mov edx, 0x57bb2bbe
add edx, 0xb845b042
add edx, dword [ebp - 0xc]
mov ebx, 0xa646452
mov edi, dword [edx]
add dword [ebp - 8], 0x63efeec2
sub edi, ebx
xor dword [ebp - 4], 0xb16fdcaa
mov dword [esi], edi
sub dword [ebp - 4], 0x161a345
add esi, 0x25a900e3
add esi, 0xda56ff21
add edx, 0xd49b2b25
sub edx, 0xd49b2b21
loop 0x10004445
add eax, 0xe3845bdc
add eax, 0x1c7cc247
xor ebx, ebx
add ebx, eax
add eax, 0x84fc9861
add eax, 0x7b0367a4
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret