joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424e5e
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x424ee6
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
jne 0x424e85
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x424ee6
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
push ebp
inc esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [esp + 0x14], eax
call fcn.005dec8c
mov edi, eax
lea eax, [esi - 1]
push eax
push dword [esp + 0x18]
lea eax, [edi + 1]
mov byte [edi], 0xb
push eax
call fcn.00473fd0
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebx + 0x154]
push 0
push esi
push edi
push dword [ebx + 0x150]
call fcn.0040ef7d
push edi
call fcn.005decb5
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x42680d
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x426895
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
jne 0x426834
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x426895
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
push ebp
inc esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [esp + 0x14], eax
call fcn.005dec8c
mov edi, eax
lea eax, [esi - 1]
push eax
push dword [esp + 0x18]
lea eax, [edi + 1]
mov byte [edi], 0x7b
push eax
call fcn.00473fd0
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebx + 0x158]
push 0
push esi
push edi
push dword [ebx + 0x154]
call fcn.0040ef7d
push edi
call fcn.005decb5
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x42b7c5
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, ecx
push edi
push 0x12
mov eax, dword [esi + 4]
mov dword [ebp - 0xe], 0x61746164
mov dword [ebp - 0xa], eax
pop eax
mov dword [ebp - 0x24], eax
push eax
lea eax, [esi + 8]
mov dword [ebp - 0x28], 0x20746d66
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00473fd0
mov eax, dword [esi + 4]
add esp, 0xc
xor edi, edi
add eax, 0x26
push edi
push edi
push edi
mov dword [ebp - 0x34], 0x46464952
push dword [esi + 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x45564157
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x34]
push 0x2e
push eax
push dword [esi + 0x1c]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
test eax, eax
je 0x42b846
cmp dword [ebp - 4], 0x2e
jne 0x42b846
xor eax, eax
leave
ret
or eax, 0xffffffff
leave
ret
Function at 0x433250
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
cmp byte [esi + 2], 1
je 0x433268
mov eax, 0xfffffffc
pop esi
add esp, 0x24
ret
mov dword [esi + 4], 0x10302
mov dword [esi + 8], str.xvid_1.3.2
call fcn.00433170
mov dword [esi + 0xc], eax
lea eax, [esp + 4]
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 0x10], ecx
pop esi
add esp, 0x24
ret
Function at 0x469f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
lea edx, [eax + 0x50]
lea ecx, [eax + 8]
push edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x3ff00000
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0x3ff00000
xor eax, eax
fld qword [ecx]
fadd qword [edx]
add eax, 8
add ecx, 8
sub edx, 8
cmp eax, 0x20
fsub qword [esp + eax + 0x48]
fstp qword [esp + eax + 0x50]
fld qword [ecx - 8]
fsub qword [edx + 8]
fadd qword [esp + eax + 0x78]
fstp qword [esp + eax + 0x80]
jle 0x469fb2
mov eax, dword [0x780c88]
mov ecx, dword [0x780c8c]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x50]
mov dword [esp + 0x14], ecx
push 5
mov eax, ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ebx
lea edi, [esp + 0x60]
call fcn.0046a1a0
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov dword [esp + 0x44], edx
mov esi, 0x780c88
cmp esi, 0x780e18
jge 0x46a16d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 8]
add esi, 8
fstp qword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], ecx
push 5
mov ecx, eax
push edi
push ecx
push edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.0046a1a0
fst qword [esp + 0x58]
fld qword [esp + 0x38]
fmul st(1)
add esp, 0x10
fcomp qword [0x644088]
fnstsw ax
test ah, 0x41
je 0x46a15b
fstp st(0)
sub esi, 8
mov ebx, 2
fld qword [esp + 0x38]
fadd qword [esp + 0x10]
push 5
push edi
fmul qword [0x644080]
fstp qword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.0046a1a0
fld st(0)
fmul qword [esp + 0x58]
add esp, 0x10
fcomp qword [0x644088]
fnstsw ax
test ah, 0x41
je 0x46a0d4
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
fstp qword [esp + 0x28]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
jmp 0x46a0e8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
fstp qword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
dec ebx
jne 0x46a084
fld qword [esp + 0x38]
fsub qword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
add eax, 8
fmul qword [esp + 0x48]
fld qword [esp + 0x28]
fsub qword [esp + 0x48]
mov dword [esp + 0x44], eax
inc edi
mov dword [esp + 0x1c], edi
lea edi, [esp + 0x80]
fdivp st(1)
fsubr qword [esp + 0x10]
fst qword [esp + 0x28]
fld st(0)
fstp qword [eax - 8]
mov eax, 1
sub eax, ecx
mov dword [esp + 0x34], eax
jne 0x46a13e
lea edi, [esp + 0x50]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
fstp qword [esp + 0x10]
push 5
push edi
push ecx
push edx
call fcn.0046a1a0
mov ebx, dword [esp + 0x2c]
add esp, 0x10
cmp ebx, 0xa
jl 0x46a01f
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xa
fstp st(0)
jge 0x46a193
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov edx, 0xa
mov esi, dword [ecx + eax]
mov dword [eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [eax + 4], esi
add eax, 8
dec edx
jne 0x46a181
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x606e79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.005e2b00
mov eax, dword [0x7815b4]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x50], eax
mov ecx, dword [0x7815b4]
mov dword [esi + 0x54], ecx
lea ecx, [esi + 0x68]
mov byte [esp + 0x14], 2
call fcn.004841e0
mov ecx, esi
mov byte [esp + 0x14], 3
mov dword [esi], 0x64aba8
call fcn.005fecaa
lea edx, [esi + 0x40]
or eax, 0xffffffff
push edx
mov dword [esi + 0x30], 1
mov dword [esi + 0x2c], 1
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x3c], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x64], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x488e00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
push eax
lea ebx, [edi + 0x3c]
push ecx
mov ecx, ebx
call fcn.00485360
mov edx, dword [esp + 0x18]
mov esi, eax
push edx
mov ecx, esi
call fcn.00483c10
mov ebp, dword [esp + 0x1c]
mov ecx, esi
push ebp
call fcn.00576a70
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x24]
cmp ecx, eax
je 0x488e4a
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x24], eax
mov eax, dword [ecx]
call dword [eax + 4]
test ebp, ebp
je 0x488e57
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x488e6f
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x488e6f
push 0
mov ecx, ebx
call fcn.004855f0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14

Function at 0x48e6f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x607799
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.005df77b
mov eax, dword [0x7815b4]
lea edi, [esi + 0x3c]
mov dword [esp + 0x14], 0
mov dword [edi], eax
mov edx, dword [0x7815b4]
lea ecx, [esi + 0x40]
mov dword [ecx], edx
mov eax, dword [0x7815b4]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov byte [esp + 0x18], 3
mov dword [esi], method.CWnd.virtual_0
mov dword [esi + 0x48], edx
call fcn.005e38d9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x4c], edx
mov ecx, edi
mov dword [esi + 0x50], eax
call fcn.005e36db
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x54], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], edx
mov dword [esi + 0x58], 1
mov dword [esi + 0x64], 0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x48fa40
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
cmp dword [eax + 0x5c], 2
je 0x48fb94
mov ecx, dword [esp + 0x14]
cmp ecx, 0x60
jb 0x48fa6c
cmp ecx, 0x69
ja 0x48fa6c
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x48fb94
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
je 0x48fb94
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
mov ebp, eax
push ebp
call fcn.0048dee0
mov esi, eax
mov eax, dword [edi + 0x80]
add esp, 4
neg esi
sbb esi, esi
xor ebx, ebx
and esi, ebp
test eax, eax
jle 0x48fae2
push ebx
mov ecx, edi
call fcn.004903c0
mov ebp, eax
mov eax, dword [ebp + 0x88]
test eax, eax
jne 0x48fae0
mov ecx, dword [edi + 0x70]
test byte [ecx + 0x5c], 1
je 0x48fad3
test esi, esi
jne 0x48fad3
push ebp
call fcn.0048dee0
add esp, 4
test eax, eax
je 0x48fad3
mov esi, ebp
mov eax, dword [edi + 0x80]
inc ebx
cmp ebx, eax
jl 0x48faa3
jmp 0x48fae2
mov esi, ebp
test esi, esi
je 0x48fb94
push esi
call fcn.0048dee0
add esp, 4
test eax, eax
je 0x48fb94
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x174]
test eax, eax
je 0x48fb1a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push ebx
push esi
call fcn.0048f7e0
mov ebp, eax
test ebp, ebp
je 0x48fb94
mov esi, dword [ebp + 0xbc]
mov ebx, dword [ebp + 0x3c]
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x48fb48
mov ecx, edi
call fcn.0048fa10
push 1
mov ecx, edi
call fcn.0048f5c0
mov dword [edi + 0x40], 1
mov edx, dword [esi]
push 1
push 0
push 1
mov ecx, esi
call dword [edx + 0xbc]
mov eax, dword [esi]
push 1
push ebx
mov ecx, esi
call dword [eax + 0xc4]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x48fb88
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xb0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x48fba0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp dword [edi + 4], 0x104
jne 0x48fc4c
mov eax, dword [edi + 0xc]
shr eax, 0x10
test ah, 0x20
je 0x48fc4c
call fcn.0048f690
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x48fc4c
push 0
mov ecx, esi
call fcn.0048f690
mov ecx, eax
call fcn.004f02f0
test eax, eax
jne 0x48fc4c
mov ecx, esi
call fcn.0048f690
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x48fbf8
mov eax, dword [eax + 0x1c]
push eax
call fcn.004effa0
add esp, 4
test eax, eax
je 0x48fc4c
cmp dword [edi + 8], 0x12
jne 0x48fc1b
push 1
mov ecx, esi
call fcn.0048f5c0
pop edi
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x48fc2f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
jne 0x48fc4c
mov eax, dword [edi + 8]
test eax, eax
je 0x48fc4c
push eax
mov ecx, esi
call fcn.0048fa40
test eax, eax
je 0x48fc4c
pop edi
mov eax, 1
pop esi
ret 4
mov eax, dword [edi + 4]
cmp eax, 0x105
je 0x48fc5d
cmp eax, 0x101
jne 0x48fc8d
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x48fc8d
mov eax, dword [esi + 0xac]
test eax, eax
je 0x48fc8d
push 0
mov ecx, esi
call fcn.0048f690
mov ecx, eax
call fcn.004f02f0
test eax, eax
jne 0x48fc8d
push eax
mov ecx, esi
call fcn.0048f5c0
mov eax, dword [edi + 4]
cmp eax, 0x7b
je 0x48fc9c
cmp eax, 0x105
jne 0x48fcda
push 0
mov ecx, esi
call fcn.0048f690
mov ecx, eax
call fcn.004f02f0
test eax, eax
je 0x48fcda
push 0x491880
mov ecx, 0x7c7ecc
call fcn.005fbbbf
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push 0x7b
mov ecx, eax
call fcn.004f0740
pop edi
mov eax, 1
pop esi
ret 4
cmp dword [edi + 4], 0x20a
jne 0x48fd59
push 0x491880
mov ecx, 0x7c7ecc
call fcn.005fbbbf
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x48fd21
push 0x491880
mov ecx, 0x7c7ecc
call fcn.005fbbbf
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push 0x20a
mov ecx, eax
call fcn.004f0740
pop edi
pop esi
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
test eax, eax
je 0x48fd59
cmp dword [eax + 0xa0], 3
jne 0x48fd59
mov ecx, dword [edi + 8]
xor edx, edx
shr ecx, 0x10
test cx, cx
setle dl
push edx
mov ecx, eax
call fcn.004f7a10
test eax, eax
je 0x48fd59
pop edi
mov eax, 1
pop esi
ret 4
mov eax, dword [edi + 4]
cmp eax, 0x100
jb 0x48fc14
cmp eax, 0x108
ja 0x48fc14
push edi
mov ecx, esi
call fcn.0048e1f0
mov ecx, eax
call fcn.004b2fc0
test eax, eax
je 0x48fc14
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x494df0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x494e2b
mov edi, dword [esp + 0x30]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push 0x494d40
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
mov al, 1
pop esi
add esp, 0x24
ret 4
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x494eb7
mov eax, dword [esp + 0x14]
cmp eax, 3
ja case.default.0x494e5a
jmp dword [eax*4 + 0x494ef4]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
pop edi
pop esi
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 8], edx
mov al, 1
add esp, 0x24
ret 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
pop edi
mov al, 1
pop esi
add esp, 0x24
ret 4
mov esi, dword [esp + 0x30]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x494ee9
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x96
sub ecx, 0x1e
mov dword [esi], eax
mov dword [esi + 4], ecx
pop edi
mov al, 1
pop esi
add esp, 0x24
ret 4
pop edi
xor al, al
pop esi
add esp, 0x24
ret 4

