joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4251fc
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x4daff3
call fcn.004468a0
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040a0d0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x42525e
call fcn.00421208
cmp eax, 1
jne 0x42525e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0042493c
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040bae0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00409ca0
mov dword [ebp + 8], SysFreeString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00409ca0
mov eax, esi
call fcn.00446978
ret 0x14

Function at 0x42528a
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x4db01e
call fcn.004468a0
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040a0d0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4252ec
call fcn.00421208
cmp eax, 1
jne 0x4252ec
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0042493c
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040bae0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00409ca0
mov dword [ebp + 8], SysFreeString
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00409ca0
mov eax, esi
call fcn.00446978
ret 8

Function at 0x43204e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00421e05
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x43207b
xor eax, eax
jmp 0x432121
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x432074
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x432074
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412982
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4320d2
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x4320c1
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00430b69
push edi
mov ebx, eax
call fcn.004129b1
pop ecx
test ebx, ebx
je 0x432114
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0043134b
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0043146e
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x4451b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x51f4f4]
jne 0x4451bf
repz ret
jmp fcn.0044c952

Function at 0x4580a1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044c22c
and dword [ebp - 4], 0
cmp dword [0x5250c0], 0
mov ebx, eax
jne 0x458152
push 0x4ed6bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x458203
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x458203
push eax
call fcn.0044c1ba
mov dword [esp], 0x4ed6a0
push edi
mov dword [0x5250c0], eax
call esi
push eax
call fcn.0044c1ba
mov dword [esp], 0x4ed68c
push edi
mov dword [0x5250c4], eax
call esi
push eax
call fcn.0044c1ba
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5250c8], eax
call esi
push eax
call fcn.0044c1ba
pop ecx
mov dword [0x5250d0], eax
test eax, eax
je 0x458152
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044c1ba
pop ecx
mov dword [0x5250cc], eax
mov eax, dword [0x5250cc]
cmp eax, ebx
je 0x4581aa
cmp dword [0x5250d0], ebx
je 0x4581aa
push eax
call fcn.0044c235
push dword [0x5250d0]
mov esi, eax
call fcn.0044c235
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4581aa
test edi, edi
je 0x4581aa
call esi
test eax, eax
je 0x4581a1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4581a1
test byte [ebp - 0xc], 1
jne 0x4581aa
or dword [ebp + 0x10], 0x200000
jmp 0x4581e3
mov eax, dword [0x5250c4]
cmp eax, ebx
je 0x4581e3
push eax
call fcn.0044c235
pop ecx
test eax, eax
je 0x4581e3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4581e3
mov eax, dword [0x5250c8]
cmp eax, ebx
je 0x4581e3
push eax
call fcn.0044c235
pop ecx
test eax, eax
je 0x4581e3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5250c0]
call fcn.0044c235
pop ecx
test eax, eax
je 0x458203
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x458205
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x479430
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esi + 0x40], ecx
lea ecx, [esi + 0xc]
push 0x14
push ecx
mov dword [esi], vtable.CXTPSkinManagerApiFunction.0
mov dword [esi + 8], 0
mov dword [esi + 0x44], edx
call fcn.0044cbc4
mov edx, dword [esp + 0x40]
push edx
lea eax, [esi + 0x20]
push 0x1e
push eax
call fcn.0044cbc4
add esp, 0x18
cmp dword [0x525694], 0
jne 0x47948e
call fcn.0041aa06
mov dword [0x525694], eax
mov ecx, dword [0x525690]
test ecx, ecx
jne 0x4794ad
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x10]
mov dword [0x525690], ecx
mov eax, dword [esi + 0x40]
cmp eax, ecx
jbe 0x4794bf
cmp byte [eax], 0x68
jne 0x4794bf
mov edx, dword [eax + 1]
mov dword [esi + 0x40], edx
mov eax, esi
pop esi
add esp, 0x24
ret 0x14

Function at 0x47d100
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
push eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x47d080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test eax, eax
je 0x47d14c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret

