joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0820
Capabilities:
Get disk information

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov ebx, ecx
je 0x4a0899
cmp byte [ebp], 0x72
jne 0x4a0899
mov al, byte [edi]
cmp al, 0x41
jl 0x4a0844
cmp al, 0x5a
jg 0x4a0844
add al, 0x20
cmp al, 0x61
jl 0x4a088e
cmp al, 0x7a
jg 0x4a088e
add al, 0x9f
movsx esi, al
cmp word [esi*2 + 0x6b85b8], 0xffff
jne 0x4a0884
add al, 0x61
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov word [esi*2 + 0x6b85b8], ax
movsx eax, word [esi*2 + 0x6b85b8]
jmp 0x4a0890
xor eax, eax
cmp eax, 4
sete cl
mov byte [ebx + 9], cl
push ebp
lea ecx, [esp + 0x1c]
call fcn.004a03e0
mov eax, dword [eax]
test eax, eax
je 0x4a08ae
lea esi, [eax + 4]
jmp 0x4a08b0
xor esi, esi
push edi
lea ecx, [esp + 0x18]
call fcn.004a03e0
mov eax, dword [eax]
test eax, eax
je 0x4a08c5
add eax, 4
jmp 0x4a08c7
xor eax, eax
push esi
push eax
call fcn.0061713d
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4a0935
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x4a0935
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x4a0924
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x4a091f
push esi
call ebp
and eax, 0xff
jmp 0x4a0924
mov eax, 0xff
test eax, eax
jne 0x4a0935
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x14], 0
je 0x4a0992
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x4a0992
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x4a0981
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x4a097c
push esi
call ebp
and eax, 0xff
jmp 0x4a0981
mov eax, 0xff
test eax, eax
jne 0x4a0992
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00499410
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x4a09ab
push 0x2000
push 0
push 0
push eax
call fcn.00489836
add esp, 0x10
mov eax, dword [ebx + 4]
test eax, eax
je 0x4a09be
pop edi
pop esi
xor eax, eax
pop ebp
mov dword [ebx + 0xc], eax
pop ebx
ret 8
call fcn.00489245
mov edx, dword [eax]
push edx
call fcn.004a09e0
add esp, 4
pop edi
pop esi
pop ebp
mov dword [ebx + 0xc], eax
pop ebx
ret 8

Function at 0x4a0e00
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.00499750
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4a0e2d
mov eax, dword [ebx + 0x10]
pop edi
pop esi
pop ebx
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4a0e42
pop edi
pop esi
pop ebx
ret 4
push 0
push edi
mov ecx, esi
call fcn.00499780
test eax, eax
jne 0x4a0e5d
mov esi, dword [esi + 4]
push eax
push edi
push esi
mov ecx, ebx
call fcn.004a0ff0
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a0ef0
Capabilities:
Get file size

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4a0efd
mov eax, dword [ecx + 0x10]
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ecx, dword [esp + 4]
mov dword [ecx], eax
jne 0x4a0f23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a0c10
add esp, 4
ret 4
xor eax, eax
ret 4

Function at 0x4a0f30
Capabilities:
Get file size

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4a0f3d
mov eax, dword [ecx + 0x10]
ret 4
mov ecx, dword [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4a0f52
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a0c10
add esp, 4
ret 4

Function at 0x4a0ff0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x4a1032
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x4a1003
lea ecx, [esp + 8]
mov edx, dword [esp + 4]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1020
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a0c10
add esp, 4
ret 0xc
mov eax, dword [ecx + 0x10]
ret 0xc

Function at 0x4a1040
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x4a107a
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a1068
xor eax, eax
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a0c10
add esp, 4
ret 8
mov eax, dword [ecx + 0x10]
ret 8

Function at 0x4a1080
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x4a10bd
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
push esi
push 0
lea esi, [esp + 0xc]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
je 0x4a10ab
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a0c10
add esp, 4
ret 4
mov eax, dword [ecx + 0x10]
ret 4
Function at 0x4a10d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 8], eax
je 0x4a1109
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea edx, [esp + 0xc]
push edx
push ecx
push 0xffffffffffffffff
push ecx
push 2
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_LockFileEx]
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push 0
lea edx, [esp + 8]
push edx
push ecx
push eax
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a1145
xor esi, esi
jmp 0x4a1156
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a0c10
add esp, 4
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x4a1170
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xffffffffffffffff
push 0
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
mov eax, esi
pop esi
add esp, 0x1c
ret 4

Function at 0x4a1360
Capabilities:
Create thread

Disassembly:
mov al, byte [esp + 4]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1c]
push edi
mov byte [esi + 0x34], al
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 0x10]
push ecx
push 0
push esi
push 0x4a12b0
push 0
push 0
call fcn.00617150
add esp, 0x18
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x4a13f0
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4a1468
push 0
lea eax, [edi + 0xc]
push eax
mov byte [edi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, eax
test esi, esi
je 0x4a1468
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4a141c
or eax, 0xffffffff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
push esi
jne 0x4a145e
push str.Killing_thread__x_n
call fcn.005a2410
add esp, 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
mov byte [edi + 4], 0
pop edi
mov eax, 0xf4242
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [edi + 4], 0
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x4a4ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov esi, ecx
je 0x4a50f1
mov dl, byte [edi]
test dl, dl
je 0x4a50f1
mov eax, dword [esi + 0x820]
test eax, eax
je 0x4a505b
mov ecx, dword [eax]
shr ecx, 8
test ecx, ecx
je 0x4a505b
test eax, eax
je 0x4a5026
add eax, 4
jmp 0x4a5028
xor eax, eax
cmp byte [eax], 0
je 0x4a505b
cmp dl, 0x2e
lea ecx, [edi + 1]
je 0x4a5037
mov ecx, edi
mov eax, dword [esi + 0x820]
test eax, eax
je 0x4a5046
add eax, 4
jmp 0x4a5048
xor eax, eax
push ecx
inc eax
push eax
call fcn.00488780
add esp, 8
test eax, eax
je 0x4a5142
cmp byte [edi], 0
je 0x4a50f1
mov byte [esi + 0x828], 0x2e
cmp byte [edi], 0x2e
lea ecx, [edi + 1]
je 0x4a5075
mov ecx, edi
lea edx, [esi + 0x829]
nop
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4a5080
or ecx, 0xffffffff
xor eax, eax
lea edi, [esi + 0x828]
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x820]
not ecx
dec ecx
cmp ecx, 0x200
jb 0x4a50d0
mov ecx, dword [eax]
and ecx, 0xff
or ecx, 0x20000
mov dword [eax], ecx
mov byte [eax], 0x80
mov ecx, esi
mov byte [esi + 0xa27], 0
call fcn.004a5540
pop edi
mov al, 1
pop esi
ret 4
mov edx, dword [eax]
inc ecx
shl ecx, 8
and edx, 0xff
xor ecx, edx
mov dword [eax], ecx
mov ecx, esi
mov byte [eax], 0x80
call fcn.004a5540
pop edi
mov al, 1
pop esi
ret 4
mov eax, dword [esi + 0x820]
test eax, eax
je 0x4a5142
mov ecx, dword [eax]
shr ecx, 8
test ecx, ecx
je 0x4a5142
test eax, eax
je 0x4a510d
add eax, 4
jmp 0x4a510f
xor eax, eax
cmp byte [eax], 0
je 0x4a5142
mov eax, dword [esi + 0x820]
mov ecx, dword [eax]
and ecx, 0xff
or ecx, 0x100
mov dword [eax], ecx
mov byte [eax], 0x80
mov ecx, esi
mov byte [esi + 0x828], 0
call fcn.004a5540
pop edi
mov al, 1
pop esi
ret 4
pop edi
xor al, al
pop esi
ret 4

