joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ae9f
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x206c
call fcn.0052d050
mov eax, dword [ebp + 8]
or dword [eax], 0xffffffff
push ebx
push esi
push edi
push 0x44
lea esi, [eax + 4]
or dword [esi], 0xffffffff
add eax, 8
or dword [eax], 0xffffffff
pop edi
push edi
mov dword [ebp - 0xc], eax
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.005251f0
add esp, 0xc
push 0xfffffffffffffff4
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x40], 0x101
mov word [ebp - 0x3c], bx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x45af23
xor al, al
jmp 0x45aff0
push 2
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
push eax
push dword [ebp - 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp - 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call edi
test eax, eax
je 0x45af1c
push 2
push 0
push 0
push dword [ebp - 0xc]
call esi
push eax
push dword [ebp - 4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp - 4]
call ebx
mov edx, dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x1000
lea esi, [ebp - 0x206c]
stosd dword es:[edi], eax
call fcn.0044b0f6
lea eax, [ebp - 0x28]
push eax
xor esi, esi
lea eax, [ebp - 0x6c]
push eax
push esi
push esi
push 0x10
push 1
push esi
push esi
lea eax, [ebp - 0x206c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x34]
mov edi, eax
call ebx
push dword [ebp - 0x30]
call ebx
cmp edi, esi
je 0x45af1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 0x24]
call ebx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x45b154
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push 1
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x45b216
push 2
push 0x400
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x45b216
push esi
push 1
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 1
lea eax, [ebp - 8]
push eax
push esi
mov byte [ebp - 8], bl
mov byte [ebp - 7], bl
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov byte [ebp - 4], bl
mov byte [ebp - 3], 1
call dword [sym.imp.ADVAPI32.dll_InitializeSid]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push esi
push 0x10000000
mov dword [eax], ebx
push 2
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x45b20e
push ebx
lea eax, [ebp - 0x428]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x45b20e
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
lea eax, [ebp - 0x14]
push eax
push 0xbb8
mov eax, 0x10000
push eax
push eax
mov eax, dword [ebp + 8]
push 0xff
push ebx
push 0x40000003
add eax, 0x29
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
pop ebx
leave
ret 4

Function at 0x45b243
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esi + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push 4
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45b268
and dword [ebx], 0
jmp 0x45b2a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x45b2a2
push 0xbb8
push ecx
mov ecx, dword [esi + 4]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [edi]
lea ecx, [ebp + 8]
push ecx
mov ecx, edi
call dword [eax + 8]
cmp dword [ebp + 8], 0
je 0x45b29b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [ebp + 8]
mov dword [ebx], eax
jmp 0x45b2a8
mov dword [ebx], 2
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x45b2af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 4
pop ebx
lea edi, [esi + 8]
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45b30d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x45b31b
push 0xffffffffffffffff
push ecx
mov ecx, dword [esi + 4]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
lea edx, [ebp - 8]
push edx
call dword [eax + 8]
cmp dword [ebp - 8], 0
jne 0x45b326
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x45b31b
mov eax, dword [ebp - 4]
cmp eax, ebx
jae 0x45b338
add dword [ebp + 0x10], eax
sub ebx, eax
jmp 0x45b2bc
mov eax, dword [ebp + 8]
mov dword [eax], 2
jmp 0x45b33e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x45b33e
mov eax, dword [ebp + 8]
and dword [eax], 0
pop edi
pop ebx
leave
ret 0xc