Function at 0x47d150
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x47d1d5
mov eax, dword [esi + 0x14]
push ebx
push eax
mov dword [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x14], edi
call ebx
test eax, eax
je 0x47d1c3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, edi
cmp dword [esp + 0x10], 0x103
jne 0x47d1c2
mov eax, dword [esi + 0xc]
inc edi
cmp edi, 0xa
ja 0x47d1b9
push 0x64
push eax
call ebp
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebx
test eax, eax
jne 0x47d190
jmp 0x47d1c2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ebp
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x4816c0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [edi + 4]
mov esi, ecx
push eax
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, 1
mov dword [esi + 4], eax
mov dword [edi + 0x80], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0x90]
test eax, eax
je 0x481713
cmp dword [esi + 0x20], 0
jne 0x481713
push 0
push 0
push 0x211
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
ret 4
Function at 0x486430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4de1db
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51f4f4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0x48
call fcn.00412982
add esp, 4
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x18], esi
cmp eax, esi
je 0x486479
push edi
mov ecx, eax
call fcn.00481640
mov esi, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0xffffffff
call fcn.00485e00
mov ecx, esi
mov edi, eax
call fcn.00480d10
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x48b600
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [ebp + 0x1f4]
test bl, bl
js 0x48b6dc
push esi
push edi
mov edi, ebx
and edi, 2
call fcn.00473030
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, edi
neg esi
sbb esi, esi
and esi, 3
add esi, 3
test bl, 8
jne 0x48b66a
test edi, edi
jne 0x48b65d
and ebx, 4
or ebx, 0x10
shr ebx, 2
mov esi, ebx
jmp 0x48b66a
and bl, 4
movzx esi, bl
neg esi
sbb esi, esi
add esi, 8
cmp dword [ebp + 0x1f8], 0
mov edi, 1
je 0x48b67d
mov edi, 2
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 0x20]
jne 0x48b68f
mov edi, 3
jmp 0x48b6b5
mov ebx, dword [ebp + 0x20]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
jne 0x48b6b5
push 0
push 0
push 0x129
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 1
jne 0x48b6b5
mov edi, 4
mov ecx, ebp
call fcn.0041d525
test eax, eax
jne 0x48b6c5
mov edi, 5
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push edi
push esi
push eax
call fcn.00474300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x48e530
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 0xf0]
test esi, esi
je 0x48e5c8
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
shr eax, 8
push edi
mov edi, dword [esi + 0x44]
cmp al, 2
jne 0x48e5c6
test edi, edi
je 0x48e5c6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esi + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x48e575
mov eax, dword [edi + 0x2c]
jmp 0x48e59a
cmp dword [esi + 4], 0
mov ecx, dword [esp + 0x1c]
jne 0x48e583
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x20]
add eax, ecx
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jl 0x48e598
mov edx, dword [edi + 0x38]
add ecx, edx
cmp eax, ecx
jl 0x48e59a
mov eax, ecx
push eax
mov ecx, ebx
call fcn.0048e4a0
mov dword [esi], 1
cmp ebp, 0x202
je 0x48e5bd
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x48e5c6
push 0
mov ecx, ebx
call fcn.0048e410
pop edi
pop ebp
pop esi
pop ebx
ret 0xc
Function at 0x49d470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4df4f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x51f4f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.TEXTFILE
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x28]
push str.THEMES_INI
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x49d4d9
mov esi, dword [esp + 0x1c]
push 0x506e28
mov ecx, esi
call fcn.0040a0d0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
mov ecx, dword [esi + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49d4b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push str._File.
push eax
call fcn.0044569f
mov esi, eax
add esp, 8
test esi, esi
je 0x49d4b4
push 0x5d
push esi
call fcn.00446b7f
sub eax, esi
sar eax, 1
sub eax, 6
push eax
add esi, 0xc
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0049ce20
mov esi, dword [esp + 0x30]
push 0x4f9f80
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x34], 0
call fcn.00409450
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x20
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d568
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4a0ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4dfc98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51f4f4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
push esi
push ebp
call fcn.004a7720
add esp, 8
test eax, eax
je 0x4a1050
mov eax, dword [esp + 0x48]
push eax
push esi
push ebp
call fcn.004af220
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 2
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4a1117
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4a1117
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4a1117
movzx eax, word [edi + 0xe]
mov edx, dword [esp + 0x48]
movzx esi, ax
imul esi, dword [edi + 4]
add esi, 0x1f
sar esi, 3
and esi, 0xfffffffc
imul esi, dword [edi + 8]
xor ecx, ecx
cmp ax, 0x20
sete cl
push ebx
push ebp
mov dword [esp + 0x1c], 0
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + 0x28]
cmp eax, ecx
jb 0x4a11b1
lea ecx, [esp + 0x20]
call fcn.0041f0d3
xor ebp, ebp
push ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call fcn.0041f952
cmp word [edi + 0xe], 0x18
jb 0x4a117f
push 0x34
call fcn.004461fb
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x4a112d
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041f9d1
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x28
push edi
push ebx
call fcn.0049b060
add esp, 0xc
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
push ebp
mov dword [ebx + 0x14], esi
mov eax, dword [esp + 0x34]
push ebx
push eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
test ebp, ebp
je 0x4a1174
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a1174
push esi
add edi, 0x28
push edi
push eax
call fcn.0049b060
add esp, 0xc
mov dword [esp + 0x14], ebp
push ebx
call fcn.004460a4
add esp, 4
jmp 0x4a11a0
push edi
call fcn.004a0770
mov esi, eax
push esi
push edi
call fcn.004a0810
add esp, 0xc
mov dword [esp + 0x14], eax
cmp esi, ebp
je 0x4a11a0
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041f9d1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x4a75b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a75df
xor eax, eax
pop esi
add esp, 0x3c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xe
lea edx, [esp + 0x18]
push edx
push esi
call edi
test eax, eax
je 0x4a763a
cmp dword [esp + 8], 0xe
jne 0x4a763a
push 0
lea eax, [esp + 0xc]
push eax
push 0x28
lea ecx, [esp + 0x28]
push ecx
push esi
call edi
test eax, eax
je 0x4a763a
cmp dword [esp + 8], 0x28
jne 0x4a763a
xor edx, edx
cmp word [esp + 0x2a], 0x20
push esi
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret

Function at 0x4a7650
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a7719
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push edi
mov byte [esp + 0x18], 0x89
mov byte [esp + 0x19], 0x50
mov byte [esp + 0x1a], 0x4e
mov byte [esp + 0x1b], 0x47
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a7712
cmp dword [esp + 0xc], 4
jne 0x4a7712
mov eax, dword [esp + 8]
push esi
cmp eax, dword [esp + 8]
je 0x4a76e2
movzx esi, al
sub esi, 0x89
jne 0x4a76f8
movzx esi, ah
sub esi, 0x50
jne 0x4a76f8
movzx esi, byte [esp + 0xe]
sub esi, 0x4e
jne 0x4a76f8
movzx esi, byte [esp + 0xf]
sub esi, 0x47
jne 0x4a76f8
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
add esp, 0xc
ret
sar esi, 0x1f
push edi
or esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
add esp, 0xc
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0xc
ret
Function at 0x4a7720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x4fabb4
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_FindResourceW]
test eax, eax
jne 0x4a7752
pop esi
pop ecx
ret
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4a7765
pop edi
pop esi
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [eax]
cmp ecx, dword [esp + 8]
je 0x4a779a
movzx esi, cl
sub esi, 0x89
jne 0x4a77ae
movzx esi, byte [eax + 1]
sub esi, 0x50
jne 0x4a77ae
movzx esi, byte [eax + 2]
sub esi, 0x4e
jne 0x4a77ae
movzx esi, byte [eax + 3]
sub esi, 0x47
jne 0x4a77ae
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret
sar esi, 0x1f
push edi
or esi, 1
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret

Function at 0x4a77d0
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_FindResourceW]
test eax, eax
jne 0x4a77eb
xor eax, eax
pop esi
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4a77e7
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4a77e7
xor ecx, ecx
cmp word [eax + 0xe], 0x20
push edi
sete cl
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4a8ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4e0288
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51f4f4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x4a8fbc
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4a8fbc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4a8fbc
mov esi, dword [edi + 8]
imul esi, dword [edi + 4]
add esi, esi
add esi, esi
cmp word [edi + 0xe], 0x20
mov dword [esp + 0x18], 0
jne 0x4a9037
mov ecx, dword [esp + 0x40]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [esi + 0x28]
cmp eax, edx
jb 0x4a9037
lea ecx, [esp + 0x20]
call fcn.0041f0d3
xor ebp, ebp
push ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call fcn.0041f952
push 0x34
call fcn.004461fb
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x4a8fd2
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041f9d1
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x28
push edi
push ebx
call fcn.0049b060
add esp, 0xc
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [ebx + 0x14], esi
mov ecx, dword [esp + 0x34]
push ebx
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
test ebp, ebp
je 0x4a9019
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a9019
push esi
add edi, 0x28
push edi
push eax
call fcn.0049b060
add esp, 0xc
mov dword [esp + 0x18], ebp
push ebx
call fcn.004460a4
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041f9d1
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x4abdf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e0571
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x51f4f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 2
call fcn.004aadf0
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 1
call fcn.004aa140
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.004aa140
mov eax, dword [esi + 0x18]
add esi, 8
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], vtable.CXTPImageManagerResource::CBitmapDC.0
test eax, eax
je 0x4abe6c
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, esi
call fcn.0041f9d1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4ac5f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e065f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x51f4f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CXTPImageManagerIcon.0
push 1
mov dword [esp + 0x18], 8
call fcn.004ab650
lea ecx, [esi + 0x12c]
mov byte [esp + 0x14], 7
call fcn.004ac1a0
lea ecx, [esi + 0x108]
mov byte [esp + 0x14], 6
call fcn.004ac1a0
lea ecx, [esi + 0xe4]
mov byte [esp + 0x14], 5
call fcn.004ac1a0
lea ecx, [esi + 0xc0]
mov byte [esp + 0x14], 4
call fcn.004ac1a0
lea ecx, [esi + 0x9c]
mov byte [esp + 0x14], 3
call fcn.004ac1a0
lea ecx, [esi + 0x78]
mov byte [esp + 0x14], 2
call fcn.004ac1a0
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 1
call fcn.004ac1a0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.004ac1a0
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0041e547
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret