joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
test eax, eax
push edi
mov byte [esi + 0x58], 0
je 0x462531
push eax
call fcn.004fdb2c
mov ebp, eax
mov dword [esp + 0xc], ebp
jmp 0x462547
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004fdb2c
mov dword [esp + 0xc], eax
mov ebp, eax
test ebp, ebp
je 0x46256e
mov edi, dword [esi + 0x1c]
mov ecx, esi
call fcn.005001f2
mov ecx, dword [ebp + 0x1c]
movzx eax, ax
push edi
or eax, 0x27390000
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x46258f
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov dword [esi + 0x54], ecx
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004fdb2c
mov ecx, eax
call fcn.005057e3
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x50]
mov edx, dword [esp + 0x18]
add eax, ecx
push 1
mov dword [esp + 0x20], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
mov ecx, esi
call fcn.00500230
mov eax, dword [esi + 0x7c]
xor edi, edi
test eax, eax
jle 0x462606
lea ebx, [ebx]
test edi, edi
jl 0x4626e6
cmp edi, dword [esi + 0x7c]
jge 0x4626e6
mov eax, dword [esi + 0x78]
mov ecx, dword [eax + edi*4]
push 0
call fcn.0050026e
mov eax, dword [esi + 0x7c]
inc edi
cmp edi, eax
jl 0x4625e0
mov eax, dword [esi + 0x90]
push ebx
xor ebx, ebx
test eax, eax
jle 0x4626b7
test ebx, ebx
jl 0x4626eb
cmp ebx, dword [esi + 0x90]
jge 0x4626eb
mov ecx, dword [esi + 0x8c]
mov edi, dword [ecx + ebx*4]
mov edx, dword [edi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004fdb2c
mov ecx, dword [edi + 0x1c]
mov ebp, eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.005057e3
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
mov ecx, dword [esp + 0x30]
sub eax, edx
mov edx, dword [esp + 0x28]
sub ecx, eax
sub edx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
push 1
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
push ecx
push edx
push eax
mov ecx, edi
mov dword [esp + 0x3c], edx
call fcn.00500230
mov edx, dword [edi + 0x1c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x90]
inc ebx
cmp ebx, eax
jl 0x462617
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x4626de
mov edi, dword [esi + 0x1c]
mov ecx, esi
call fcn.005001f2
movzx eax, ax
push edi
or eax, 0x273a0000
push eax
mov eax, dword [ebp + 0x1c]
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
jmp fcn.004f96a8
jmp fcn.004f96a8
Function at 0x465a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.00463b20
mov ecx, eax
jmp fcn.00465010

Function at 0x466d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x525928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00505517
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x34]
push eax
mov dword [esp + 0x20], 0
mov dword [esi], method.CDC.virtual_0
mov dword [esi + 0x10], eax
mov dword [ecx + 0xc], edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.005059ff
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
sub eax, edx
mov edx, dword [edi]
push eax
sub ecx, edx
mov edx, dword [esi + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
neg ebp
push ebp
neg ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.0050552b
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x468040
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x525948
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, dword [esp + 0x54]
test esi, esi
push edi
jne 0x468066
xor eax, eax
jmp 0x468069
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x74]
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.004675e0
test esi, esi
mov dword [esp + 0x50], 0
jne 0x468088
xor eax, eax
jmp 0x46808b
mov eax, dword [esi + 4]
push edi
push eax
lea ecx, [esp + 0x10]
call fcn.00467700
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
push 3
lea eax, [esp + 0x34]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x74]
push eax
push ecx
mov dword [esp + 0x50], edx
call dword [sym.imp.GDI32.dll_Polygon]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
mov dword [esp + 0x10], 0x54d538
call esi
mov edi, vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edi
call fcn.00505d53
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x24], 0x54d534
call esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.00505d53
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x4682f8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x525988
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x468312
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push edi
mov ecx, esi
call fcn.00468230
mov ecx, dword [esi]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4683b6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4683b6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4683b6
lea ecx, [esp + 8]
call fcn.004fac5a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 1
push 0
push 0x19
push edx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 0
call fcn.004fade0
mov esi, dword [esi]
push edi
push esi
call fcn.00505cee
push eax
lea ecx, [esp + 0x10]
call fcn.00467090
mov ecx, dword [esp + 0xc]
push 0
push 0
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.004fadd5
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x28]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x46b950
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 + 0x44], edx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x30]
lea edx, [esi + 0xc]
mov dword [esi], 0x54dab8
mov dword [esi + 8], 0
mov dword [esi + 0x40], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46b981
mov eax, dword [esp + 0x34]
lea edx, [esi + 0x20]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46b994
mov eax, dword [0x5829d8]
test eax, eax
jne 0x46b9b1
call fcn.004fe3b5
mov dword [0x5829d8], eax
mov ecx, dword [0x5829d4]
test ecx, ecx
jne 0x46b9d0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x10]
mov dword [0x5829d4], ecx
mov eax, dword [esi + 0x40]
cmp eax, ecx
jbe 0x46b9e2
cmp byte [eax], 0x68
jne 0x46b9e2
mov ecx, dword [eax + 1]
mov dword [esi + 0x40], ecx
mov eax, esi
pop esi
add esp, 0x24
ret 0x14
Function at 0x4794e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x526080
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
mov edx, dword [eax + 0xc]
sub esp, 0x2c
push ebx
mov ebx, ecx
mov ecx, dword [eax + 4]
push ebp
sub edx, ecx
mov ecx, dword [esp + 0x50]
mov ebp, dword [ecx + 4]
push esi
mov esi, dword [ecx + 0xc]
add esi, ebp
cmp esi, edx
jg 0x47965c
push edi
mov edi, dword [esp + 0x5c]
cmp edi, 0xffffffff
je 0x47963e
mov edx, dword [ebx + 0xc]
xor esi, esi
cmp edx, esi
jne 0x47963e
push edi
mov ecx, ebx
call fcn.004787a0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], vtable.CBitmap.0
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x50]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov ebp, dword [esi]
sub eax, ecx
mov ecx, dword [esi + 8]
sub ecx, ebp
mov ebp, dword [esp + 0x4c]
push eax
mov eax, dword [ebp + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x14]
call fcn.00505cfc
lea ecx, [esp + 0x10]
push ecx
push ebp
lea ecx, [esp + 0x30]
call fcn.004677b0
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
sub eax, ecx
mov ecx, dword [esi + 8]
sub ecx, edx
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 1
mov dword [esp + 0x2c], eax
call fcn.00512db1
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, ebx
call fcn.00478dd0
mov ecx, dword [esp + 0x2c]
mov ebp, dword [ebp + 4]
push edi
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push ebp
call fcn.00498f80
mov ecx, eax
call fcn.00499010
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call fcn.004678a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00505d53
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 0x1c
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push edx
push ecx
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x60]
push eax
push ecx
mov ecx, ebx
call fcn.00478dd0
pop edi
mov ecx, dword [esp + 0x38]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0x1c
Function at 0x47a6c0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x5260fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebx, ecx
push esi
lea esi, [ebx + 0x14]
push edi
mov dword [esp + 0x14], ebx
mov dword [esi], 0x550ee0
call fcn.005011a5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
xor eax, eax
xor ebp, ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
test byte [0x582bb4], 1
mov dword [esp + 0x20], ebp
jne 0x47a74f
or dword [0x582bb4], 1
xor eax, eax
mov ecx, 0x45
mov edi, 0x582aa0
rep stosd dword es:[edi], eax
push 0x582aa0
mov dword [0x582aa0], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x582ab0], 2
jb 0x47a768
cmp dword [0x582aa4], 4
jb 0x47a768
mov eax, 1
jmp 0x47a76a
xor eax, eax
movzx edx, al
push str.User32.dll
mov ecx, esi
mov dword [esp + 0x14], edx
call fcn.0047a3f0
test eax, eax
jne 0x47a78d
push str.User32.dll
mov ecx, esi
call fcn.0047a480
cmp dword [ebx + 0x1c], ebp
je 0x47a84e
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x47a84e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53c244
push eax
call edi
xor ecx, ecx
cmp eax, ebp
setne cl
mov dword [ebx], eax
mov eax, ecx
cmp eax, ebp
je 0x47a84e
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x47a84e
push str.MonitorFromWindow
push eax
call edi
xor edx, edx
cmp eax, ebp
setne dl
mov dword [ebx + 4], eax
mov eax, edx
cmp eax, ebp
je 0x47a84e
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x47a84e
push str.MonitorFromRect
push eax
call edi
xor ecx, ecx
cmp eax, ebp
setne cl
mov dword [ebx + 8], eax
mov eax, ecx
cmp eax, ebp
je 0x47a84e
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x47a84e
push str.MonitorFromPoint
push eax
call edi
xor edx, edx
cmp eax, ebp
setne dl
mov dword [ebx + 0xc], eax
mov eax, edx
cmp eax, ebp
je 0x47a84e
cmp dword [esp + 0x10], ebp
mov eax, str.GetMonitorInfoW
jne 0x47a833
mov eax, str.GetMonitorInfoA
mov esi, dword [esi + 8]
cmp esi, ebp
je 0x47a84e
push eax
push esi
call edi
xor ecx, ecx
cmp eax, ebp
setne cl
mov dword [ebx + 0x10], eax
mov eax, ecx
cmp eax, ebp
jne 0x47a85c
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x10], ebp
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47b410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x526228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push str.TEXTFILE
mov esi, ecx
mov dword [esp + 8], 0
mov eax, dword [esi + 0xc]
push str.THEMES_INI
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47b473
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47b473
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push str._File.
push eax
call fcn.0042c040
mov esi, eax
add esp, 8
test esi, esi
jne 0x47b497
mov esi, dword [esp + 0x18]
push 0x532820
mov ecx, esi
call fcn.00402aa0
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push 0x5d
push esi
call fcn.0042ec1e
sub eax, esi
sar eax, 1
sub eax, 6
push eax
add esi, 0xc
lea edx, [esp + 0x10]
push esi
push edx
call fcn.0047af00
mov esi, dword [esp + 0x2c]
push 0x5510d4
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x30], 0
call fcn.0050eee3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x20
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b4fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x480610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x526650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov eax, 0xaa
push edi
mov edi, ecx
mov ecx, 0x55
xor esi, esi
mov word [esp + 0x20], cx
mov word [esp + 0x22], ax
mov word [esp + 0x24], cx
mov word [esp + 0x26], ax
mov word [esp + 0x28], cx
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], cx
mov word [esp + 0x2e], ax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], vtable.CBitmap.0
lea eax, [esp + 0x20]
push eax
push 1
push 1
push 8
push 8
mov dword [esp + 0x4c], esi
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.00505cfc
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], vtable.CBrush.0
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x3c], 1
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.00505cfc
mov esi, dword [esp + 0x40]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00505dd8
mov ebx, dword [esi]
push 0xf
mov ecx, edi
mov ebp, eax
call fcn.00447770
push eax
mov ecx, esi
call dword [ebx + 0x2c]
mov ebx, eax
mov eax, dword [esi]
push 0x14
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.00447770
push eax
mov eax, dword [esp + 0x44]
mov ecx, esi
call dword [eax + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
push 0xf00021
sub ecx, edx
push ecx
sub eax, edi
push eax
mov eax, dword [esi + 4]
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push ebp
mov ecx, esi
call fcn.00505dd8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x10]
call fcn.00505d53
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
mov dword [esp + 0x10], esi
call fcn.00505d53
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x18], esi
call fcn.00505d53
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x494210
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 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49423f
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 0x49429a
cmp dword [esp + 8], 0xe
jne 0x49429a
push 0
lea eax, [esp + 0xc]
push eax
push 0x28
lea ecx, [esp + 0x28]
push ecx
push esi
call edi
test eax, eax
je 0x49429a
cmp dword [esp + 8], 0x28
jne 0x49429a
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 0x4942b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebp
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x494344
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push ebp
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 0x49433d
cmp dword [esp + 8], 4
jne 0x49433d
push ebx
push esi
push edi
mov ecx, 4
lea edi, [esp + 0x10]
lea esi, [esp + 0x18]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x494327
sbb ebx, ebx
sbb ebx, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
test ebx, ebx
pop ebx
sete al
pop ebp
add esp, 0xc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
add esp, 0xc
ret