Function at 0x4a63e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x14]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [0x661d28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x10]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
mov ecx, ebx
call fcn.004a4d20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x4b5650
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push esi
push 0
push 0x80
push 3
push 0
push 3
push pe_nt_image_headers32
push eax
call dword [0x6b9500]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b567f
or eax, eax
pop esi
add esp, 0x20
ret
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
call fcn.004a6f60
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov al, byte [esp + 0x34]
neg al
lea ecx, [esp + 4]
lea edx, [esp + 4]
sbb eax, eax
and eax, ecx
push eax
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x20
ret
Function at 0x4bc1f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x824
push ebx
mov ebx, dword [esp + 0x82c]
test ebx, ebx
push esi
push edi
mov esi, ecx
je 0x4bc40a
mov al, byte [ebx]
test al, al
je 0x4bc40a
cmp al, 0x5c
je 0x4bc3f5
call fcn.004cc620
test al, al
jne 0x4bc3f5
push ebx
call fcn.004bc1a0
add esp, 4
test al, al
je 0x4bc3f5
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
cmp eax, 0x208
jge 0x4bc3f5
push 0x104
lea eax, [esp + 0x424]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0x104
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x428]
push edx
call edi
test eax, eax
je 0x4bc2d7
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push eax
push 0
push 0
call ebx
mov edi, eax
push 0
jmp 0x4bc36b
xor eax, eax
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
call ebx
pop edi
pop esi
pop ebx
add esp, 0x824
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jne 0x4bc39b
mov al, byte [esp + 0x838]
test al, al
je 0x4bc39b
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea edx, [esp + 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4bc327
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x428]
push ecx
call edi
test eax, eax
je 0x4bc39b
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push eax
push 0
push 0
mov dword [esp + 0x2c], 0
call ebx
mov edi, eax
mov eax, dword [esp + 0xc]
test eax, eax
push 0
jne 0x4bc38c
push edi
mov ecx, esi
call fcn.0049d1f0
mov ecx, esi
call fcn.0049d350
mov esi, dword [esi]
test esi, esi
je 0x4bc2b6
lea eax, [esi + 4]
jmp 0x4bc2b8
push 0
push str.badfilename
call fcn.004c9a80
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x434]
push edx
push 0
push 0
call ebx
mov edi, eax
push 0
push edi
mov ecx, esi
call fcn.0049d1f0
mov ecx, esi
call fcn.0049d350
mov esi, dword [esi]
test esi, esi
je 0x4bc3d1
lea eax, [esi + 4]
jmp 0x4bc3d3
xor eax, eax
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x434]
push eax
push 0
push 0
call ebx
pop edi
pop esi
pop ebx
add esp, 0x824
ret 8
or ecx, 0xffffffff
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, esi
push ebx
call fcn.0049d9d0
pop edi
pop esi
pop ebx
add esp, 0x824
ret 8
Function at 0x4cc640
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
call fcn.004cc630
test al, al
je 0x4cc68c
push edi
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x4cc68c
cmp dword [esp + 0x10], 2
jne 0x4cc68c
cmp dword [esp + 4], 6
jb 0x4cc68c
mov al, 1
add esp, 0x94
ret
xor al, al
add esp, 0x94
ret

Function at 0x4cd2a0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
jne 0x4cd2b1
pop edi
or eax, 0xffffffff
pop esi
ret 4
mov ecx, esi
call fcn.004cd330
test eax, eax
jne 0x4cd2ee
mov edi, dword [esp + 0xc]
test edi, edi
mov eax, edi
jne 0x4cd2cb
mov eax, 0x6b6e10
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x4cd2ee
test edi, edi
je 0x4cd2ec
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4cd2ee
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
ret 4

Function at 0x4cd300
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4cd31a
add eax, 4
push eax
mov eax, dword [ecx]
push 0x6b6e10
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
ret
xor eax, eax
push eax
mov eax, dword [ecx]
push 0x6b6e10
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
ret
Function at 0x4d64c0
Capabilities:
Download url
Receive data