Function at 0x4a4440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x786014
push eax
push esi
mov byte [esp + 0x10], 0x89
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], 0x4e
mov byte [esp + 0x13], 0x47
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4a4472
pop esi
pop ecx
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4a4481
pop esi
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax]
lea ecx, [esp + 4]
xor eax, eax
mov esi, dword [ecx]
cmp edx, esi
pop esi
sete al
pop ecx
ret

Function at 0x4a44a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4a44b9
pop esi
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4a44c7
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4a44d4
pop esi
ret
xor ecx, ecx
cmp word [eax + 0xe], 0x20
pop esi
sete cl
mov eax, ecx
ret
Function at 0x4a47c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x608dd8
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4a4807
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4a4826
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x4a4846
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ebx, dword [ebp + 8]
mov dword [esp + 0x34], 0
imul ebx, dword [ebp + 4]
shl ebx, 2
cmp word [ebp + 0xe], 0x20
jne 0x4a494b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebx + 0x28]
cmp eax, ecx
jb 0x4a494b
lea ecx, [esp + 0x14]
call fcn.005e70a8
push 0
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.005e715f
push 0x34
call fcn.0047447d
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
jne 0x4a48d3
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005e71dd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, 0xa
mov esi, ebp
mov edi, edx
lea eax, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
neg eax
mov dword [edx + 0x14], ebx
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x3c]
sbb eax, eax
push 0
push ecx
and eax, esi
push 0
push edx
push eax
mov dword [esp + 0x50], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
je 0x4a492d
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4a492d
mov ecx, ebx
lea esi, [ebp + 0x28]
mov edx, ecx
mov dword [esp + 0x34], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call fcn.00474394
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005e71dd
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4a7120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x608fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea ecx, [esp + 0x14]
call fcn.005e70a8
xor ebx, ebx
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.005e715f
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.004a6fd0
add esp, 0x14
test eax, eax
jne 0x4a71a9
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005e71dd
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 8]
push ebp
neg eax
sbb eax, eax
push edi
and eax, edx
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, dword [esp + 0x14]
mov ebp, eax
cmp edi, ebx
je 0x4a71f7
cmp ebp, ebx
je 0x4a71f7
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4a720c
push eax
call fcn.00474394
add esp, 4
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4a7221
push eax
call fcn.00474394
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4a722f
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.005e71dd
mov ecx, dword [esp + 0x2c]
mov eax, ebp
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4a99a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
and edi, 0xffff
jne 0x4a99b5
pop edi
xor eax, eax
pop esi
ret 0x10
call fcn.005f9649
mov esi, dword [eax + 0xc]
push 0xf1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4a99d3
pop edi
pop esi
ret 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4a99e4
pop edi
pop esi
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4a99f6
pop edi
pop esi
ret 0x10
xor eax, eax
push ebx
mov ax, word [esi + 6]
push ebp
shl eax, 2
push eax
call fcn.005dec8c
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor edi, edi
add esp, 4
mov dword [ebp], eax
mov dword [ebx], 0
cmp word [esi + 6], di
jbe 0x4a9a56
mov ecx, esi
call fcn.004de280
cmp word [eax + edi*2], 0
je 0x4a9a4b
mov ecx, esi
call fcn.004de280
mov edx, dword [ebx]
xor ecx, ecx
mov cx, word [eax + edi*2]
mov eax, dword [ebp]
mov dword [eax + edx*4], ecx
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
xor ecx, ecx
inc edi
mov cx, word [esi + 6]
cmp edi, ecx
jl 0x4a9a23
mov edx, dword [esp + 0x20]
xor eax, eax
mov ax, word [esi + 2]
xor ecx, ecx
mov cx, word [esi + 4]
pop ebp
pop ebx
mov dword [edx], eax
pop edi
mov dword [edx + 4], ecx
mov eax, 1
pop esi
ret 0x10