Function at 0x494350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x553ed4
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
je 0x49438b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x494390
xor eax, eax
pop esi
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov eax, dword [eax]
lea ecx, [esp + 4]
sub eax, dword [ecx]
neg eax
sbb eax, eax
inc eax
pop esi
pop ecx
ret
Function at 0x494a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x527098
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [esp + 0x34]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x494a3e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x494a51
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x494a71
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
mov ebx, dword [ebp + 8]
imul ebx, dword [ebp + 4]
shl ebx, 2
cmp word [ebp + 0xe], 0x20
mov dword [esp + 0x14], 0
jne 0x494b3e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebx + 0x28]
cmp eax, ecx
jb 0x494b3e
lea ecx, [esp + 0x1c]
call fcn.00505517
push 0
mov dword [esp + 0x38], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call fcn.005059ff
push 0x34
call fcn.0042c9d3
add esp, 4
push 0
push 0
lea edx, [esp + 0x18]
push edx
mov edi, eax
push 0
mov ecx, 0xa
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x14], ebx
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
test esi, esi
je 0x494b20
mov eax, dword [esp + 0x10]
test eax, eax
je 0x494b20
push ebx
add ebp, 0x28
push ebp
push eax
call fcn.0045a400
add esp, 0xc
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042c81d
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.00505a7d
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
pop ebx
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret