joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456523
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x456560
cmp byte [ebp + 8], 0
je 0x456560
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.0045558e
push esi
push 0
push 0x4565f1
call fcn.0042560d
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
jmp 0x456568
push dword [ebp + 8]
call fcn.00455760
pop esi
pop ebp
ret 4

Function at 0x45ae8f
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov ebx, eax
imul ebx, dword [ebp + 0x14]
lea eax, [esi + eax*4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
or edx, 0xffffffff
shl ebx, 2
shl eax, 2
push edi
mov dword [ebp + 0xc], eax
mov edi, esi
movzx eax, byte [esi + 2]
movzx ecx, dl
xor ecx, eax
movzx eax, byte [esi + 1]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c0b70]
movzx ecx, dl
xor ecx, eax
movzx eax, byte [esi]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c0b70]
add esi, ebx
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4c0b70]
cmp esi, dword [ebp + 8]
jb 0x45af04
add edi, dword [ebp + 0xc]
mov esi, edi
cmp edi, dword [ebp + 0x10]
jb 0x45aec0
not edx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
pop edi
shr edx, 0x1f
pop esi
addsd xmm0, qword [edx*8 + 0x4b7590]
pop ebx
pop ebp
ret 0x10
Function at 0x45af26
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [esi + 8]
mov edx, dword [esi]
mov edi, dword [esi + 4]
cmp eax, edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0xc]
setl bl
cmp ecx, edi
setl bh
mov byte [ebp - 1], bl
mov byte [ebp + 0xf], bh
test bl, bl
je 0x45af59
mov dword [esi], eax
mov dword [esi + 8], edx
test bh, bh
je 0x45af63
mov dword [esi + 4], ecx
mov dword [esi + 0xc], edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x108]
call fcn.004577c3
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add dword [esi + 8], ecx
add dword [esi + 0xc], eax
add dword [esi], ecx
add dword [esi + 4], eax
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
sub edi, dword [esi]
sub ebx, dword [esi + 4]
inc edi
inc ebx
push 0
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp - 8]
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dh, byte [ebp + 0xf]
mov dword [ebp - 0x14], eax
mov ecx, ebx
test dh, dh
je 0x45afd4
neg ecx
mov dl, byte [ebp - 1]
mov eax, edi
test dl, dl
je 0x45afdf
neg eax
test dh, dh
je 0x45afe8
mov ebx, dword [esi + 0xc]
jmp 0x45afeb
mov ebx, dword [esi + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 0xc]
test dl, dl
je 0x45affa
mov edx, dword [esi + 8]
jmp 0x45affc
mov edx, dword [esi]
mov esi, dword [ebp - 0x10]
push 0xcc0020
push ecx
push eax
push dword [ebp + 0xc]
push edx
push dword [ebp - 8]
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, ebx
neg eax
mov dword [ebp - 0x40], eax
push 0x20
xor eax, eax
inc eax
xor ecx, ecx
mov word [ebp - 0x3c], ax
pop eax
push ecx
mov word [ebp - 0x3a], ax
lea eax, [ebp - 0x48]
push eax
push ecx
push ecx
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x48], 0x28
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], ecx
call esi
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x10]
push ecx
mov dword [eax], ecx
call fcn.00420bca
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x48]
push eax
push edi
push ebx
mov ebx, dword [ebp - 0x10]
push 0
push dword [ebp + 8]
push ebx
call esi
push dword [ebp - 0x14]
mov esi, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x45b0a5
mov eax, edi
jmp 0x45b0ae
push edi
call fcn.00420c3e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45b981
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 2
pop eax
mov word [edi], ax
lea eax, [ebp - 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0045bae9
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00406e3b
cmp ebx, 0xffffffff
jne 0x45b9cf
mov ecx, dword [ebp + 0xc]
mov edx, str.255.255.255.255
call fcn.0043e083
test al, al
je 0x45b9cf
push 0
push 1
jmp 0x45b9f2
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ebx
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x45b9ee
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [edi + 2], ax
mov al, 1
jmp 0x45ba00
push 0
push 2
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.0044e3f6
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4649ac
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
mov esi, ecx
xor ecx, ecx
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x228]
push eax
push ecx
mov ebx, edx
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x464aab
mov eax, ebx
or eax, 0x20019
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 8]
push ecx
push eax
push 0
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x464ac0
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.004649ac
push dword [ebp - 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x464ac0
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.00464803
test al, al
lea eax, [ebp - 0x228]
je 0x464a5d
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.00463737
call eax
jmp 0x464a68
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x464ab1
cmp dword [ebp - 0x18], eax
je 0x464a7a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ecx, ecx
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x228]
push eax
push ecx
push esi
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov eax, dword [ebp - 0x1c]
jne 0x4649f6
mov al, 1
pop esi
pop ebx
leave
ret
cmp dword [ebp - 0x18], 0
je 0x464ac0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x464aad
Function at 0x46beab
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ecx, 0x4c2810
call fcn.00409358
test al, al
jne 0x46bed4
xor eax, eax
jmp 0x46c0ae
mov ecx, dword [ebp - 4]
mov eax, dword [0x4c2870]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [0x4c2884]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp + 0xc]
mov edi, dword [eax]
mov esi, dword [edi]
mov bl, byte [edi + 0x90]
mov dword [ebp - 8], esi
mov byte [ebp + 0xb], bl
call fcn.00418945
cmp dword [edi + 0x48], 0
jl 0x46bf15
push dword [edi + 0x48]
call fcn.0046dc9e
movzx eax, bl
mov ebx, dword [ebp + 0xc]
cmp eax, 0x12
jg 0x46bff9
je 0x46bfb6
test eax, eax
je 0x46bfa6
jle 0x46becd
cmp eax, 4
jle 0x46c03f
cmp eax, 8
je 0x46bf86
cmp eax, 0x10
je 0x46bf70
cmp eax, 0x11
jne 0x46becd
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x46becd
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00418320
push 1
push 0
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x46c097
cmp dword [ebp + 0xc], 0
jl 0x46becd
push dword [ebp + 0xc]
push 0
push 0x111d
jmp 0x46bf9a
cmp dword [ebp + 0xc], 0
jl 0x46becd
push dword [ebp + 0xc]
push 0
push 0x2001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x46c097
mov eax, dword [ebp + 0xc]
test eax, eax
jns 0x46c061
jmp 0x46becd
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jl 0x46becd
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00418320
test byte [edi + 0x92], 0x20
jne 0x46c097
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi]
call esi
push 5
push dword [edi]
call esi
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x46c097
cmp eax, 0x13
je 0x46c04c
cmp eax, 0x14
je 0x46bf48
cmp eax, 0x17
je 0x46c03f
cmp eax, 0x18
je 0x46c021
jle 0x46becd
cmp eax, 0x1b
jle 0x46c03f
jmp 0x46becd
test ebx, ebx
js 0x46becd
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push ebx
mov dword [edi + 0x48], ebx
call fcn.00418320
jmp 0x46c08c
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xfffffffe
je 0x46becd
mov eax, 0xfe000000
cmp ebx, eax
jne 0x46c06e
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00418320
jmp 0x46c097
push ebx
push 0
push 0x1001
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push ebx
push 0
push 0x1026
push dword [ebp - 8]
call esi
push 1
push edi
push dword [ebp - 4]
call fcn.0046eb34
cmp dword [0x4c20ec], 0
je 0x46c0ab
cmp byte [ebp + 0xb], 8
jne 0x46c0ab
or eax, 0xffffffff
jmp 0x46c0ae
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x46d857
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov ecx, 0x4c2810
call fcn.00409358
test al, al
jne 0x46d881
xor eax, eax
jmp 0x46d9b4
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x4c2870]
push ebx
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, dword [0x4c2884]
push esi
mov eax, dword [eax + ecx*4]
mov esi, dword [ebp + 0xc]
mov ecx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [eax]
mov ebx, dword [edi]
cmp esi, 0xffffffff
je 0x46d91c
movzx eax, byte [edi + 0x90]
dec eax
dec eax
je 0x46d8e8
dec eax
je 0x46d8eb
sub eax, 3
je 0x46d8e3
dec eax
je 0x46d8de
sub eax, 3
je 0x46d8d6
sub eax, 0xc
jne 0x46d909
jmp 0x46d9b1
or esi, 0x4000000
jmp 0x46d909
or esi, 3
jmp 0x46d909
or esi, 0xe
jmp 0x46d909
or esi, 4
push 0
test esi, 0x800
je 0x46d8f9
push 1
jmp 0x46d901
or esi, 0x10000
push 0
push 0xcf
push ebx
call ecx
or esi, 0x50000000
push esi
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x46d959
push esi
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [0x4c2884]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
cmp byte [eax + 0x90], 0x13
jne 0x46d959
push esi
push 0
push 0x1036
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], eax
mov al, byte [edi + 0x93]
mov ecx, dword [ebp + 8]
cmp al, 0xff
je 0x46d97c
movzx eax, al
cmp eax, dword [ecx + 0x190]
je 0x46d97c
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46d985
push 1
push edi
push ecx
call fcn.0046eb34
mov al, byte [edi + 0x90]
cmp al, 2
je 0x46d998
cmp al, 3
je 0x46d998
cmp esi, 0xffffffff
je 0x46d9a9
push 0x27
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
cmp dword [ebp - 4], eax
setne al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x46ee84
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44
push 0
mov ebx, 0x4c4ee0
push ebx
call fcn.00422430
push 0x10
push 0
mov esi, 0x4c4f24
push esi
call fcn.00422430
add esp, 0x18
xor eax, eax
push esi
push ebx
inc eax
mov dword [0x4c4f0c], eax
mov word [0x4c4f10], ax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4c4ee0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
pop ebx
test eax, eax
je 0x46eee9
push dword [0x4c4f24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4

Function at 0x46eeed
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, dword [ebx + 4]
push edi
push 3
mov edi, ecx
mov dword [ebp + 8], edx
pop esi
cmp dword [ebx + 0x190], eax
je 0x46efa3
cmp dword [edi + 0x84], esi
jl 0x46ef9d
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x46ef8e
cmp dword [ecx + 4], edx
jne 0x46ef8e
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0x46ef8b
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [ebx + 0x190]
je 0x46ef5d
cmp byte [ebx + 0x198], 0
je 0x46ef8b
cmp dh, 0xff
je 0x46ef8b
cmp dl, 0xa
je 0x46ef8b
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x46ef8b
cmp byte [eax + 0x90], 0x1a
jne 0x46ef8b
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [edi + 0x84]
jle 0x46ef1d
mov eax, dword [ebp + 0xc]
push 3
pop esi
mov dword [ebx + 0x190], eax
cmp dword [edi + 0x84], esi
jl 0x46f030
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x46f021
cmp dword [ecx + 4], edx
jne 0x46f021
cmp byte [ecx + 0x90], 0xb
je 0x46f021
movzx eax, byte [ecx + 0x93]
cmp eax, dword [ebx + 0x190]
jne 0x46f021
test byte [ecx + 0x92], 0x20
jne 0x46f021
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x46f021
cmp byte [eax + 0x90], 0x1a
jne 0x46f021
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [edi + 0x84]
jle 0x46efaf
mov eax, dword [ebp + 0xc]
push 0
push eax
push 0x130c
push dword [ebx + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x46f287
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x46f3a1
push edi
push edi
push 3
push edi
push edi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46f2be
xor eax, eax
jmp 0x46f3d0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x46f2e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46f2b7
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x46f2b7
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
push eax
push 0x48e9bc
xor edi, edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x46f2b7
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [edx], edi
jne 0x46f37d
cmp dword [ecx], edi
jne 0x46f37d
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0x2000
push dword [ecx]
push dword [edx]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x46f3a6
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x46f3bb
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x46fd0e
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x4c2810
push edi
mov ecx, esi
call fcn.004187bf
mov ecx, dword [0x4c2870]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
cmp dword [ebp + 0xc], edi
jne 0x46fd65
xor esi, esi
cmp dword [ebx + 0x1a0], esi
je 0x46fdc9
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push esi
push dword [ebx + 0x1a0]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x46fde3
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004187f6
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x46fdc9
mov ecx, dword [0x4c2884]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
mov cl, byte [eax + 0x90]
cmp cl, 0xe
je 0x46fdc9
cmp cl, 0xf
je 0x46fdc9
cmp cl, 0x13
je 0x46fdc9
cmp cl, 0x10
je 0x46fdc9
xor esi, esi
cmp dword [eax + 0xc], esi
je 0x46fdc9
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4c2884]
mov ecx, dword [ebp + 8]
push esi
push dword [ebx]
mov eax, dword [eax + ecx*4]
push dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 8]
push esi
push dword [eax + 0xc]
jmp 0x46fd5d
movzx ecx, word [ebp + 0x14]
movzx eax, word [ebp + 0x10]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 0xc]
push 0x7b
push edi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10007980
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10066275], 1
push ebx
push esi
push edi
mov edi, ecx
jne 0x100079f0
cmp dword [0x10072db4], 0
je 0x100079f0
push dword [0x10067c6c]
call dword [0x10067c70]
add esp, 4
cmp dword [0x10067c6c], 2
jne 0x100079c9
mov dword [0x10067c6c], 3
cmp eax, 0x4d2
jne 0x100079d8
cmp edx, 0x1100001
je 0x100079f0
mov dword [edi], eax
mov eax, edi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10067b64]
test ecx, ecx
jne 0x10007b63
push ecx
push 0x80
push 3
push ecx
push 1
push 0x80000000
push 0x100668a0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007a66
push str.ISteamUser::GetSteamID_____Reading_SteamID_from_ticket_file__r_n
call fcn.100020e0
add esp, 4
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10007a93
push str.ISteamUser::GetSteamID_____Unable_to_get_ticket_size__r_n
call fcn.100020e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0x4d2
mov ecx, dword [ebp - 4]
mov byte [ebp - 9], 1
xor ecx, ebp
mov eax, dword [ebp - 0xc]
and eax, 0xff100001
or eax, 0x100001
mov dword [edi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10]
push esi
call fcn.1002c1cf
add esp, 4
mov dword [ebp - 0x18], eax
push esi
mov esi, eax
push 0
push esi
call fcn.1002d740
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007af4
push str.ISteamUser::GetSteamID_____Unable_to_read_ticket_file__r_n
call fcn.100020e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002bc75
add esp, 4
jmp 0x10007a66
cmp dword [ebp - 0x14], 0x30
jae 0x10007b02
push str.ISteamUser::GetSteamID_____Ticket_struct_is_too_big__r_n
nop
jmp 0x10007ad1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
jne 0x10007b2d
push str.ISteamUser::GetSteamID_____Ticket_length_is_0__r_n
call fcn.100020e0
add esp, 4
push esi
call fcn.1002bc75
add esp, 4
jmp 0x10007a66
mov eax, dword [esi + 8]
test eax, eax
jne 0x10007b4f
push str.ISteamUser::GetSteamID_____SteamID_is_0__r_n
call fcn.100020e0
add esp, 4
push esi
call fcn.1002bc75
add esp, 4
jmp 0x10007a66
push esi
mov dword [0x10067b64], eax
call fcn.1002bc75
mov ecx, dword [0x10067b64]
add esp, 4
mov dword [edi], ecx
jmp 0x10007a6c