joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e320
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.00457660
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x44e3b7
cmp dword [esp + 8], 6
jb 0x44e3b7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00455277
add esp, 0x118
ret

Function at 0x44e3d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484380
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4a8068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.004053c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00419c40
mov ecx, eax
call fcn.00419d00
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.004053c0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00419c40
mov ecx, eax
call fcn.00419d00
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004052e0
test ebx, ebx
je 0x44e4e5
test esi, esi
je 0x44e4e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f3f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x4aa790], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x4aa490], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x4aa690], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x4aa590], al
inc esi
cmp esi, 0x100
jl 0x44f500
pop esi
add esp, 0x80
ret
Function at 0x46baff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046b97e

Function at 0x4737fd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004734bd

Function at 0x47a970
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push 0x410
push 0
push eax
call fcn.00457660
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x424]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x47a9e2
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x47a9fa
mov eax, dword [esp + 4]
test eax, eax
je 0x47a9e2
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop edi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00455277
add esp, 0x418
ret
lea edx, [esp + 8]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47aa02
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004069f0
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x47aa2e
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
xor ecx, esp
call fcn.00455277
add esp, 0x418
ret

Function at 0x47aa50
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00457660
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47aab7
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x47aaa0
jne 0x47aab7
cmp dword [esp + 8], 0
jbe 0x47aab7
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00455277
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00455277
add esp, 0x118
ret

Function at 0x47aad0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x4a89d0], 0
jne 0x47ab52
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00457660
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ab33
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a89c0
call fcn.004069f0
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00455277
add esp, 0x214
ret
Function at 0x47ac00
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x4845c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4aa3c8]
test eax, eax
jle 0x47ac51
inc eax
mov dword [0x4aa3c8], eax
mov al, 1
jmp 0x47ad43
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0041a9f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041b620
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041aa70
test bl, bl
je 0x47ad33
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x47ad33
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x47ad2c
inc dword [0x4aa3c8]
mov eax, dword [edi]
test eax, eax
je 0x47acd6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x4a89e8], 0
mov dword [ebp - 0x10], 0
jne 0x47ad2c
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.00457660
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x4a89d8
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.0040bbe0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47ad41
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00455277
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x9c8634f
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0xf3d6d14
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x40b3f0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495043
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x4d406c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
xor al, al
mov edx, dword [ebx + 0x10]
mov edi, dword [ebx + 0x14]
cmp esi, dword [0x4df380]
jne 0x40b44e
call fcn.00428e00
jmp 0x40b5f1
cmp esi, 0x4a
jne 0x40b5d0
test edx, edx
je 0x40b5f1
cmp dword [edx], 1
jne 0x40b5f1
push dword [edx + 4]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x80], 0
push dword [edx + 8]
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
call fcn.00404f30
push ecx
lea edx, [ebp - 0x90]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040ad70
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x40b4e2
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b4d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b617
push edx
push ecx
call fcn.0045cf49
add esp, 8
xor al, al
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
mov byte [ebp - 0x71], al
call fcn.0044bbae
cmp eax, 0xb
jl 0x40b5c3
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push str._SE_SET_DEFAULT_BROWSER_SUCC
push 0
push 1
push 0
call esi
push str._SE_SET_DEFAULT_BROWSER_FAILED
push 0
push 1
push 0
mov edi, eax
call esi
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x78], eax
xorps xmm0, xmm0
cmovae ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], str.runas
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], str._SogouDefault0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x40], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40b5bb
mov eax, dword [ebp - 0x78]
push 0x2710
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0
push eax
push 2
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x38]
call esi
mov al, 1
mov byte [ebp - 0x71], al
push edi
call esi
push dword [ebp - 0x78]
call esi
lea ecx, [ebp - 0x34]
call fcn.004054f0
mov al, byte [ebp - 0x71]
jmp 0x40b5f1
cmp esi, dword [0x4df384]
jne 0x40b5eb
push dword [ecx + 0x164]
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
setne al
jmp 0x40b5f1
mov dword [edi], 0
movzx eax, al
xor eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045cf38
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004626c9
int3
Function at 0x413020
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495759
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4d406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov word [esi + 0x48], 0xff00
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x58]
mov dword [esi], vtable.CTitleBarWnd.0
call fcn.00405b60
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x4b6760
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00405220
sub esp, 0x14
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
lea ecx, [esi + 0xc4]
push eax
call fcn.0043b55a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004054f0
sub esp, 0xc
lea ecx, [esi + 0x154]
call fcn.0044250a
xor eax, eax
mov dword [esi + 0x224], 0
mov dword [esi + 0x228], 7
mov word [esi + 0x214], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413f60
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495858
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4d406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov word [esi + 0x48], 0xff00
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], vtable.CUITextLayoutContainter.0
mov dword [esi + 0x58], esi
mov dword [esi + 0x5c], 0
mov byte [esi + 0x60], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0xff000000
mov dword [esi + 0x74], 0xff000000
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov byte [esi + 0x90], 1
mov dword [ebp - 4], 0
push ecx
push 0
push 4
mov dword [esi], vtable.CUIProgressBar.1.0
mov dword [esi + 0x54], vtable.CUIProgressBar.0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0x64
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xa
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
call fcn.00437021
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x414360
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49589e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x4d406c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.CUIBarPainter.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [ebp - 4], 2
xor edx, edx
mov dword [esi + 0xc], 0
mov ecx, 0x8d
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
push 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
call fcn.0041d0e0
mov edi, eax
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x41443e
cmp eax, edi
je 0x41443e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x2c]
mov dword [esi + 4], edi
push eax
xorps xmm0, xmm0
push 0x18
push edi
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x414466
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
jmp 0x41446c
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
mov eax, edi
mov dword [ebp - 0x18], ecx
cdq
sub eax, edx
mov dword [ebp - 0x20], 0
sar eax, 1
xor edx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edi
movups xmm0, xmmword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
movups xmmword [esi + 0x1c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
mov ecx, 0x92
push 0
movups xmmword [esi + 0xc], xmm0
call fcn.0041d0e0
mov ecx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x4144d3
cmp ecx, eax
je 0x4144d3
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
mov dword [esi + 8], eax
push ecx
xorps xmm0, xmm0
push 0x18
push eax
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4144fb
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
jmp 0x4144fe
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], 0
mov eax, esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ecx
movups xmm0, xmmword [ebp - 0x24]
movups xmmword [esi + 0x2c], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045cf38
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41d0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49619c
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4d406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x4e02bc]
cmp eax, dword [edx + 4]
jle 0x41d17d
push 0x4e02bc
call fcn.0045d4bf
add esp, 4
cmp dword [0x4e02bc], 0xffffffff
jne 0x41d17d
mov dword [ebp - 4], 0
mov dword [0x4e02c0], 0
mov dword [0x4e02c4], 0
call fcn.0041d370
push 0x49b630
mov dword [0x4e02c0], eax
call fcn.0045d20c
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x4e02bc
call fcn.0045d475
add esp, 4
mov esi, dword [0x4e02c0]
mov eax, esi
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x41d1bd
nop
cmp dword [ecx + 0x10], edi
jb 0x41d1a2
ja 0x41d19c
cmp dword [ecx + 0x14], ebx
jb 0x41d1a2
mov eax, ecx
mov ecx, dword [ecx]
jmp 0x41d1a5
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x41d190
cmp eax, esi
je 0x41d1bd
mov ecx, dword [eax + 0x10]
cmp edi, ecx
jb 0x41d1bd
ja 0x41d1bf
cmp ebx, dword [eax + 0x14]
jae 0x41d1bf
mov eax, esi
cmp eax, esi
je 0x41d1d8
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4df4fc]
push 0x4b7258
movzx eax, di
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d22d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41d22d
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41d22d
mov edx, dword [ebp - 0x18]
sub esp, 8
mov ecx, eax
call fcn.0044faa9
add esp, 8
mov esi, eax
jmp 0x41d22f
xor esi, esi
mov eax, esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x41d28a
test ebx, ebx
je 0x41d266
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41d266
sub esp, 8
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov ecx, esi
call fcn.0044fbf0
add esp, 8
mov dword [ebp - 0x14], eax
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
call fcn.0041d3d0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0041d400
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret