joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4920b2
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 0xac]
lea esi, [edi + 0xac]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_KillTimer]
push 0x3e8
push dword [esi]
call ebx
push 0x3f2
push dword [esi]
call ebx
and dword [edi + 0x11c], 0
pop edi
pop esi
pop ebx
ret

Function at 0x4925a9
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4925c1
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
push 8
pop eax
ret

Function at 0x49684a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x508805
call fcn.00474598
sub esp, 0x24
mov al, byte [ebp + 0xb]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
and byte [ebx + 0xc], 0
lea ecx, [ebx + 4]
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
call fcn.00495905
mov al, byte [ebp + 0xb]
and byte [ebx + 0xac], 0
lea ecx, [ebx + 0xa4]
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
call fcn.00497db6
mov eax, dword [ebp + 8]
push 0x33
mov dword [ebx + 0xa0], eax
lea eax, [ebx + 0x6c]
push edi
push eax
mov byte [ebp - 4], 1
mov dword [ebx], 0x51820c
call fcn.00472380
push 0x33
lea eax, [ebx + 0x34]
push edi
push eax
call fcn.00472380
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
add esp, 0x18
push 0xf
call esi
push 8
mov dword [ebx + 0x14], eax
call esi
push 0x1e
mov dword [ebx + 0x18], eax
push 0x3c
push edi
lea eax, [ebp - 0x30]
push edi
push eax
mov dword [ebx + 0x1c], 0xff
mov dword [ebx + 0x68], edi
call fcn.0048f024
mov esi, eax
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x14
and dword [ebx + 0x30], 0
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x6c]
push 0x33
mov esi, 0x5540bc
push eax
lea edi, [ebx + 0x30]
push esi
push str.NAME
push 1
mov ecx, ebx
call fcn.0049694f
push 4
push edi
push esi
push str.AUTOPLACE
push 6
mov ecx, ebx
call fcn.0049694f
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x49f9c4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x124], eax
jne 0x49fa23
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
push eax
push esi
push 0x49fa26
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
movzx ecx, word [esi + 0x118]
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0xac]
or ecx, 0x10000
push eax
push ecx
push 0x111
push eax
mov dword [esi + 0x124], 1
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
leave
ret
Function at 0x4a86e1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
lea eax, [ebp - 0x420]
mov esi, ecx
push 0x400
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowTextA]
and byte [ebp - 0x21], 0
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [eax + 0x15c], 0
jne 0x4a874a
mov ebx, dword [ebp + 8]
push 1
push dword [eax + 0x14]
add eax, 0xf4
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0048f301
add esp, 0x14
jmp 0x4a8763
mov ecx, esi
call fcn.00489ec6
push dword [esi + 0xac]
mov ebx, dword [ebp + 8]
push ebx
push 0x1795
push eax
call edi
push 0
push 0
push 0x31
push dword [esi + 0xac]
call edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
push dword [eax + 0xf0]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xfffffffffffffff0
mov dword [ebp - 0x18], eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and dword [ebp + 8], 0
push 2
mov edx, eax
pop ecx
and edx, ecx
mov dword [ebp - 0x20], eax
cmp dl, cl
jne 0x4a87c0
mov dword [ebp + 8], ecx
push 1
mov edx, eax
pop ecx
and edx, ecx
cmp dl, cl
jne 0x4a87ce
mov dword [ebp + 8], ecx
mov edx, eax
mov ecx, 0x200
and edx, ecx
cmp edx, ecx
jne 0x4a87df
or dword [ebp + 8], 0x24
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x4a87ef
or dword [ebp + 8], 0x20
jmp 0x4a87f3
or dword [ebp + 8], 0x10
mov ecx, eax
and cx, 0x80
cmp cl, 0x80
jne 0x4a8803
or byte [ebp + 9], 8
and eax, 0xb
cmp al, 0xb
jne 0x4a880e
or dword [ebp + 8], 0x20
mov ecx, esi
call fcn.0048a1fc
test eax, eax
je 0x4a881d
or byte [ebp + 0xa], 2
push dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov eax, 0x2000
push dword [ebp - 8]
and ecx, eax
cmp ecx, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
jne 0x4a884b
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0x14]
or ax, 0x2010
push eax
jmp 0x4a8857
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov esi, dword [esi + 0x14]
push dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
add esi, 0x160
push eax
push esi
push ebx
call fcn.00490d42
add esp, 0x18
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x14]
push ebx
call edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4ad39c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
and dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x4ad3e8
cmp dword [esi + 8], 0
je 0x4ad3e8
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x4ad3e8
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8

