joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bcc6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x420]
mov esi, ecx
push eax
push dword [esi + 0xb8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xb8]
mov byte [ebp - 0x21], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
cmp dword [eax + 0x154], 0
jne 0x44bd29
mov edi, dword [ebp + 8]
push 1
push dword [eax + 0x10]
add eax, 0xec
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.0042d04b
add esp, 0x14
jmp 0x44bd46
mov ecx, esi
call fcn.00432fad
push dword [esi + 0xb8]
mov edi, dword [ebp + 8]
push edi
push 0x1795
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00441d31
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call ebx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x20]
push dword [eax + 0xe8]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xfffffffffffffff0
push dword [esi + 0xb8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
and dword [ebp + 8], 0
push 2
pop ecx
test cl, al
mov dword [ebp - 0x20], eax
je 0x44bd98
mov dword [ebp + 8], ecx
test al, 1
je 0x44bda3
mov dword [ebp + 8], 1
test ah, 2
je 0x44bdac
or dword [ebp + 8], 0x24
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x44bdbc
or dword [ebp + 8], 0x20
jmp 0x44bdc0
or dword [ebp + 8], 0x10
test al, al
jns 0x44bdc8
or byte [ebp + 9], 8
and eax, 0xb
cmp al, 0xb
jne 0x44bdd3
or dword [ebp + 8], 0x20
mov ecx, esi
call fcn.0043306c
test eax, eax
je 0x44bde2
or byte [ebp + 0xa], 2
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.GDI32.dll_IntersectClipRect]
test byte [ebp - 0x1f], 0x20
je 0x44be10
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0x20]
or eax, 0x2010
push eax
lea eax, [ebp - 0x420]
push eax
jmp 0x44be2d
push dword [esi + 0xb8]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push dword [ebp + 8]
mov esi, dword [esi + 0x20]
test eax, eax
lea eax, [ebp - 0x420]
push eax
je 0x44be3b
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, 0x158
jmp 0x44be47
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, 0x168
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call fcn.0042c8ab
add esp, 0x18
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x14]
push edi
call ebx
push dword [ebp - 0x18]
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44e583
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x48f4d6
call fcn.0046eee0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00404950
mov eax, dword [edi + 0x1c]
and dword [ebp - 4], 0
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
lea eax, [edi + 0x34]
push eax
lea ecx, [esi + 0x34]
call fcn.00404950
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
lea eax, [edi + 0x70]
push eax
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 1
call fcn.00404950
mov eax, dword [edi + 0x8c]
mov dword [esi + 0x8c], eax
mov eax, dword [edi + 0x90]
mov dword [esi + 0x90], eax
mov eax, dword [edi + 0x94]
mov dword [esi + 0x94], eax
mov eax, dword [edi + 0x98]
mov dword [esi + 0x98], eax
mov eax, dword [edi + 0x9c]
mov dword [esi + 0x9c], eax
mov eax, dword [edi + 0xa0]
mov dword [esi + 0xa0], eax
mov eax, dword [edi + 0xa4]
mov dword [esi + 0xa4], eax
mov eax, dword [edi + 0xa8]
mov dword [esi + 0xa8], eax
mov eax, dword [edi + 0xac]
mov dword [esi + 0xac], eax
mov eax, dword [edi + 0xb0]
mov dword [esi + 0xb0], eax
mov eax, dword [edi + 0xb4]
mov dword [esi + 0xb4], eax
mov eax, dword [edi + 0xb8]
mov dword [esi + 0xb8], eax
mov eax, dword [edi + 0xbc]
mov dword [esi + 0xbc], eax
mov eax, dword [edi + 0xc0]
add edi, 0xc4
push edi
lea ecx, [esi + 0xc4]
mov byte [ebp - 4], 2
mov dword [esi + 0xc0], eax
call fcn.00404950
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x44ee65
Capabilities:
Get common file path

Disassembly:
mov eax, 0x48f4e8
call fcn.0046eee0
sub esp, 0x120
push ebx
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x12c], edi
jne 0x44ef3b
push esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push edi
call esi
cmp eax, edi
mov dword [ebx + 0x12c], eax
jne 0x44ef3a
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
call fcn.00402850
mov dword [ebp - 4], edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.0046ef00
add esp, 0xc
push edi
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404c20
push str.winhlp32.exe
lea ecx, [ebp - 0x28]
call fcn.00409890
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x44ef04
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44ef27
push 0x6a
push edi
call esi
test eax, eax
je 0x44ef27
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x12c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00403330
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45a907
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov edi, eax
mov eax, dword [0x4c8344]
xor esi, esi
cmp eax, esi
jne 0x45a928
cmp dword [0x4c833c], esi
je 0x45aac9
cmp ecx, 0xfffffff2
jne 0x45aa46
cmp dword [edi + 0x6a0], esi
je 0x45a940
xor eax, eax
jmp 0x45aadc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 8]
mov esi, 0x4c830c
push dword [ebp - 0xc]
push esi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x45a99a
push dword [0x4c833c]
push ebx
call dword [sym.imp.USER32.dll_KillTimer]
and dword [0x4c833c], 0
or dword [0x4aee68], 0xffffffff
or dword [0x4aee70], 0xffffffff
or dword [0x4aee6c], 0xffffffff
xor eax, eax
push 0
push ebx
inc eax
mov ecx, edi
call fcn.0045974b
pop ecx
pop ecx
jmp 0x45a939
cmp dword [0x4aee68], 0
mov ecx, esi
jne 0x45a9ba
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add edi, 8
push ebx
push edi
mov dword [ebp - 4], edi
call fcn.00459a91
jmp 0x45a9d0
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add edi, 0x354
push ebx
push edi
mov dword [ebp - 4], edi
call fcn.00459ac7
add esp, 0xc
cmp dword [0x4aee70], eax
mov dword [0x4aee6c], eax
je 0x45aa3c
mov eax, dword [ebp - 4]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
call fcn.00459afd
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x28]
neg eax
push eax
mov eax, dword [ebp - 0x2c]
neg eax
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push ebx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push dword [ebp - 4]
call fcn.0045971e
add esp, 0x14
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x4aee6c]
mov dword [0x4aee70], eax
jmp 0x45a939
cmp ecx, 0xfffd
jne 0x45aa6f
push eax
push ebx
call dword [sym.imp.USER32.dll_KillTimer]
push esi
push 0x37
push 0xfffe
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x4c8344], eax
jmp 0x45a939
cmp ecx, 0xfffe
jne 0x45aac9
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [ebp - 8]
movzx ecx, word [ebp - 0xc]
shl eax, 0x10
or eax, ecx
push 1
push ebx
mov ecx, edi
call fcn.0045a571
mov eax, dword [0x4aee74]
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x45a939
push esi
push eax
push dword [0x4c8340]
push ebx
call fcn.004584a4
add esp, 0x10
jmp 0x45a939
push dword [ebp + 8]
push ecx
push 0x113
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop esi
leave
ret
Function at 0x45b011
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x4c83ac], 0
push esi
mov esi, ecx
jne 0x45b035
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x18]
mov dword [0x4c83ac], eax
mov eax, dword [0x4c83b0]
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [0x4c83b0], esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push eax
call dword [0x4c8394]
mov dword [esi + 0xc], eax
cmp eax, dword [0x4c83ac]
pop edi
jbe 0x45b081
cmp byte [eax], 0x68
jne 0x45b081
mov eax, dword [eax + 1]
mov dword [esi + 0xc], eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 4]
call fcn.0045af4c
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x45b0d5
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x48fd59
call fcn.0046eee0
push ecx
cmp dword [0x4c8384], 0
jne 0x45b26c
push ebx
push esi
push edi
call fcn.0045acca
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, 0x499208
push edi
push eax
mov dword [0x4c83b4], eax
call esi
mov ebx, str.LoadLibraryW
push ebx
push dword [0x4c83b4]
mov dword [0x4c8384], eax
call esi
push str.LoadLibraryExA
push dword [0x4c83b4]
mov dword [0x4c8388], eax
call esi
push str.LoadLibraryExW
push dword [0x4c83b4]
mov dword [0x4c838c], eax
call esi
push 0x4991c8
push dword [0x4c83b4]
mov dword [0x4c8390], eax
call esi
push 0x18
mov dword [0x4c8394], eax
call fcn.00482676
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
test eax, eax
mov esi, str.Kernel32.dll
je 0x45b18c
push 0
push 0x45ae59
push edi
push esi
mov ecx, eax
call fcn.0045b011
jmp 0x45b18e
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x4c8398], eax
call fcn.00482676
pop ecx
mov dword [ebp - 0x10], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], 1
je 0x45b1c0
push edi
push 0x45ae74
push ebx
push esi
mov ecx, eax
call fcn.0045b011
jmp 0x45b1c2
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x4c839c], eax
call fcn.00482676
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 2
je 0x45b1f6
push edi
push 0x45ae8f
push str.LoadLibraryExA
push esi
mov ecx, eax
call fcn.0045b011
jmp 0x45b1f8
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x4c83a0], eax
call fcn.00482676
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 3
je 0x45b22c
push edi
push 0x45aeb4
push str.LoadLibraryExW
push esi
mov ecx, eax
call fcn.0045b011
jmp 0x45b22e
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x4c83a4], eax
call fcn.00482676
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 4
je 0x45b262
push edi
push 0x45aed9
push 0x4991c8
push esi
mov ecx, eax
call fcn.0045b011
jmp 0x45b264
xor eax, eax
pop edi
pop esi
mov dword [0x4c83a8], eax
pop ebx
mov ecx, dword [ebp - 0xc]
xor eax, eax
inc eax
mov dword fs:[0], ecx
leave
ret

Function at 0x45b375
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
lea edi, [esi + 0xc]
and dword [edi], 0
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 0x45b3c0
cmp dword [esi + 8], 0
je 0x45b3c0
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x45b3c0
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x4609bb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
mov esi, ecx
call fcn.0045bc20
test al, al
jne 0x4609ec
cmp word [esi + 0x16], 8
jae 0x4609f3
add esi, 0x44
push str.Bit_depth_must_be_8_or_24
push esi
call fcn.0046f120
pop ecx
pop ecx
xor al, al
jmp 0x460bc7
push edi
mov ecx, esi
mov byte [ebp - 0x18], 0
call fcn.00439515
test eax, eax
setne al
mov byte [ebp - 0x17], al
mov ax, word [esi + 0x16]
cmp ax, 8
setne cl
inc cl
mov dx, ax
sub dx, 8
mov byte [ebp - 0x16], cl
xor ecx, ecx
neg dx
mov edi, 0x100
mov word [ebp - 0x15], cx
mov word [ebp - 0x10], cx
mov word [ebp - 0xe], cx
mov byte [ebp - 7], cl
sbb edx, edx
and edx, 0xffffff00
add edx, edi
mov word [ebp - 0x13], dx
cmp ax, 8
setne dl
dec dl
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 byte [ebp - 8], dl
je 0x460a7b
cmp ax, 0x18
jne 0x460a7b
mov byte [ebp - 8], 0x20
mov eax, dword [ebx]
push 1
push 0x12
lea ecx, [ebp - 0x18]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
cmp word [esi + 0x16], 8
jne 0x460acf
mov ecx, esi
call fcn.00439515
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 0x460aa1
mov eax, dword [ebx]
push 1
push 0x300
lea ecx, [ebp - 0x33c]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
push esi
lea ecx, [ebp - 0x3c]
call fcn.0046095f
xor edi, edi
cmp dword [esi + 0x1a0], edi
je 0x460b91
cmp word [esi + 0x16], 8
je 0x460b91
movzx eax, word [ebp - 0xc]
shl eax, 2
push eax
call fcn.0046bb81
and dword [ebp - 4], 0
cmp word [ebp - 0xa], 0
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
jbe 0x460b88
xor ebx, ebx
cmp word [ebp - 0xc], bx
jbe 0x460b66
inc edi
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push ebx
push eax
mov ecx, esi
call fcn.0043963f
mov eax, dword [eax]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [edi - 1], al
mov al, byte [ebp - 0x1a]
push ebx
mov ecx, esi
mov byte [edi], ah
mov byte [edi + 1], al
call fcn.00439a14
movzx ecx, byte [esi + 0x17c]
movzx eax, al
imul eax, ecx
cdq
mov ecx, 0xff
idiv ecx
inc ebx
add edi, 4
mov byte [edi - 2], al
movzx eax, word [ebp - 0xc]
cmp ebx, eax
jl 0x460b18
movzx edx, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
mov eax, dword [ecx]
push 1
shl edx, 2
push edx
push edi
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x460b0f
push edi
call fcn.0046bb93
pop ecx
jmp 0x460bc4
cmp word [ebp - 0xa], di
jbe 0x460bc4
push edi
lea ecx, [ebp - 0x3c]
call fcn.0046098b
movzx ecx, word [esi + 0x16]
movzx edx, word [ebp - 0xc]
mov eax, dword [ebx]
shr ecx, 3
imul ecx, edx
push 1
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc edi
cmp edi, eax
jl 0x460b97
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x462b1f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x462b34
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x462b46
xor eax, eax
jmp 0x462b78
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x462b6a
cmp esi, eax
jae 0x462b42
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x462b5c
cmp esi, eax
jae 0x462b42
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x46444c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x46449f
call fcn.004891a0
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x46449f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x464495
xor eax, eax
jmp 0x4645b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4644cf
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4644cf
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4645b5
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4644fc
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00462e74
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4645b5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x464545
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x464545
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x46453f
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00462e74
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4645a5
and dword [ebp + 0xc], 0
jmp 0x4645a5
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4645a5
push 0xc
call fcn.00482676
mov esi, eax
test esi, esi
pop ecx
je 0x464587
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x464589
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4645a0
push dword [ebp - 8]
call fcn.0047ecc1
jmp 0x4645a5
call fcn.0047ec98
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x46450a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x46bc04
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0046bef0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46bc9f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4ca38c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x46bc9f
cmp eax, 1
je 0x46bcc0
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46bc9f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x46bc6c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x46bc9b
xor eax, eax
inc eax
jmp 0x46bcdf
cmp edi, eax
jae 0x46bca3
xor eax, eax
jmp 0x46bcdf
cmp eax, esi
jae 0x46bcaa
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4ca38c]
jmp 0x46bcc3
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46d226
Capabilities:
Terminate process

Disassembly:
push 8
push 0x49d7f8
call fcn.0046f8ec
push 8
call fcn.00470988
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4ca3cc], esi
jne 0x46d25a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4ca3c8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4ca3c4], al
cmp dword [ebp + 0xc], edi
jne 0x46d2a4
cmp dword [0x518910], edi
je 0x46d294
mov eax, dword [0x51890c]
sub eax, 4
mov dword [0x51890c], eax
cmp eax, dword [0x518910]
jb 0x46d294
mov eax, dword [eax]
cmp eax, edi
je 0x46d275
call eax
jmp 0x46d275
push 0x4ae0e8
mov eax, 0x4ae0e0
call fcn.0046d1a4
pop ecx
push 0x4ae0f4
mov eax, 0x4ae0ec
call fcn.0046d1a4
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x46d2d5
cmp dword [ebp + 0x10], edi
jne 0x46d2e3
mov dword [0x4ca3cc], esi
push dword [ebp + 8]
call fcn.0046d162
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x46d2e2
push 8
call fcn.004708d3
pop ecx
ret
call fcn.0046f927
ret