Function at 0x45b36b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x45b391
sub eax, ecx
sar eax, 1
cmp word [ebp + eax*2 - 0x20a], 0x5c
mov esi, 0x53ec98
je 0x45b3b4
mov esi, 0x54c894
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 [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push str._s_sshmf_I64d__I64d___d.bin.tmp
lea edi, [ebp - 0x410]
call fcn.0044b138
add esp, 0x1c
mov eax, dword [0x62af1c]
mov edi, dword [ebp + 8]
inc dword [0x62af1c]
push eax
lea eax, [ebp - 0x410]
push eax
mov esi, 0x104
call fcn.0044b138
pop ecx
pop ecx
push edi
call fcn.00401d29
test al, al
jne 0x45b3e4
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x461a9b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
push edi
xor edi, edi
cmp dword [0x5a9cf0], edi
je 0x461ab7
mov al, 1
jmp 0x461ba8
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 5
call fcn.0046037d
test al, al
je 0x461ba6
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x5a9cf0], eax
je 0x461ba6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._Save_36
push eax
call esi
push str._Load_4
push dword [0x5a9cf0]
mov dword [0x5a9cf4], eax
call esi
push str._GetImageSize_16
push dword [0x5a9cf0]
mov dword [0x5a9cf8], eax
call esi
push str._GetImage_20
push dword [0x5a9cf0]
mov dword [0x5a9cfc], eax
call esi
push str._Close_4
push dword [0x5a9cf0]
mov dword [0x5a9d00], eax
call esi
cmp dword [0x5a9cf4], edi
mov dword [0x5a9d04], eax
je 0x461b76
cmp dword [0x5a9cf8], edi
je 0x461b76
cmp dword [0x5a9cfc], edi
je 0x461b76
cmp dword [0x5a9d00], edi
je 0x461b76
cmp eax, edi
jne 0x461ab0
push dword [0x5a9cf0]
mov dword [0x5a9cf4], edi
mov dword [0x5a9cf8], edi
mov dword [0x5a9cfc], edi
mov dword [0x5a9d00], edi
mov dword [0x5a9d04], edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5a9cf0], edi
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x46ceeb
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push edi
push 5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov edi, eax
mov eax, dword [ebp + 8]
push fcn.0047e33a
push dword [eax + 4]
push edi
push dword [0x5a9cd0]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
movsx ecx, word [edi + 0xe]
push dword [esi + 4]
call fcn.0047a462
mov dword [ebp + 0xc], eax
movsx eax, word [edi + 0x10]
push eax
mov eax, esi
call fcn.0047a453
push eax
push dword [ebp + 0xc]
mov eax, esi
call fcn.0046cf63
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
pop ebp
ret 8
Function at 0x46f022
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
push ebx
xor ebx, ebx
cmp dword [0x5aa620], ebx
push esi
push edi
jne 0x46f04b
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x5aa620], eax
lea eax, [esp + 0x10]
push eax
call fcn.004f1876
test al, al
je 0x46f103
push 0x60
pop esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.005251f0
mov eax, dword [ebp + 0x20]
and al, 1
add esp, 0xc
dec al
neg al
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 0x18]
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
or eax, 0x1000
cmp byte [esi], bl
mov dword [esp + 0x24], eax
je 0x46f09c
or dword [esp + 0x24], 0x100
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [0x5a9cd0]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x4c], 2
mov dword [esp + 0x40], 0xfffd
mov dword [esp + 0x1c], ebx
call dword [esp + 0x20]
cmp dword [esp + 0x14], 1
sete al
mov byte [esi], al
mov eax, dword [esp + 0xc]
jmp 0x46f218
cmp dword [0x5aa614], ebx
je 0x46f112
xor eax, eax
jmp 0x46f218
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push eax
push ebx
push 0x46ee3a
push 4
call edi
push 0x11
mov dword [esp + 0x10], eax
call fcn.0044b085
cmp eax, ebx
pop ecx
je 0x46f15f
mov ecx, dword [ebp + 0x18]
mov cl, byte [ecx]
mov edx, dword [ebp + 0x14]
mov byte [eax + 8], cl
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 9], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 0xd], ecx
mov dword [0x5aa614], eax
jmp 0x46f165
mov dword [0x5aa614], ebx
call esi
push eax
push ebx
push 0x46efda
push 5
call edi
mov ecx, dword [0x5aa614]
mov esi, dword [ebp + 0xc]
mov dword [ecx + 0xd], eax
mov eax, esi
mov dword [esp + 0x10], esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x46f187
sub eax, ecx
sar eax, 1
cmp eax, 0x70
jae 0x46f1c7
push 0x20
push 0x70
lea ecx, [esp + 0x80]
mov dword [esp + 0x18], ecx
pop ecx
sub ecx, eax
push ecx
push esi
push str._s_c
mov esi, 0x104
lea edi, [esp + 0x88]
call fcn.0044b138
add esp, 0x10
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [esp + 0x18]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0xc], ebx
mov edi, eax
je 0x46f1ec
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x5aa614]
mov cl, byte [eax + 8]
mov edx, dword [ebp + 0x18]
mov byte [edx], cl
mov esi, eax
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x46f209
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
call fcn.0052009d
pop ecx
mov dword [0x5aa614], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x46f7ee
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
call fcn.0046f74b
push 0x103
lea eax, [ebp - 0x224]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x224], 0
je 0x46f8d7
lea eax, [ebp - 0x224]
push eax
push dword [ebx + 0x18]
lea esi, [ebx + 0x1c]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0046f7c3
mov eax, dword [ebx + 0x28]
sub eax, dword [ebx + 0x20]
lea esi, [ebx + 0x1c]
sub eax, dword [ebp - 0x18]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str.DropCommand
push dword [ebx + 0x14]
sar eax, 1
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x46f878
mov eax, dword [0x5aa618]
sub dword [ebp - 0xc], eax
push 0xfffffffffffffff0
push dword [ebx + 0x14]
xor esi, esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x300
mov ecx, 0x100
cmp eax, ecx
je 0x46f8a0
cmp eax, 0x200
je 0x46f89d
inc esi
jmp 0x46f8a0
push 2
pop esi
test dword [ebx + 0x10], ecx
je 0x46f8ab
or esi, 0x100000
lea eax, [ebp - 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x46f8b4
push esi
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
sar eax, 1
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebx + 0x18]
call fcn.004015f6
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46fab5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
je 0x46fc6e
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x1c]
test eax, eax
jle 0x46fc6e
mov eax, dword [ebx + 0x28]
sub eax, dword [ebx + 0x20]
test eax, eax
jle 0x46fc6e
mov edi, ebx
call fcn.0046f74b
fld dword [0x599990]
push ecx
fstp dword [esp]
push dword [ebx + 0x14]
mov dword [ebp - 8], esi
mov dword [ebp + 8], esi
call fcn.0047a4a6
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
push eax
push esi
push 0x1603
push dword [ebx + 0x14]
call edi
cmp eax, 1
jne 0x46fb73
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
mov eax, dword [ebx + 0x10]
and al, 4
neg al
sbb eax, eax
and eax, 3
inc eax
push eax
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [ebx + 0x28]
sub eax, dword [ebx + 0x20]
push 0xffffffffffffffff
push dword [ebp + 8]
sub eax, dword [ebp + 8]
push dword [ebp - 8]
sar eax, 1
push eax
push 5
push dword [ebx + 0x18]
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.COMCTL32.dll_ImageList_DrawEx]
jmp 0x46fbc6
push esi
push esi
push 0xf6
push dword [ebx + 0x14]
call edi
mov edi, eax
cmp edi, esi
je 0x46fbc6
lea eax, [ebp - 0x54]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebx + 0x10]
and eax, 4
shl eax, 3
or eax, 4
push eax
mov eax, dword [ebx + 0x28]
sub eax, dword [ebx + 0x20]
push esi
sub eax, dword [ebp - 0x4c]
push esi
sar eax, 1
push eax
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x1c]
sub eax, dword [ebp - 0x50]
sar eax, 1
push eax
push esi
push edi
push esi
push esi
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawStateW]
push 0x103
lea eax, [ebp - 0x25c]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x25c], si
je 0x46fc6e
lea eax, [ebp - 0x25c]
push eax
push dword [ebx + 0x18]
lea esi, [ebx + 0x1c]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0046f7c3
mov eax, dword [ebx + 0x1c]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx + 5]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x28]
mov ecx, eax
sub ecx, dword [ebx + 0x20]
xor edx, edx
sub ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebx + 0x24]
sub ecx, 5
test word [ebx + 0x10], 0x100
mov dword [ebp - 0x14], ecx
je 0x46fc42
mov edx, 0x100000
lea eax, [ebp - 0x25c]
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x46fc4b
push edx
sub eax, esi
lea ecx, [ebp - 0x1c]
push ecx
sar eax, 1
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebx + 0x18]
call fcn.004015f6
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46fc75
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
call fcn.0046f74b
push 0x103
lea eax, [ebp - 0x244]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push 0x31
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x244]
push eax
push dword [ebx + 0x18]
lea esi, [ebx + 0x1c]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0046f7c3
push ecx
fld1
fstp dword [esp]
push dword [ebx + 0x14]
call fcn.0047a4a6
xor esi, esi
push esi
push 1
push 0xf6
push dword [ebx + 0x14]
mov edi, eax
mov dword [ebp + 8], edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x46fddd
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebx + 0x28]
add eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x1c]
lea edi, [eax + edi*2]
mov eax, dword [ebx + 0x10]
and eax, 4
shl eax, 3
or eax, 3
push eax
mov eax, dword [ebp - 0x30]
push esi
add eax, eax
push esi
sub ecx, eax
sub ecx, dword [ebx + 0x20]
shr ecx, 1
push ecx
push edi
push esi
push dword [ebp - 0xc]
push esi
push esi
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawStateW]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x2c]
call esi
mov eax, dword [ebp - 8]
add edi, eax
mov eax, dword [ebx + 0x28]
add edi, dword [ebp + 8]
mov ecx, eax
sub ecx, dword [ebx + 0x20]
push str.DropCommand
sub ecx, dword [ebp - 0x20]
push dword [ebx + 0x14]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebx + 0x24]
sub ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x46fda2
mov eax, dword [0x5aa618]
sub dword [ebp - 0x14], eax
xor esi, esi
test word [ebx + 0x10], 0x100
je 0x46fdb1
mov esi, 0x100000
lea eax, [ebp - 0x244]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x46fdba
push esi
sub eax, edx
lea ecx, [ebp - 0x1c]
push ecx
sar eax, 1
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebx + 0x18]
call fcn.004015f6
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4713fa
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]
xor ebx, ebx
cmp eax, ebx
je 0x47141b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0xa
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x47154d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x471448
xor al, al
jmp 0x47157e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x471441
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x471441
lea esi, [esp + 0x1c]
call fcn.0045d905
mov esi, dword [esp + 0x18]
push ebx
push dword [esp + 0x18]
lea eax, [esp + 0x34]
call fcn.00426c9d
test al, al
jne 0x4714a6
push dword [esp + 0x20]
mov dword [esp + 0x20], 0x595294
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esp + 0x1c]
call fcn.004e2d8a
jmp 0x471441
xor eax, eax
inc eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x58]
call fcn.0046059a
lea eax, [esp + 0x1c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x4d], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0xa1], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5d], ebx
mov byte [esp + 0x58], bl
mov dword [esp + 0x1c], 0x5531a0
call fcn.004f18b0
cmp dword [esp + 0x14], ebx
lea eax, [esp + 0x58]
je 0x471515
mov dword [esp + 0x10], 0x594e70
call fcn.0045e5d0
jmp 0x471489
push edi
call fcn.0047112e
test al, al
mov dword [esp + 0x10], 0x594e70
lea eax, [esp + 0x58]
je 0x47150b
call fcn.0045e5d0
push dword [esp + 0x20]
mov dword [esp + 0x20], 0x595294
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esp + 0x1c]
call fcn.004e2d8a
jmp 0x471567
push 0x2000
push ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [0x5a9cd0]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [edi + 4], eax
cmp dword [edi + 4], ebx
je 0x471441
push edi
call fcn.004716d5
xor eax, eax
cmp dword [edi + 4], ebx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4