joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40e5d6
mov ecx, dword [ecx]
sub eax, edi
inc eax
push eax
mov eax, dword [ebp + 8]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40e625
push eax
push str.setString
lea ecx, [esp + 0x114]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0xc]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0xc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40e630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
mov edx, dword [ebp + 8]
push esi
push edi
push 4
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40e687
push eax
push str.setInt
lea ecx, [esp + 0x114]
call fcn.0044ba90
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push 0x49859c
lea ecx, [esp + 0xc]
push ecx
call fcn.00459658
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40e720
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
push esi
push edi
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov esi, ecx
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40e784
push eax
push str.RegQueryInfoKey
lea ecx, [esp + 0x11c]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0x14]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x14]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
inc eax
cmp ecx, eax
jae 0x40e7aa
push eax
mov dword [esi + 0xc], eax
call fcn.00459034
mov edi, eax
mov eax, dword [esi + 8]
push eax
call fcn.00459039
add esp, 8
mov dword [esi + 8], edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x40e7e0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x40e812
push eax
push str.RegEnumValue
lea ecx, [esp + 0x11c]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [esp + 0x14]
mov ecx, 0x41
lea edi, [esp + 0x14]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov eax, dword [esi + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e8c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479abb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
push edi
push str.RegDeleteKeyEx
mov esi, ecx
push str.advapi
lea ecx, [esp + 0x10]
call fcn.0044c090
mov ecx, dword [esp + 8]
test ecx, ecx
mov dword [esp + 0x224], 0
je 0x40e92e
mov eax, dword [esi + 0x10]
and eax, 0x300
xor edx, edx
cmp eax, 0x300
sete dl
push 0
dec edx
and eax, edx
mov edx, dword [esi]
push eax
mov eax, dword [ebp + 8]
push eax
push edx
call ecx
jmp 0x40e983
mov eax, dword [esi + 0x10]
test ah, 3
je 0x40e976
push str.RegDeleteKeyEx_not_available_and_view_is_not_default
lea eax, [esp + 0x14]
push 0x100
push eax
mov byte [esp + 0x1c], 0
call fcn.0044c260
add esp, 0xc
mov ecx, 0x40
lea esi, [esp + 0x10]
lea edi, [esp + 0x114]
rep movsd dword es:[edi], dword [esi]
push 0x498d60
lea ecx, [esp + 0x118]
push ecx
call fcn.00459658
mov edx, dword [ebp + 8]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40e9b8
push eax
push str.RegDeleteKey
lea ecx, [esp + 0x18]
call fcn.0044ba90
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x114]
rep movsd dword es:[edi], dword [esi]
push 0x49859c
lea ecx, [esp + 0x118]
push ecx
call fcn.00459658
lea ecx, [esp + 8]
mov dword [esp + 0x224], 0xffffffff
call fcn.0044c080
mov ecx, dword [esp + 0x21c]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f4f0
Capabilities:
Delete service
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479bc2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov al, byte [0x4a709c]
test al, al
push ebx
push esi
push edi
je 0x40f685
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0x3c], edi
test edi, edi
mov dword [esp + 0x254], 0
jne 0x40f576
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x484b40
lea ecx, [esp + 0x14c]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [esp + 0x44]
mov ecx, 0x41
lea edi, [esp + 0x44]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov ebx, dword [ebp + 8]
push 0xf003f
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
mov byte [esp + 0x254], 1
jne 0x40f5cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x484b20
lea ecx, [esp + 0x14c]
call fcn.0044ba90
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
push 0x49859c
lea ecx, [esp + 0x44]
push ecx
call fcn.00459658
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40f60b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x484b00
lea ecx, [esp + 0x14c]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0x44]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x44]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
push 0
lea ecx, [esp + 0x14]
call fcn.0040e690
push 0
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 2
call fcn.0040ee60
push 0
push str.SYSTEMCurrentControlSetServicesEventLogApplication
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x260], 3
call fcn.0040efa0
lea ecx, [esp + 0x24]
mov byte [esp + 0x254], 2
call fcn.0040e6b0
push ebx
lea ecx, [esp + 0x14]
call fcn.0040e8c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x254], 1
call fcn.0040e6b0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x40f6fa
push 0
lea ecx, [esp + 0x14]
call fcn.0040e690
push 0
mov ebx, 4
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x2c]
mov dword [esp + 0x25c], ebx
call fcn.0040ee60
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x260], 5
call fcn.0040efa0
lea ecx, [esp + 0x24]
mov byte [esp + 0x254], bl
call fcn.0040e6b0
mov edx, dword [ebp + 8]
push edx
lea ecx, [esp + 0x14]
call fcn.0040e480
lea ecx, [esp + 0x10]
mov dword [esp + 0x254], 0xffffffff
call fcn.0040e6b0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410a80
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479d76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov al, byte [0x4a6e21]
test al, al
push esi
push edi
jne 0x410ba3
mov al, byte [0x4a709c]
test al, al
je 0x410b8c
lea ecx, [esp + 0x10]
call fcn.00416c10
mov dword [esp + 0x22c], 0
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push 0x2000000
mov byte [esp + 0x234], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x410b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x484fac
lea ecx, [esp + 0x124]
call fcn.0044ba90
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0x49859c
lea ecx, [esp + 0x1c]
push ecx
call fcn.00459658
mov edx, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00416cf0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x410b59
mov byte [0x4a6e20], 1
mov edx, dword [esp + 0x14]
push edx
call fcn.00459039
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x410b75
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
call fcn.00459039
add esp, 4
jmp 0x410b9c
mov eax, dword [0x4a6e00]
test eax, eax
je 0x410b9c
mov byte [0x4a6e20], 1
mov byte [0x4a6e21], 1
mov ecx, dword [esp + 0x224]
mov al, byte [0x4a6e20]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413950
Capabilities:
Shutdown system

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47a1b0
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push str.stopping
push 0x4a6f38
mov esi, ecx
call fcn.00402ee0
mov eax, dword [esi + 0x8c]
add esp, 8
test eax, eax
je 0x413a51
push edi
lea ecx, [esp + 0xc]
call fcn.0040e1a0
mov eax, dword [0x4a6f00]
mov ecx, 0x4a6f00
mov dword [esp + 0x1c], 0
call dword [eax + 0xc]
mov edi, eax
mov dword [esp + 8], edi
push str.Logoff
push edi
mov byte [esp + 0x24], 1
call fcn.0045a0b0
add esp, 8
test eax, eax
jne 0x4139e3
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x413a1e
push str.ignoring_DisconnectActionLogoff___no_current_user
push 0x4a6f38
call fcn.00402eb0
add esp, 8
jmp 0x413a28
push str.Lock
push edi
call fcn.0045a0b0
add esp, 8
test eax, eax
jne 0x413a28
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x413a11
push str.ignoring_DisconnectActionLock___no_current_user
push 0x4a6f38
call fcn.00402eb0
add esp, 8
jmp 0x413a28
mov eax, dword [0x4a6f80]
test eax, eax
je 0x413a1e
call eax
jmp 0x413a28
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push edi
call fcn.00459039
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
mov dword [esp + 0x1c], 0xffffffff
pop edi
je 0x413a49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 8], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x413a5f
mov edx, dword [ecx]
push 0
call dword [edx + 0xc]
mov ecx, esi
call fcn.00413350
push str.stopped
push 0x4a6f38
mov dword [esi + 0x10], 0
call fcn.00402ee0
mov esi, dword [esi + 0xe8]
add esp, 8
test esi, esi
je 0x413a8c
mov byte [esi], 0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4156d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47a313
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 4]
push edi
mov dword [esp + 0x1c], esi
mov dword [esi], 0x485b64
mov dword [ebp], 0x485b5c
mov dword [esi + 8], 0x485b54
mov dword [esi + 0xc], 0x485b4c
push ebp
mov dword [esp + 0x30], 5
call fcn.00420840
mov ecx, eax
call fcn.00420b90
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp eax, ebx
je 0x415745
mov edi, edi
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
push eax
mov ecx, esi
call fcn.004150d0
cmp dword [esi + 0x18], ebx
jne 0x415730
cmp dword [esi + 0x24], ebx
je 0x415765
lea ebx, [ebx]
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00415180
cmp dword [esi + 0x24], ebx
jne 0x415750
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edi, [esi + 0x1c]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, edi
mov byte [esp + 0x38], 4
call fcn.00415010
mov eax, dword [edi + 4]
push eax
call fcn.0045903e
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x10]
push eax
push ecx
lea eax, [esp + 0x28]
push eax
mov ecx, edi
mov byte [esp + 0x38], 3
call fcn.00414e90
mov ecx, dword [edi + 4]
push ecx
call fcn.0045903e
mov ecx, dword [esp + 0x28]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [esi + 0xc], 0x483d44
add esp, 4
mov dword [esi + 8], 0x482d7c
mov dword [ebp], 0x485a8c
pop edi
mov dword [esi], 0x485a78
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x416270
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47a44c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov dword [esp + 0x18], ebx
mov dword [ebx], esi
mov dword [esp + 0x234], esi
mov dword [esp + 0x10], esi
push 0x104
mov byte [esp + 0x238], 1
call fcn.00459034
add esp, 4
mov edi, eax
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4162de
mov byte [edi], al
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4162e7
mov esi, edi
push 0
push 0x80
push 3
push 0
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
mov byte [esp + 0x234], 3
jne 0x416345
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_open_file
lea ecx, [esp + 0x12c]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [esp + 0x24]
mov ecx, 0x41
lea edi, [esp + 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
test eax, eax
mov byte [esp + 0x234], 2
je 0x416358
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x41639d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetVersionInfoSize_failed
lea ecx, [esp + 0x12c]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0x24]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x24]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
push edi
call fcn.00459034
add esp, 4
push eax
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
push edi
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4163ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetVersionInfo_failed
lea ecx, [esp + 0x12c]
call fcn.0044ba90
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push 0x49859c
lea ecx, [esp + 0x24]
push ecx
call fcn.00459658
mov edx, dword [esp + 0x10]
push edx
call fcn.00459039
mov ecx, dword [esp + 0x230]
add esp, 4
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41a880
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47a9cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
xor esi, esi
lea eax, [ebx + 4]
mov dword [esp + 0x2cc], esi
mov dword [eax], 0x483d44
mov dword [ebx], 0x486860
mov dword [eax], 0x486858
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov byte [ebx + 0x30], 0
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x48], esi
lea ecx, [ebx + 0x4c]
mov byte [esp + 0x2cc], 4
call fcn.0042dbe0
lea ecx, [ebx + 0x58]
mov byte [esp + 0x2cc], 5
call fcn.0042dbe0
mov dword [ebx + 0x68], esi
mov dword [ebx + 0x6c], esi
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x80], esi
mov eax, dword [0x4a709c]
test ah, ah
mov byte [esp + 0x2cc], 8
jne 0x41aa1d
test al, al
je 0x41a954
cmp dword [0x4a700c], 4
jbe 0x41aa1d
mov edx, dword [0x4a7150]
cmp edx, esi
je 0x41aa1d
cmp dword [0x4a7168], esi
je 0x41aa1d
xor eax, eax
mov ecx, 0x6a
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x1c]
push eax
push esi
push esi
mov dword [esp + 0x28], 0x1a8
mov dword [esp + 0x20], esi
call edx
test eax, eax
je 0x41aa1d
lea esp, [esp]
mov edi, str.VNC_Mirror_Driver
lea esi, [esp + 0x3c]
mov ecx, 0x12
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x41a9d1
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x20], eax
call dword [0x4a7150]
test eax, eax
jne 0x41a9a0
jmp 0x41aa1b
lea edx, [esp + 0x1c]
push 0xffffffffffffffff
push edx
call fcn.0044b020
mov dword [ebx + 0x44], eax
push 1
lea eax, [ebx + 0x48]
push eax
push 0
lea eax, [esp + 0x154]
push 0x5c
push eax
call fcn.0044b150
add esp, 0x1c
test al, al
jne 0x41aa1b
push 0xffffffffffffffff
push str.DEVICE0
call fcn.0044b020
mov ecx, dword [ebx + 0x48]
push ecx
mov esi, eax
call fcn.00459039
add esp, 0xc
mov dword [ebx + 0x48], esi
xor esi, esi
mov eax, dword [ebx + 0x48]
cmp eax, esi
jne 0x41aa67
push 0x486890
lea edx, [esp + 0x1c4]
push 0x100
push edx
mov byte [esp + 0x1cc], 0
call fcn.0044c260
add esp, 0xc
push 0x498d60
lea eax, [esp + 0x1c]
mov ecx, 0x40
lea esi, [esp + 0x1c4]
lea edi, [esp + 0x1c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov ecx, dword [ebx + 0x44]
push eax
push ecx
push str.Located_device___s___dev___s_
push 0x4a7158
call fcn.00402ee0
mov ecx, dword [esp + 0x2d4]
add esp, 0x10
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41ae90
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47a9eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], esi
mov ecx, dword [ecx + 8]
push ecx
mov dword [esp + 0x228], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41af02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenClipboard_getText_
lea ecx, [esp + 0x11c]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [esp + 0x14]
mov ecx, 0x41
lea edi, [esp + 0x14]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x41af3e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41af3e
push eax
call fcn.0041ad80
push 0
mov esi, eax
call fcn.00459039
push esi
mov dword [esp + 0x18], esi
call fcn.0041ae40
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x41af63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_close_Win32_clipboard_getText_:__u
push 0x4a7170
call fcn.00402ee0
add esp, 0xc
jmp 0x41af75
push str.closed_clipboard_getText_
push 0x4a7170
call fcn.00402ee0
add esp, 8
push 0
call fcn.00459039
mov ecx, dword [esp + 0x220]
add esp, 4
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41afa0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47aa08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
mov ecx, dword [ecx + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41b011
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenClipboard_setText_
lea ecx, [ebp - 0x120]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [ebp - 0x224]
mov ecx, 0x41
lea edi, [ebp - 0x224]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
push ecx
mov byte [ebp - 4], 1
call fcn.0041ade0
mov esi, eax
add esp, 4
push esi
mov dword [ebp - 0x18], esi
call fcn.0041ae40
mov eax, esi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b037
sub eax, edx
lea edi, [eax + 1]
push edi
push 2
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
push ebx
mov byte [eax + ecx], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x41b0bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_empty_Win32_clipboard
lea ecx, [ebp - 0x120]
call fcn.0044ba90
push 0x49859c
lea edx, [ebp - 0x42c]
mov esi, eax
mov ecx, 0x41
lea edi, [ebp - 0x42c]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x41b100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_set_Win32_clipboard
lea ecx, [ebp - 0x120]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [ebp - 0x328]
mov ecx, 0x41
lea edi, [ebp - 0x328]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
push str.set_clipboard
xor esi, esi
push 0x4a7170
mov dword [ebp - 0x14], esi
call fcn.00402ee0
mov ecx, dword [ebp - 0x18]
add esp, 8
push ecx
call fcn.00459039
add esp, 4
jmp 0x41b13f
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x41b16b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_close_Win32_clipboard_setText_:__u
push 0x4a7170
call fcn.00402ee0
add esp, 0xc
jmp 0x41b17d
push str.closed_clipboard_setText_
push 0x4a7170
call fcn.00402ee0
add esp, 8
test esi, esi
je 0x41b19a
push str.freeing_clipboard_handle
push 0x4a7170
call fcn.00402ee0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41cf10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47ab88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov esi, ecx
push 0
lea ecx, [esp + 0xc]
call fcn.0041c5c0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
call fcn.0041ca90
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 8]
push 0
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub edi, ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
sub ecx, edx
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x18]
and ecx, 0xfffffff8
or esi, 0xffffffff
mov dword [eax + 0x18], ecx
lea ecx, [esp + 8]
mov dword [eax + 4], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
mov dword [esp + 0x3c], esi
call fcn.0041c660
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 4