joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4caa80
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x414
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
jmp 0x4caab0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4caab0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xe], 0x5c
mov esi, 0x6bc0cc
je 0x4caad1
mov esi, 0x6f5e84
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push eax
push esi
mov esi, dword [esp + 0x440]
lea ecx, [esp + 0x24]
push ecx
push str._s_sshmf_I64d__I64d___d.bin.tmp
lea edi, [esp + 0x234]
call fcn.004af0d0
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x1c
lea ebx, [ebx]
mov eax, dword [0x7b7240]
mov ecx, eax
push ecx
lea edx, [esp + 0x21c]
add eax, 1
push edx
mov esi, 0x104
mov edi, ebx
mov dword [0x7b7240], eax
call fcn.004af0d0
add esp, 8
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x4cab10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x414
ret 8

Function at 0x4cabe0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov eax, dword [esi + 8]
test eax, eax
push edi
mov edi, dword [esi]
je 0x4cabf1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp edi, 0xffffffff
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4cac00
push edi
call ebp
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4cac0b
push eax
call ebp
cmp byte [esi + 0x210], 0
pop ebp
je 0x4cac2b
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cac2b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov word [esi + 0x10], 0
pop edi
ret
Function at 0x4cacf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x820
call fcn.004af5a0
test al, al
jne 0x4cad2c
lea eax, [esp + 0x208]
push eax
mov dword [esp + 0x20c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [esp + 0x20c], 6
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.htmlUserChoice
setae al
test al, al
jne 0x4cad31
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.html
push esi
push edi
lea edx, [esp + 0x418]
push edx
push 0x6bc0cc
push str.Progid
mov edx, SysReAllocStringLen
call fcn.004af7e0
cmp word [esp + 0x418], 0
mov word [esp + 8], 0
je 0x4cae07
lea eax, [esp + 0x418]
push eax
push str._s_shellopen
mov esi, 0x104
lea edi, [esp + 0x218]
call fcn.004af0d0
add esp, 8
lea ecx, [esp + 0x620]
push ecx
push 0x6bc0cc
push str.PackageId
mov ecx, edi
mov edx, SysReAllocStringLen
call fcn.004af7e0
lea edx, [esp + 0x620]
push str.MicrosoftEdge
push edx
call fcn.0069c886
add esp, 8
test eax, eax
je 0x4cadcb
pop edi
mov eax, 5
pop esi
add esp, 0x820
ret
lea eax, [esp + 0x418]
push eax
push str._s_shellopencommand
lea edi, [esp + 0x218]
call fcn.004af0d0
add esp, 8
lea ecx, [esp + 8]
push ecx
push 0x6bc0cc
push 0
mov ecx, edi
mov edx, SysReAllocStringLen
call fcn.004af7e0
cmp word [esp + 8], 0
jne 0x4cae35
lea edx, [esp + 8]
push edx
push 0x6bc0cc
push 0
mov ecx, str.http_shellopencommand
mov edx, SysReAllocStringLen
call fcn.004af7e0
cmp word [esp + 8], 0
jne 0x4cae35
pop edi
xor eax, eax
pop esi
add esp, 0x820
ret
lea eax, [esp + 8]
push eax
call fcn.0069cab9
lea ecx, [esp + 0xc]
push str.iexplore.exe
push ecx
call fcn.0069c886
add esp, 0xc
test eax, eax
je 0x4cae63
pop edi
mov eax, 4
pop esi
add esp, 0x820
ret
lea edx, [esp + 8]
push str.iexplorer.exe
push edx
call fcn.0069c886
add esp, 8
test eax, eax
jne 0x4cae55
lea eax, [esp + 8]
push str.firefox.exe
push eax
call fcn.0069c886
add esp, 8
test eax, eax
je 0x4cae9d
pop edi
mov eax, 2
pop esi
add esp, 0x820
ret
lea ecx, [esp + 8]
push str.chrome.exe
push ecx
call fcn.0069c886
add esp, 8
neg eax
sbb eax, eax
and eax, 2
pop edi
add eax, 1
pop esi
add esp, 0x820
ret
Function at 0x4cbba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 1
xor edi, edi
push edi
add esi, 0x34a
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call ebx
test eax, eax
jne 0x4cbc08
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push str.HardwareInformation.qwMemorySize
push eax
mov dword [esp + 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, edi
je 0x4cbc50
lea edx, [esp + 0x14]
push edx
push 1
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
call ebx
test eax, eax
jne 0x4cbc44
lea eax, [esp + 0x10]
push eax
lea esi, [esp + 0x18]
call fcn.004af940
mov eax, dword [esp + 0x10]
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4cf280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0xc]
push ebx
push ecx
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.004cf0e0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop ebx
ret 8
Function at 0x4d6f50
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x214
push esi
push edi
xor edi, edi
cmp dword [0x735bb8], edi
je 0x4d6f6d
mov al, 1
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 5
call fcn.004d3cf0
test al, al
je 0x4d705c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x735bb8], eax
je 0x4d705c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._Save_36
push eax
call esi
mov ecx, dword [0x735bb8]
push str._Load_4
push ecx
mov dword [0x735bbc], eax
call esi
mov edx, dword [0x735bb8]
push str._GetImageSize_16
push edx
mov dword [0x735bc0], eax
call esi
mov dword [0x735bc4], eax
mov eax, dword [0x735bb8]
push str._GetImage_20
push eax
call esi
mov ecx, dword [0x735bb8]
push str._Close_4
push ecx
mov dword [0x735bc8], eax
call esi
cmp dword [0x735bbc], edi
mov dword [0x735bcc], eax
je 0x4d702b
cmp dword [0x735bc0], edi
je 0x4d702b
cmp dword [0x735bc4], edi
je 0x4d702b
cmp dword [0x735bc8], edi
je 0x4d702b
cmp eax, edi
jne 0x4d6f62
mov edx, dword [0x735bb8]
push edx
mov dword [0x735bbc], edi
mov dword [0x735bc0], edi
mov dword [0x735bc4], edi
mov dword [0x735bc8], edi
mov dword [0x735bcc], edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x735bb8], edi
pop edi
xor al, al
pop esi
add esp, 0x214
ret
Function at 0x4df9a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa
push 0x153
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4df9d5
mov dword [ebx], 2
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4df9c4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [esp + 0xc], eax
je 0x4df9c4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4df9c4
lea esi, [esp + 0x10]
call fcn.004cf210
mov eax, dword [esp + 0xc]
push 0
push eax
mov esi, edi
lea eax, [esp + 0x28]
call fcn.00499760
test al, al
jne 0x4dfa3b
lea esi, [esp + 0x10]
mov dword [ebx], 2
call fcn.004cf250
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
lea eax, [esp + 0x18]
lea edi, [esp + 0x14]
call fcn.0056c940
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
lea esi, [esp + 0x10]
mov dword [ebx], eax
call fcn.004cf250
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e2040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push edi
xor ebx, ebx
push 0x7f00
push ebx
mov dword [esi], 0x6dc138
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x15], eax
mov byte [esi + 0x19], bl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.0050e990
mov dword [esi], 0x70d850
lea ebp, [esi + 0x1a]
mov eax, 1
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [ebp], 0xffffffff
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [esi + 0x6a], 0x7d2
mov dword [esi + 0x6e], eax
mov dword [esi + 0x7e], ebx
mov dword [esi + 0x7a], ebx
mov dword [esi + 0x76], ebx
mov dword [esi + 0x72], ebx
movzx edx, byte [esi + 0x70]
movzx eax, byte [esi + 0x6f]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dl, byte [esi + 0x6e]
push eax
lea eax, [esp + 0x1c]
lea edi, [esp + 0x18]
mov dword [esi + 0x8e], ebx
mov byte [esi + 0x92], bl
mov dword [esi + 0x93], ebx
mov dword [esi + 0x97], ebx
mov dword [esi + 0x9b], 0xffffffff
call fcn.004e8640
push ecx
fld dword [esp + 0x10]
fmul dword [0x723914]
fstp dword [esp]
call fcn.00401650
call fcn.006b24a0
fld dword [esp + 0x10]
fmul dword [0x723a18]
push ecx
mov dword [esi + 0x82], eax
fstp dword [esp]
call fcn.00401650
call fcn.006b24a0
movzx ecx, byte [esp + 0x18]
mov dword [esp + 0x18], ecx
push ecx
fild dword [esp + 0x1c]
mov dword [esi + 0x86], eax
fmul dword [0x723b74]
fstp dword [esp]
call fcn.00401650
call fcn.006b24a0
push 0xa
push 0x167
push ebx
mov dword [esi + 0x8a], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x4e21c7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [esp + 0x18]
push edx
push ebp
lea ecx, [ebx + 5]
mov edi, eax
call fcn.004cf0e0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebp
mov eax, esi
pop ebx
add esp, 8
ret 4
Function at 0x4eb790
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x210
push esi
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x103
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 8]
lea esi, [esp + 4]
mov byte [esp + 4], 0
call fcn.00553600
push 0
push edi
call dword [sym.imp.USER32.dll_GetWindowWord]
cmp byte [esp + 4], al
je 0x4eb801
mov edx, dword [esp + 4]
push edx
push edi
call fcn.004eab20
push edi
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
movzx eax, ax
or eax, 0x3000000
push eax
push 0x111
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
add esp, 0x210
ret
Function at 0x4edb40
Capabilities:
Write clipboard data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4edb50
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
push edi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.006a4bd0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f04b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x24
push ebx
push ebp
push edi
push esi
call fcn.00518640
push 5
push 0x50
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [0x734df4]
push esi
mov edi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
push fcn.0051d010
push ecx
push edi
push edx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
movsx eax, word [edi + 0x10]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [esp + 0x1c]
movsx ecx, word [edi + 0xe]
lea edx, [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 4]
push edx
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov eax, esi
call fcn.004f0570
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4f1a90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
push ebx
push edi
push 0
push 0
push 0x130b
push 0x65
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
sub eax, 0
je 0x4f1bd1
sub eax, 1
je 0x4f1b49
sub eax, 1
jne 0x4f1c2e
cmp byte [esi + 0x2d], al
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x4f1ae5
mov ecx, dword [esi + 4]
push 1
push ecx
mov eax, 0x3e7
call fcn.004f6c00
jmp 0x4f1af5
mov edx, dword [esi + 4]
push 0
push 0x3e7
push edx
call ebx
push eax
call edi
cmp byte [esi + 0x2d], 0
je 0x4f1b0d
mov eax, dword [esi + 4]
push 0
push eax
mov eax, 0x3e6
call fcn.004f6c00
jmp 0x4f1b1d
mov ecx, dword [esi + 4]
push 5
push 0x3e6
push ecx
call ebx
push eax
call edi
mov eax, dword [esi + 0x7fc]
test eax, eax
jne 0x4f1b2c
mov eax, 0x6bc0cc
push 0x3e6
push esi
call fcn.00517f60
mov edx, dword [esi + 4]
push 0x3e6
push edx
call ebx
pop edi
pop ebx
jmp fcn.004f8b20
cmp byte [esi + 0x2d], 0
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x4f1b6d
mov eax, dword [esi + 4]
push 1
push eax
mov eax, 0x3e7
call fcn.004f6c00
jmp 0x4f1b7d
mov ecx, dword [esi + 4]
push 0
push 0x3e7
push ecx
call ebx
push eax
call edi
cmp byte [esi + 0x2d], 0
je 0x4f1b95
mov edx, dword [esi + 4]
push 0
push edx
mov eax, 0x3e6
call fcn.004f6c00
jmp 0x4f1ba5
mov eax, dword [esi + 4]
push 5
push 0x3e6
push eax
call ebx
push eax
call edi
mov eax, dword [esi + 0x7f0]
test eax, eax
jne 0x4f1bb4
mov eax, 0x6bc0cc
push 0x3e6
push esi
call fcn.00517f60
mov ecx, dword [esi + 4]
push 0x3e6
push ecx
call ebx
pop edi
pop ebx
jmp fcn.004f8b20
cmp byte [esi + 0x2d], 0
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x4f1bf5
mov edx, dword [esi + 4]
push 0
push edx
mov eax, 0x3e7
call fcn.004f6c00
jmp 0x4f1c05
mov eax, dword [esi + 4]
push 5
push 0x3e7
push eax
call ebx
push eax
call edi
cmp byte [esi + 0x2d], 0
je 0x4f1c1e
mov ecx, dword [esi + 4]
push 1
push ecx
mov eax, 0x3e6
call fcn.004f6c00
pop edi
pop ebx
ret
mov edx, dword [esi + 4]
push 0
push 0x3e6
push edx
call ebx
push eax
call edi
pop edi
pop ebx
ret
Function at 0x4f4f40
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x224
push ebx
mov ebx, dword [esp + 0x22c]
push esi
push edi
mov edi, ebx
call fcn.004f4d70
mov ecx, dword [ebx + 0x14]
push 0x103
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x28], 0
je 0x4f5054
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
push edx
mov edx, dword [ebx + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebx + 0x24]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x28]
mov dword [eax + 8], ecx
lea esi, [esp + 0x3c]
lea edi, [esp + 0x34]
mov dword [eax + 0xc], edx
call fcn.004f4e60
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x28]
mov ecx, eax
sub ecx, dword [ebx + 0x20]
mov dword [esp + 0x18], edx
sub ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x14]
push str.DropCommand
sar ecx, 1
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x4f4feb
mov eax, dword [0x7364e4]
sub dword [esp + 0x18], eax
mov ecx, dword [ebx + 0x14]
push 0xfffffffffffffff0
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x300
cmp eax, 0x100
je 0x4f5016
cmp eax, 0x200
mov esi, 1
jne 0x4f5016
mov esi, 2
test dword [ebx + 0x10], 0x100
je 0x4f5025
or esi, 0x100000
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f5030
mov ecx, dword [ebx + 0x18]
sub eax, edx
push esi
lea edx, [esp + 0x14]
push edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004026d0
pop edi
pop esi
pop ebx
add esp, 0x224
ret 4
Function at 0x4f6720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 5
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4f6748
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4f673c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4f673c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4f673c
lea ecx, [edi + 0x40]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4f673c
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebp
mov esi, eax
push edi
push esi
call fcn.0069d917
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
mov dword [esp + 0x14], eax
call fcn.004f64b0
mov dword [esp + 0x14], eax
call fcn.0051d200
push eax
lea edx, [esp + 0x14]
push edx
call fcn.004f65a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push fcn.0051d010
push 0
push esi
push ecx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x500f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx ecx, byte [eax + 9]
mov dl, byte [eax + 0xa]
mov byte [eax + 0x9a], cl
mov ecx, dword [eax + 0x94]
mov byte [eax + 0x9b], dl
mov edx, dword [eax + 0x80]
mov dword [eax + 0x9c], ecx
mov ecx, dword [eax + 0x84]
mov dword [eax + 0xa0], edx
mov edx, dword [eax + 0x88]
mov dword [eax + 0xa4], ecx
mov ecx, dword [eax + 0x8c]
mov dword [eax + 0xa8], edx
mov edx, dword [eax + 0x30]
mov dword [eax + 0xac], ecx
mov ecx, dword [eax + 0x34]
mov dword [eax + 0xb0], edx
mov edx, dword [eax + 0x38]
mov dword [eax + 0xb4], ecx
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0xb8], edx
mov edx, dword [eax + 0x10]
mov dword [eax + 0xbc], ecx
mov ecx, dword [eax + 0x14]
mov dword [eax + 0xc0], edx
mov edx, dword [eax + 0x18]
mov dword [eax + 0xc4], ecx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 0xc8], edx
mov dword [eax + 0xcc], ecx
mov cl, byte [eax + 0x90]
test cl, cl
mov byte [eax + 0x99], cl
je 0x500fdc
mov edx, dword [eax + 0x70]
mov dword [eax + 0xd0], edx
mov edx, dword [eax + 0x74]
mov dword [eax + 0xd4], edx
mov edx, dword [eax + 0x78]
mov dword [eax + 0xd8], edx
mov edx, dword [eax + 0x7c]
mov dword [eax + 0xdc], edx
ret
mov edx, dword [eax + 0x80]
mov dword [eax + 0xd0], edx
mov edx, dword [eax + 0x84]
mov dword [eax + 0xd4], edx
mov edx, dword [eax + 0x88]
mov dword [eax + 0xd8], edx
mov edx, dword [eax + 0x8c]
mov dword [eax + 0xdc], edx
ret
Function at 0x506750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
mov dword [esp + 0x10], edi
je 0x506773
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [ebp + 8]
push 0xa
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x506875
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x506838
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x506838
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x506838
lea esi, [esp + 0x28]
call fcn.004cf210
push 0
push ebx
mov esi, edi
lea eax, [esp + 0x40]
call fcn.00499760
test al, al
je 0x50682f
lea ecx, [esp + 0x50]
call fcn.004d0af0
lea eax, [esp + 0x28]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x50]
push edx
lea eax, [esp + 0x10]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x1c]
xor esi, esi
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], 0x6dbbf0
call fcn.005bac60
cmp dword [esp + 0x14], esi
je 0x506843
mov dword [esp + 0xc], 0x70c5e4
lea ecx, [esp + 0x50]
call fcn.004d0c50
lea esi, [esp + 0x28]
call fcn.004cf250
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x54]
call fcn.00506360
test al, al
mov dword [esp + 0xc], 0x70c5e4
lea ecx, [esp + 0x50]
je 0x50682a
call fcn.004d0c50
lea esi, [esp + 0x28]
call fcn.004cf250
mov edi, dword [esp + 0x10]
jmp 0x506890
mov eax, dword [0x734df4]
push 0x2000
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [edi + 4], eax
cmp dword [edi + 4], 0
je 0x506838
push edi
call fcn.00506f10
xor eax, eax
cmp dword [edi + 4], eax
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4