Function at 0x4ad433
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5676b8]
push edi
xor edi, edi
cmp eax, edi
jne 0x4ad592
mov eax, 0x567690
push 0x28
push edi
push eax
mov dword [0x5676b8], eax
call fcn.00472380
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.imagehlp.dll
mov dword [0x567690], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x567694], eax
je 0x4ad590
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
push str.SymInitialize
mov dword [0x567698], eax
push dword [0x567694]
call esi
push str.SymSetOptions
mov dword [0x56769c], eax
push dword [0x567694]
call esi
push str.SymGetOptions
mov dword [0x5676a0], eax
push dword [0x567694]
call esi
push str.SymLoadModule
mov dword [0x5676a4], eax
push dword [0x567694]
call esi
push str.SymGetModuleInfo
mov dword [0x5676a8], eax
push dword [0x567694]
call esi
push str.SymGetSymFromName
mov dword [0x5676ac], eax
push dword [0x567694]
call esi
push str.BindImage
mov dword [0x5676b0], eax
push dword [0x567694]
call esi
mov dword [0x5676b4], eax
push 8
lea eax, [ebp - 8]
push edi
push eax
call fcn.00472380
mov eax, dword [0x567698]
add esp, 0xc
cmp eax, edi
mov word [ebp - 8], 9
pop esi
je 0x4ad57e
lea ecx, [ebp - 8]
push ecx
call eax
cmp dword [0x567698], edi
je 0x4ad57e
cmp word [ebp - 8], 9
jb 0x4ad57e
mov eax, dword [0x56769c]
cmp eax, edi
je 0x4ad55a
push edi
push edi
push dword [0x567690]
call eax
mov eax, dword [0x5676a4]
cmp eax, edi
je 0x4ad577
cmp dword [0x5676a0], edi
je 0x4ad577
call eax
and eax, 7
push eax
call dword [0x5676a0]
mov eax, dword [0x5676b8]
jmp 0x4ad592
push dword [0x567694]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x567694], edi
xor eax, eax
pop edi
leave
ret
Function at 0x4ada2d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5190a0
push 0x472ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp eax, ebx
jne 0x4ada69
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp word [eax], 0x5a4d
je 0x4ada85
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x4adb13
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x24], esi
cmp dword [esi], 0x4550
je 0x4ada9c
push 0xbf
jmp 0x4ada78
mov ax, word [esi + 0x14]
cmp ax, bx
jne 0x4adaac
push 0xc0
jmp 0x4ada78
movzx eax, ax
lea eax, [eax + esi + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ebx
movzx eax, word [esi + 6]
cmp ebx, eax
jae 0x4adb25
lea eax, [ebx + ebx*4]
mov ecx, dword [ebp - 0x20]
lea edi, [ecx + eax*8]
push str..detour
push edi
call fcn.00472be0
pop ecx
pop ecx
test eax, eax
jne 0x4adb1b
mov esi, dword [edi + 0xc]
xor ecx, ecx
cmp esi, ecx
je 0x4adb25
cmp dword [edi + 0x10], ecx
je 0x4adb25
mov eax, dword [ebp - 0x1c]
add esi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x30
jb 0x4adb25
cmp dword [esi + 4], 0x727444
jne 0x4adb25
cmp dword [esi + 8], ecx
jne 0x4adb0c
mov dword [esi + 8], eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x4adb36
inc ebx
jmp 0x4adab6
or dword [ebp - 4], 0xffffffff
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b3af7
Capabilities:
Get common file path

Disassembly:
mov eax, 0x5096c8
call fcn.00474598
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], esi
cmp dword [esi + 0xfc], ebx
jne 0x4b3be9
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xfc], eax
jne 0x4b3be9
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.0048a305
mov esi, 0x104
lea eax, [ebp - 0x128]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00472380
add esp, 0xc
lea eax, [ebp - 0x128]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x128]
push eax
call fcn.00472550
pop ecx
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x24]
call fcn.0048a6e6
mov esi, str.winhlp32.exe
push esi
call fcn.00472550
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004b8183
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4b3bae
mov eax, 0x518118
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x4b3bd4
push 0x6a
push esi
call edi
cmp eax, ebx
je 0x4b3bd4
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xfc], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call fcn.0048a305
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4bd120
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x567758]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
jne 0x4bd146
cmp dword [0x567750], ebx
jne 0x4bd146
push dword [ebp + 0x14]
push dword [ebp + 0x10]
jmp 0x4bd305
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xfffffff2
jne 0x4bd271
mov edi, dword [ebp + 8]
cmp dword [edi + 0x6a0], ebx
je 0x4bd164
xor eax, eax
jmp 0x4bd319
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 4]
mov esi, 0x567730
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4bd1c3
push dword [0x567750]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
or dword [0x54ec18], 0xffffffff
or dword [0x54ec20], 0xffffffff
or dword [0x54ec1c], 0xffffffff
push ebx
push 1
mov dword [0x567750], ebx
push dword [ebp + 0xc]
push edi
call fcn.004ba4f2
add esp, 0x10
jmp 0x4bd269
cmp dword [0x54ec18], ebx
jne 0x4bd1e0
push dword [ebp - 4]
lea ebx, [edi + 8]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004bc183
jmp 0x4bd1f6
push dword [ebp - 4]
lea ebx, [edi + 0x354]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004bc20d
add esp, 0x14
cmp dword [0x54ec20], eax
mov dword [0x54ec1c], eax
je 0x4bd264
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call fcn.004bc23f
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
neg eax
push eax
mov eax, dword [ebp - 0x28]
neg eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
push edi
push esi
push ebx
call fcn.004bc156
add esp, 0x14
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x54ec1c]
mov dword [0x54ec20], eax
xor eax, eax
pop esi
jmp 0x4bd319
cmp ecx, 0xfffd
jne 0x4bd29e
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push 0x37
push 0xfffe
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x567758], eax
jmp 0x4bd15d
cmp ecx, 0xfffe
jne 0x4bd301
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004bc74c
mov eax, dword [0x54ec24]
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bd15d
push ebx
push eax
push dword [0x567754]
push dword [ebp + 0xc]
call fcn.004bbfd8
add esp, 0x10
jmp 0x4bd15d
push dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 8]
push 0x113
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop ebx
leave
ret
Function at 0x4cba56
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x50a0c0
call fcn.00474598
push ecx
push ebx
push esi
push edi
lea esi, [ebp + 8]
push dword [ebp + 0x1c]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x18]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049e5a8
mov al, byte [ebp + 0x1f]
xor esi, esi
lea ecx, [ebx + 0x30]
push esi
mov dword [ebp - 4], esi
mov byte [ecx], al
call fcn.0048a305
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x44], esi
pop edi
mov dword [ebx], 0x51a800
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18
Function at 0x4cc3f4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push ebx
call fcn.004ca75c
test al, al
jne 0x4cc425
cmp word [esi + 0x16], 8
jae 0x4cc42c
add esi, 0x44
push str.Bit_depth_must_be_8_or_24
push esi
call fcn.004721e0
pop ecx
pop ecx
xor al, al
jmp 0x4cc5fa
and byte [ebp - 0x18], 0
push edi
mov ecx, esi
call fcn.004c30e3
test eax, eax
setne al
mov byte [ebp - 0x17], al
mov ax, word [esi + 0x16]
cmp ax, 8
mov dx, ax
setne cl
inc ecx
sub dx, 8
mov byte [ebp - 0x16], cl
xor ecx, ecx
neg dx
sbb edx, edx
mov edi, 0x100
and dl, cl
mov word [ebp - 0x15], cx
add edx, edi
cmp ax, 8
mov word [ebp - 0x13], dx
mov word [ebp - 0x10], cx
setne dl
dec edx
and byte [ebp - 7], cl
and edx, 0x18
cmp dword [esi + 0x1a0], ecx
mov byte [ebp - 0x11], dl
mov dx, word [esi + 0xc]
mov word [ebp - 0xc], dx
mov dx, word [esi + 0x10]
mov word [ebp - 0xa], dx
mov dl, al
mov word [ebp - 0xe], cx
mov byte [ebp - 8], dl
je 0x4cc4ae
cmp ax, 0x18
jne 0x4cc4ae
mov byte [ebp - 8], 0x20
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x18]
push 0x12
push ecx
mov ecx, ebx
call dword [eax + 0xc]
cmp word [esi + 0x16], 8
jne 0x4cc502
mov ecx, esi
call fcn.004c30e3
lea ecx, [ebp - 0x33b]
add eax, 2
mov dl, byte [eax - 2]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 3
dec edi
jne 0x4cc4d4
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x33c]
push 0x300
push ecx
mov ecx, ebx
call dword [eax + 0xc]
push esi
lea ecx, [ebp - 0x3c]
call fcn.004cc93c
xor edi, edi
cmp dword [esi + 0x1a0], edi
je 0x4cc5c4
cmp word [esi + 0x16], 8
je 0x4cc5c4
movzx eax, word [ebp - 0xc]
shl eax, 2
push eax
call fcn.004741c3
and dword [ebp - 4], 0
cmp word [ebp - 0xa], 0
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
jbe 0x4cc5bb
xor ebx, ebx
cmp word [ebp - 0xc], bx
jbe 0x4cc599
inc edi
push dword [ebp - 4]
lea eax, [ebp - 0x24]
mov ecx, esi
push ebx
push eax
call fcn.004c320b
mov eax, dword [eax]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [edi - 1], al
mov al, byte [ebp - 0x1a]
mov byte [edi], ah
push ebx
mov ecx, esi
mov byte [edi + 1], al
call fcn.004c56f0
movzx ecx, byte [esi + 0x17c]
movzx eax, al
imul eax, ecx
cdq
mov ecx, 0xff
add edi, 4
idiv ecx
inc ebx
mov byte [edi - 2], al
movzx eax, word [ebp - 0xc]
cmp ebx, eax
jl 0x4cc54b
movzx edx, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
shl edx, 2
mov eax, dword [ecx]
push 1
push edx
push edi
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x4cc542
push edi
call fcn.00473de7
pop ecx
jmp 0x4cc5f7
cmp word [ebp - 0xa], di
jbe 0x4cc5f7
push edi
lea ecx, [ebp - 0x3c]
call fcn.004cc968
movzx ecx, word [esi + 0x16]
movzx edx, word [ebp - 0xc]
shr ecx, 3
imul ecx, edx
mov eax, dword [ebx]
push 1
push ecx
mov ecx, ebx
push dword [ebp - 0x2c]
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc edi
cmp edi, eax
jl 0x4cc5ca
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4d7ecc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4d7eee
cmp dword [edi + 0x3c], 0
jne 0x4d7eee
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004f1523
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004d7f2d
pop edi
pop esi
pop ebx
ret 8

Function at 0x4d9682
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d96ba
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004dcfa5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dcf7d
jmp 0x4d96c6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4db42b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4db46d
call fcn.004f1523
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4db46d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4db464
xor eax, eax
jmp 0x4db475
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004db47b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4edd66
Capabilities:
Create http request

Disassembly:
mov eax, 0x5064e0
call fcn.00474598
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4edd9e
call fcn.004f1523
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4eddc3
push eax
push dword [esi + 4]
call fcn.004f015e
jmp 0x4eddcf
push esi
push eax
mov ecx, 0x555f78
call fcn.004edde0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4ee2ba
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x50658f
call fcn.00474598
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004ddeb3
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x548848]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.004dcc87
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.004dcc87
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4ee356
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5065b7
call fcn.00474598
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004ddeb3
mov eax, dword [0x548848]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x555f78
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004edde0
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004dcc87
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004686b2
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004dcc37
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004dcafe
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10