joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451a5c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x46e81c]
cmp byte [eax + 0x95], 0
jne 0x451ad3
cmp dword [0x46e838], 0
jne 0x451a91
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451a18
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46e838], eax
cmp dword [0x46e834], 0
jne 0x451aac
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46e834], eax
cmp dword [0x46e83c], 0
jne 0x451ad3
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4519b8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x46e83c], eax
pop ecx
pop ebp
ret

Function at 0x451b9c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.00451b34
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x451bbd
xor eax, eax
call fcn.00451b6c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x451bd7
mov al, 1
call fcn.00451b6c
mov esp, ebp
pop ebp
ret

Function at 0x4521f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x46e81c]
cmp dword [eax + 0x24], 0
je 0x4522b7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
jne 0x4522ae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x452170
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
cmp dword [eax + 8], 0
je 0x4522ae
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45226b
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x4522ae
mov dword [ebp - 0xc], eax
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.00411a60
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x452280
mov eax, dword [ebp - 4]
inc dword [eax + 0x84]
mov esp, ebp
pop ebp
ret

Function at 0x452e3c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x94], 0
je 0x452e81
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.004044b0
jmp 0x452e8f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x7c]
call main
mov esp, ebp
pop ebp
ret
Function at 0x453efc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x74], 0
je 0x453f43
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
call fcn.00437158
test al, al
je 0x453f43
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
call fcn.00436c94
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453f43
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
call fcn.00436c94
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x45784c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x46e8b0
mov edx, dword [esi]
mov eax, ebx
call fcn.00458528
mov edi, eax
mov dword [esi], edi
and edi, 0xff
add dword [esi + 4], edi
imul ebx, dword [esi + 4], 0x8088405
inc ebx
mov dword [esi + 4], ebx
mov eax, ebx
call fcn.00407b14
call fcn.00407b18
mov edx, dword [esi + 8]
call fcn.00458528
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x457940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.00404824
xor eax, eax
push ebp
push 0x457a09
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
cmp dword [ebp + 8], 0
je 0x4579f3
mov eax, dword [ebp + 8]
call fcn.00457894
mov al, byte [ebp - 1]
dec eax
test al, al
jb 0x4579b6
inc eax
mov byte [ebp - 4], al
mov bl, 0
call fcn.0045782c
xor edx, edx
mov dl, bl
xor ecx, ecx
mov cl, byte [ebp - 1]
add edx, ecx
xor al, byte [esi + edx]
mov byte [ebp - 3], al
mov al, byte [ebp - 3]
call fcn.0045784c
xor eax, eax
mov al, bl
mov dl, byte [ebp - 3]
mov byte [esi + eax], dl
inc ebx
dec byte [ebp - 4]
jne 0x457988
xor eax, eax
mov al, byte [ebp - 1]
mov bl, byte [esi + eax - 1]
and di, 8
cmp di, 8
je 0x4579e0
mov eax, dword [ebp + 0x10]
call fcn.00407b14
call fcn.00407b18
cmp bl, al
jne 0x4579f3
mov byte [ebp - 2], 1
jmp 0x4579f3
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
jne 0x4579f3
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457a10
lea eax, [ebp + 8]
call fcn.004043c8
ret

Function at 0x4580f4
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404834
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
test esi, esi
je 0x45811d
cmp ebx, 0xffffffff
je 0x458118
and ebx, 0x10
cmp ebx, 0x10
je 0x45811d
xor eax, eax
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret

Function at 0x4589c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
test edx, edx
jle 0x4589f2
mov ebx, dword [ecx]
movzx esi, byte [eax]
xor ebx, esi
and ebx, 0xff
movzx ebx, word [ebx*2 + 0x46d09c]
mov esi, dword [ecx]
shr esi, 8
xor ebx, esi
mov dword [ecx], ebx
inc eax
dec edx
test edx, edx
jg 0x4589ce
pop esi
pop ebx
ret
Function at 0x458d3c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404824
xor eax, eax
push ebp
push 0x458e0e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x458de9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404670
test eax, eax
jle 0x458dce
push pe_nt_image_headers32
lea eax, [ebx + 0x10d]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push ebx
push pe_nt_image_headers32
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x10]
mov ecx, 0x458e28
mov edx, dword [ebp - 4]
call fcn.004046bc
mov eax, dword [ebp - 0x10]
call fcn.00404834
push eax
call sub.kernel32.dll_GetVolumeInformationA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
jmp 0x458dd2
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458df0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4590a8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404824
xor eax, eax
push ebp
push 0x459188
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi + 0x78], 4
jne 0x4590e1
mov byte [ebp - 5], 1
jmp 0x45916a
mov eax, ebx
xor ecx, ecx
mov edx, 0x18
call fcn.00403238
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x459163
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push ebx
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00457f20
mov eax, dword [ebp - 0x10]
call fcn.00404834
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov eax, dword [ebx + 4]
imul dword [ebx]
imul dword [ebx + 8]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 4]
imul dword [ebx]
imul dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45916a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45918f
lea eax, [ebp - 0x10]
call fcn.004043c8
lea eax, [ebp - 4]
call fcn.004043c8
ret
Function at 0x459294
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404824
xor eax, eax
push ebp
push 0x4592ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404670
test eax, eax
jle 0x4592e2
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00457f20
mov eax, dword [ebp - 8]
call fcn.00404834
push eax
call sub.kernel32.dll_GetDriveTypeA
mov ebx, eax
jmp 0x4592e4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459306
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043ec
ret

Function at 0x45aa88
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff10
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xf0]
mov edx, dword [ebp + 0xc]
call fcn.00409ac0
push eax
lea eax, [ebp - 0xa0]
mov edx, edi
call fcn.00409ac0
push eax
lea eax, [ebp - 0x50]
mov edx, esi
call fcn.00409ac0
push eax
push 0
push ebx
call sub.shell32.dll_ShellExecuteA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45cf1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
test dl, dl
je 0x45cf92
mov al, byte [ebx + 0x48]
add al, 0xf9
sub al, 2
jb 0x45cf5c
sub al, 2
jb 0x45cf3f
sub al, 3
je 0x45cf3f
add al, 0xf4
sub al, 2
jae 0x45cf92
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jle 0x45cf92
call fcn.0045782c
xor byte [esi], al
mov al, byte [esi]
call fcn.0045784c
inc esi
dec edi
jne 0x45cf48
jmp 0x45cf92
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jle 0x45cf92
movzx eax, word [ebx + 0x4a]
mov edx, dword [ebx + 0x38]
mov al, byte [edx + eax - 1]
xor byte [esi], al
mov eax, dword [ebx + 0x38]
call fcn.00404670
movzx edx, word [ebx + 0x4a]
cmp eax, edx
jne 0x45cf8a
mov word [ebx + 0x4a], 1
jmp 0x45cf8e
inc word [ebx + 0x4a]
inc esi
dec edi
jne 0x45cf65
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x464cf4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404824
xor eax, eax
push ebp
push 0x464e72
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x464e47
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 4]
call fcn.00464cb8
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 4]
call fcn.00404460
lea eax, [ebp - 0x148]
xor ecx, ecx
mov edx, 0x140
call fcn.00403238
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x464e88
mov edx, dword [ebp - 4]
call fcn.004046bc
mov eax, dword [ebp - 0x150]
call fcn.00404834
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x464e47
lea edx, [ebp - 8]
lea eax, [ebp - 0x11c]
call fcn.00409c50
test byte [ebp - 0x148], 0x10
je 0x464e06
test bl, bl
je 0x464e2c
mov eax, dword [ebp - 8]
mov edx, 0x464e98
call fcn.00404780
je 0x464e2c
mov eax, dword [ebp - 8]
mov edx, 0x464ea4
call fcn.00404780
je 0x464e2c
push dword [ebp - 4]
push 0x464eb0
push dword [ebp - 8]
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00404730
mov eax, dword [ebp - 0x154]
call fcn.00464eb4
jmp 0x464e2c
push dword [ebp - 4]
push 0x464eb0
push dword [ebp - 8]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404730
mov eax, dword [ebp - 0x158]
call fcn.0040945c
lea eax, [ebp - 0x148]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x464da5
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464e79
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.004043ec
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043ec
ret
Function at 0x464ecc
Capabilities:
Get disk information
Get disk size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x464fbc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x30]
mov dword [0x46d4b0], eax
mov eax, dword [ebp - 0x18]
mov dword [0x46d4b8], eax
xor eax, eax
mov dword [0x46d4b4], eax
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor esi, esi
mov eax, esi
cmp eax, 0x1f
ja 0x464f1e
bt edi, eax
jae 0x464f97
mov ebx, esi
add bl, 0x61
lea eax, [ebp - 0x38]
mov edx, ebx
call fcn.00404598
lea eax, [ebp - 0x38]
mov edx, 0x464fd4
call fcn.00404678
mov eax, dword [ebp - 0x38]
call fcn.00404834
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x464f97
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
mov edx, ebx
call fcn.00404598
lea eax, [ebp - 0x3c]
mov edx, 0x464fd4
call fcn.00404678
mov eax, dword [ebp - 0x3c]
call fcn.00404834
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov eax, dword [ebp - 4]
cmp eax, dword [0x46d4b4]
jbe 0x464f97
mov eax, dword [ebp - 4]
mov dword [0x46d4b4], eax
inc esi
cmp esi, 0x1a
jne 0x464f14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464fc3
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004043ec
ret

Function at 0x467de0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
and edx, edx
je 0x467dfd
jcxz 0x467dfd
push ebx
movzx ebx, al
xor bl, byte [edx]
shr eax, 8
xor eax, dword cs:[ebx*4 + 0x467dfe]
inc edx
dec ecx
jne 0x467de8
pop ebx
ret
Function at 0x401a90
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x464608
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x480250]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], 3
mov eax, dword [esi + 0x9c]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
push eax
call edi
test eax, eax
setne al
xor ebx, ebx
cmp al, bl
jne 0x401aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetEvent_failed_with_error__i
call fcn.004167d0
add esp, 8
mov ecx, dword [esi + 0xa4]
push ecx
call edi
test eax, eax
setne al
cmp al, bl
jne 0x401b14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetEvent_failed_with_error__i
call fcn.004167d0
add esp, 8
mov edx, dword [esi + 0xd4]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401b48
push str.Callback_sending_thread_not_responding__terminating_thread
call fcn.004167d0
mov eax, dword [esi + 0xd4]
add esp, 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xc8]
cmp eax, ebx
je 0x401b5b
push eax
call fcn.0044e982
add esp, 4
lea edi, [esi + 0xa8]
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
cmp byte [edi + 0x18], bl
je 0x401b82
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [edi + 0x18], bl
mov byte [esp + 0x1c], bl
mov eax, dword [esi + 0xa4]
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, vtable.CWin32Handle.0
mov dword [esi + 0xa0], edi
je 0x401bcb
cmp eax, ebx
je 0x401bcb
push eax
call ebp
test eax, eax
jne 0x401bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CXHandle::Close___:_CloseHandle_failed_with_error__i._n
call fcn.004167d0
add esp, 8
mov dword [esi + 0xa4], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
mov dword [esi + 0x98], edi
je 0x401c0d
cmp eax, ebx
je 0x401c0d
push eax
call ebp
test eax, eax
jne 0x401c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CXHandle::Close___:_CloseHandle_failed_with_error__i._n
call fcn.004167d0
add esp, 8
mov dword [esi + 0x9c], 0xffffffff
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x404730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468130
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x480250]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov edi, str.CCallbackMap::SendConnectionAddedEvent
mov dword [esp + 0x38], edi
call fcn.0044cf60
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
push eax
push str.Sending_ConnectionAddedEvent__s_
call fcn.004167d0
add esp, 8
push ebp
call fcn.00404400
lea edi, [ebp + 0x60]
test edi, edi
mov dword [esp + 0x14], edi
je 0x4047b3
cmp byte [edi + 0x18], 0
jne 0x4047ac
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [edi + 0x18], 1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x30], 1
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov esi, ebp
mov ebx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
lea esp, [esp]
test esi, esi
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], eax
je 0x4047df
cmp esi, ebp
je 0x4047e4
call fcn.0044e7bc
cmp ebx, dword [esp + 0x24]
je 0x40481e
test esi, esi
jne 0x4047f3
call fcn.0044e7bc
cmp ebx, dword [esi + 4]
jne 0x4047fd
call fcn.0044e7bc
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebx + 0x28]
push ecx
push edx
call fcn.00401db0
lea esi, [esp + 0x18]
call fcn.00406460
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x4047d0
test edi, edi
je 0x40483a
cmp byte [edi + 0x18], 0
jne 0x404833
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [edi + 0x18], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, str.CCallbackMap::SendConnectionAddedEvent
mov dword [esp + 0x30], 0xffffffff
call fcn.0044cfe0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x4049a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468130
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x480250]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov edi, str.CCallbackMap::SendConnectionModifiedEvent
mov dword [esp + 0x38], edi
call fcn.0044cf60
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
push eax
push str.Sending_ConnectionModifiedEvent__s_
call fcn.004167d0
add esp, 8
push ebp
call fcn.00404400
lea edi, [ebp + 0x60]
test edi, edi
mov dword [esp + 0x14], edi
je 0x404a23
cmp byte [edi + 0x18], 0
jne 0x404a1c
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [edi + 0x18], 1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x30], 1
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov esi, ebp
mov ebx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
lea esp, [esp]
test esi, esi
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], eax
je 0x404a4f
cmp esi, ebp
je 0x404a54
call fcn.0044e7bc
cmp ebx, dword [esp + 0x24]
je 0x404a8e
test esi, esi
jne 0x404a63
call fcn.0044e7bc
cmp ebx, dword [esi + 4]
jne 0x404a6d
call fcn.0044e7bc
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebx + 0x28]
push ecx
push edx
call fcn.00401ef0
lea esi, [esp + 0x18]
call fcn.00406460
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x404a40
test edi, edi
je 0x404aaa
cmp byte [edi + 0x18], 0
jne 0x404aa3
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [edi + 0x18], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, str.CCallbackMap::SendConnectionModifiedEvent
mov dword [esp + 0x30], 0xffffffff
call fcn.0044cfe0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x404c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4680d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x480250]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, str.CCallbackMap::SendDevicePresenceChangedEvent
mov dword [esp + 0x14], edi
call fcn.0044cf60
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0xc], al
mov dword [esp + 0x38], 0
setne al
add eax, 1
mov dword [esp + 0x10], eax
push eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
push eax
push str.Sending_DevicePresenceChanged__s___i_
call fcn.004167d0
add esp, 0xc
push ebx
call fcn.00404400
lea edi, [ebx + 0x60]
test edi, edi
mov dword [esp + 0x18], edi
je 0x404c92
cmp byte [edi + 0x18], 0
jne 0x404c8b
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [edi + 0x18], 1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x38], 1
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov esi, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
test esi, esi
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], eax
je 0x404cb5
cmp esi, ebx
je 0x404cba
call fcn.0044e7bc
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x20], ecx
je 0x404d00
test esi, esi
jne 0x404ccd
call fcn.0044e7bc
mov edx, dword [esp + 0x20]
cmp edx, dword [esi + 4]
jne 0x404cdb
call fcn.0044e7bc
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [edx + 0x28]
push ecx
push eax
call fcn.00402020
lea esi, [esp + 0x1c]
call fcn.00406460
mov esi, dword [esp + 0x1c]
jmp 0x404ca6
test edi, edi
je 0x404d1c
cmp byte [edi + 0x18], 0
jne 0x404d15
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [edi + 0x18], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, str.CCallbackMap::SendDevicePresenceChangedEvent
mov dword [esp + 0x38], 0xffffffff
call fcn.0044cfe0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8