Disassembly:
push ecx
call fcn.004cc620
test al, al
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
je 0x4d650f
test eax, eax
lea ecx, [eax + 4]
jne 0x4d64dc
mov ecx, 0x6b6e10
mov edx, dword [esp + 8]
mov eax, dword [edx]
test eax, eax
je 0x4d64eb
add eax, 4
jmp 0x4d64f0
mov eax, 0x6b6e10
mov edx, dword [esp + 0x10]
push edx
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x4d6640
mov eax, 4
pop ecx
ret
test eax, eax
je 0x4d6518
add eax, 4
jmp 0x4d651a
xor eax, eax
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.004a03e0
mov eax, dword [eax]
test eax, eax
je 0x4d6533
lea esi, [eax + 4]
jmp 0x4d6535
xor esi, esi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
test eax, eax
je 0x4d6544
add eax, 4
jmp 0x4d6546
xor eax, eax
push eax
lea ecx, [esp + 0x20]
call fcn.004a03e0
mov eax, dword [eax]
test eax, eax
je 0x4d655b
add eax, 4
jmp 0x4d655d
xor eax, eax
mov edx, dword [esp + 0x20]
push edx
push 0
push esi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d65d2
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4d65d2
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x4d65c1
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4d65bc
push esi
call ebx
and eax, 0xff
jmp 0x4d65c1
mov eax, 0xff
test eax, eax
jne 0x4d65d2
mov eax, dword [esp + 0x1c]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x1c], 0
je 0x4d6631
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4d6631
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x4d6620
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4d661b
push esi
call ebx
and eax, 0xff
jmp 0x4d6620
mov eax, 0xff
test eax, eax
jne 0x4d6631
mov eax, dword [esp + 0x10]
push eax
call fcn.00499410
add esp, 4
pop edi
pop esi
test ebp, ebp
pop ebp
pop ebx
je 0x4d6640
mov eax, 4
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x4d9980
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x4d99b0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp]
add esp, 8
ret

Function at 0x4dd370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x1a4]
shr eax, 1
xor ebx, ebx
cmp eax, ebx
je 0x4dd4d2
push ebp
xor ebp, ebp
cmp eax, ebx
jbe 0x4dd4d1
push esi
mov eax, dword [edi + 0x1a0]
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x3f800000
mov byte [esp + 0x58], 1
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], ebx
mov esi, vtable.ytUIEvent.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x78], bl
mov byte [esp + 0x79], bl
mov byte [esp + 0x70], bl
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 0x17
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [edx + 0xc]
mov eax, dword [esp + 0x74]
cmp eax, ebx
mov dword [esp + 0x14], esi
je 0x4dd4bb
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4dd4bb
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4dd4aa
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4dd4a5
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4dd4aa
mov eax, 0xff
cmp eax, ebx
jne 0x4dd4bb
mov eax, dword [esp + 0x74]
push eax
call fcn.00499410
add esp, 4
mov ecx, dword [edi + 0x1a4]
inc ebp
shr ecx, 1
cmp ebp, ecx
mov dword [esp + 0x74], ebx
jb 0x4dd395
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x6c
ret
Function at 0x4e0185
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1a4]
xor ebx, ebx
xor ebp, ebp
test eax, 0xfffffffe
push edi
jbe 0x4e02f5
mov edi, edi
mov eax, dword [esp + 0x80]
mov ecx, dword [esi + 0x1a0]
mov dword [esp + 0x24], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x38], 0x3f800000
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x3f800000
mov byte [esp + 0x5c], 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], ebx
mov edi, vtable.ytUIEvent.0
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0
mov byte [esp + 0x7c], bl
mov byte [esp + 0x7d], bl
mov byte [esp + 0x74], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], 0x1d
mov dword [esp + 0x14], ebx
mov ecx, dword [ecx + ebp*4]
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
push esi
call dword [edx + 0xc]
cmp eax, 0xf4240
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], edi
je 0x4e0326
cmp eax, ebx
je 0x4e02e0
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x4e02e0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e02cf
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e02ca
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e02cf
mov eax, 0xff
cmp eax, ebx
jne 0x4e02e0
mov eax, dword [esp + 0x74]
push eax
call fcn.00499410
add esp, 4
mov ecx, dword [esi + 0x1a4]
inc ebp
shr ecx, 1
cmp ebp, ecx
mov dword [esp + 0x74], ebx
jb 0x4e01a0
cmp byte [esi + 0x213], bl
jne 0x4e038b
mov ecx, dword [esi + 0x244]
cmp ecx, ebx
je 0x4e038b
mov eax, dword [esp + 0x80]
mov edx, dword [ecx]
push eax
call dword [edx + 0x70]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4
cmp eax, ebx
je 0x4e037f
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x4e037f
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e036e
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x4e0369
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e036e
mov eax, 0xff
cmp eax, ebx
jne 0x4e037f
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00499410
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret 4
mov ecx, esi
call fcn.004db4d0
cmp eax, ebx
je 0x4e03af
mov ecx, dword [esp + 0x80]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x6c
ret 4