joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423b85
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00423b01
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x423cf4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x423cf4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x423ca9
jg 0x423be1
test eax, eax
je 0x423c9f
push 1
push 0x1000
call fcn.0041a5e8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423c04
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x423c96
push 0x8000
push ebx
call fcn.0041610b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x423c2d
jg 0x423c28
cmp ecx, 0x1000
jb 0x423c2d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00418e66
add esp, 0x10
cmp eax, 0xffffffff
je 0x423c72
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x423c28
jl 0x423c59
test ecx, ecx
jne 0x423c1a
push dword [ebp - 0xc]
push ebx
call fcn.0041610b
push esi
call fcn.00416bed
add esp, 0xc
xor ebx, ebx
jmp 0x423d02
cmp byte [edi + 0x24], 0
je 0x423c89
cmp dword [edi + 0x20], 5
jne 0x423c89
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423c94
mov ebx, dword [edi + 0x18]
jmp 0x423c96
xor ebx, ebx
push esi
call fcn.00416bed
pop ecx
jmp 0x423d02
test ecx, ecx
jg 0x423c6b
jl 0x423ca9
test eax, eax
jae 0x423c6b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041832a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x423cc9
cmp byte [edi + 0x1c], 0
je 0x423c6b
jmp 0x423cfa
push ebx
call fcn.00414e25
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x423c6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x423d02
cmp byte [edi + 0x1c], 0
je 0x423cff
mov ebx, dword [edi + 0x18]
jmp 0x423d02
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041832a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42599d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42599d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c263
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x45d01c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
push 0x404
push 0
lea eax, [ebp - 0x424]
push eax
call fcn.0042a240
add esp, 0xc
mov dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x408df0
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x408df0
call fcn.00408090
mov edi, eax
jmp 0x408f22
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x408e13
call fcn.00408090
jmp 0x408f15
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x408e31
call fcn.00408090
jmp 0x408f15
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x408e52
mov edi, 0x8007000e
jmp 0x408f17
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], edx
test edx, edx
ja 0x408f66
jb 0x408e7c
cmp eax, 0xffffffff
ja 0x408f66
cmp eax, 0x400
jbe 0x408e98
push eax
lea ecx, [ebp - 0x424]
call fcn.0040b800
mov dword [ebp - 4], 1
jmp 0x408ecc
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x408ecc
mov eax, dword [ebp - 0x424]
test eax, eax
jne 0x408edd
mov edi, 0x8007000e
jmp 0x408f17
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x408ef8
call fcn.00408090
jmp 0x408f15
xor edx, edx
mov eax, dword [ebp - 0x424]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.00409c20
mov edi, eax
test esi, esi
je 0x408f22
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x408f3f
lea ecx, [ebp - 0x424]
call fcn.0040b7f0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004060c0
int3
Function at 0x40e8e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cbc0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45d01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push ecx
call fcn.0040f8d0
test eax, eax
jns 0x40e91e
xor eax, eax
jmp 0x40ea7f
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x10]
push ecx
lea ecx, [edi + 4]
call fcn.0040d700
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
lea ebx, [edi + 0x3c]
mov eax, edi
test ebx, ebx
cmove eax, ecx
push dword [eax + 4]
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 - 0x2c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x86
push dword [0x460cc4]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00412900
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0040ed40
push 0x12
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x44]
push str.SymbolGroupTabCtrl
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.004076f0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
push ecx
push 0
push eax
lea ecx, [edi + 0x24]
call fcn.0041a8c0
mov dword [ebx], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x40ea3f
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ea9d
push edx
push ecx
call fcn.00428145
add esp, 8
mov edx, dword [ebx]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
test edx, edx
je 0x40ea64
mov eax, dword [edx]
push 0
push edx
call dword [eax + 0x2ac]
mov ecx, edi
call fcn.0040ede0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040fd30
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret 4
call fcn.0042d453
int3
Function at 0x40ede0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x45d01c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
cmp dword [edi + 0x4c], 0
je 0x40ef44
mov eax, dword [edi + 0x50]
lea ecx, [edi + 0x50]
lea edx, [esp + 0x14]
push edx
call dword [eax + 0x10]
mov esi, dword [edi + 4]
lea eax, [esp + 0x14]
mov edi, dword [edi + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [esp + 0x10]
lea eax, [edi + 0x20]
push eax
push 0x45d930
call fcn.00407c70
add esp, 8
movzx eax, ax
mov ecx, edi
push eax
push 0
push 0
push 0x50000000
push 0x44e2dc
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00407b20
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 4]
call ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea esi, [edi + 0x24]
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esp + 0x10]
inc dword [esi]
lea eax, [edi + 0x74]
dec dword [edi + 0x2c]
xorps xmm0, xmm0
mov esi, dword [edi + 4]
push eax
push 0x45d8a0
movups xmmword [esp + 0x40], xmm0
call fcn.00407c70
add esp, 8
movzx eax, ax
lea ecx, [edi + 0x54]
push eax
push 0
push 0x8000000
push 0x88000000
push str.RCInputPreviewWnd
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.00407b20
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x4c]
lea ecx, [esi + 0x50]
push dword [eax + 4]
call fcn.00419980
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub eax, edx
mov ecx, dword [esp + 0x14]
push 1
push eax
mov eax, dword [esp + 0x24]
sub eax, ecx
push eax
mov eax, dword [esi + 0x4c]
push edx
push ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
mov eax, dword [esi + 0x4c]
push dword [eax + 4]
call ebx
mov ecx, esi
call fcn.0040f0b0
lea eax, [esi + 0x5c]
mov esi, dword [esi + 0x4c]
lea ecx, [esi + 0x34]
cmp ecx, eax
je 0x40ef2e
push dword [esp + 0x10]
push dword [eax + 4]
push dword [eax]
call fcn.0040ce00
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret
Function at 0x40fb10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cd4c
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x45d01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 0x24]
mov dword [ecx], vtable.RC::RCDUIFrameWindowImpl_class_RC::RCInputSymbolWnd__class_ATL::CWindow_.2.0
mov dword [eax], vtable.RC::RCDUIFrameWindowImpl_class_RC::RCInputSymbolWnd__class_ATL::CWindow_.1.0
mov dword [ecx + 0x2c], vtable.RC::RCDUIFrameWindowImpl_class_RC::RCInputSymbolWnd__class_ATL::CWindow_.0
mov dword [ebp - 4], 2
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x30], 0
mov byte [ebp - 4], 1
mov dword [ecx + 0x2c], vtable.IEventBase.0
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
mov dword [eax], vtable.RC::RCDUIWindow.0
mov dword [ebp - 4], 0xffffffff
lea eax, [ecx + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40fba0
push eax
call fcn.00427c0b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x410c30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x45d01c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], ebx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp - 0x2c]
lea eax, [ebx + 0x20]
push eax
push 0x45da50
call fcn.00407c70
add esp, 8
movzx eax, ax
mov ecx, ebx
push eax
push 0
push 0
push 0x50200000
push 0x44cce8
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00407b20
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea esi, [ebx + 0x84]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebx + 0x8c]
mov eax, ecx
sub eax, dword [esi]
sub eax, 0x15f
cdq
sub eax, edx
sar eax, 1
mov dword [esi], eax
sub ecx, eax
lea esi, [ebx + 0x78]
mov dword [ebx + 0x8c], ecx
cmp esi, edi
je 0x410ce6
push dword [ebp - 0x2c]
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.00411ca0
mov ecx, dword [esi + 4]
mov eax, dword [esi]
cmp eax, ecx
jne 0x410cf3
xor eax, eax
jmp 0x410d6c
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
mov ecx, ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00410b50
mov ecx, dword [ebx + 0x7c]
xor esi, esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx - 0xc]
mov ecx, dword [ecx - 8]
sub ecx, eax
mov dword [ebp - 0x30], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
lea eax, [edi - 1]
test eax, eax
js 0x410d67
mov ebx, dword [ebp - 0x30]
lea ecx, [eax + eax*2]
lea edx, [esi + 0x1b]
lea ecx, [ebx + ecx*4]
mov ebx, dword [ebp - 0x34]
cmp edi, eax
jbe 0x410de4
inc esi
cmp edx, dword [ebx + 0x90]
jg 0x410de1
sub ecx, 0xc
add edx, 0x1b
sub eax, 1
jns 0x410d47
mov eax, dword [ebp - 0x2c]
sub eax, esi
push 1
push eax
push 0
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetScrollRange]
push 1
push 0
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetScrollPos]
push dword [ebp - 0x2c]
mov esi, dword [ebx + 4]
lea eax, [ebx + 0x44]
push eax
xorps xmm0, xmm0
push 0x45d8a0
movups xmmword [ebp - 0x28], xmm0
call fcn.00407c70
add esp, 8
movzx eax, ax
lea ecx, [ebx + 0x24]
push eax
push 0
push 0x8000000
push 0x88000000
push str.RCInputPreviewWnd
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00407b20
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00427d5e
mov esp, ebp
pop ebp
ret 0xc
dec esi
jmp 0x410d67
call fcn.0040cb30
int3
Function at 0x413ba0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43de58
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x45d01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x413be3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00416770
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x413c0c
lea eax, [esi + 8]
jmp 0x413c0e
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x413c1e
cmp dword [ebx + 0x14], 8
jb 0x413c20
mov ebx, dword [ebx]
jmp 0x413c20
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x413c41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x413c41
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x413c6a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x413c7f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00428145
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret 4

Function at 0x414430
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x45d01c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.00427d7d
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.0042a240
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x41448c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00427d5e
add esp, 0x120
ret
Function at 0x416930
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4598d0
push 0x4294b0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x45d01c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x416999
xor eax, eax
jmp 0x416b0f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416ada
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x416ada
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416ada
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x416ada
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416ada
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x416ada
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416ada
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x416ada
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416ada
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x416ada
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x416ada
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x416ac3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x416ab0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x416ac0
jmp 0x416ada
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00416b36
test ebx, ebx
jne 0x416b0d
test esi, esi
je 0x416aff
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x416b0d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417030
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x45d01c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.0042a240
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x417172
cmp dword [esi + 4], 6
push edi
ja 0x417086
jne 0x41710e
cmp dword [esi + 8], 2
jb 0x41710e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x41710e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41710e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41710e
movups xmm0, xmmword [str.VS_VERSION_INFO]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x454990]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41710e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41710e
cmp word [edi + 2], ax
jbe 0x41710e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x417159
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0042a240
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x417159
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00427d5e
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.00427d5e
add esp, 0x140
ret
Function at 0x4186f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e628
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x45d01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x418726
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4187d0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004189e0
test al, al
je 0x41877f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4187bc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4187b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4187ed
push edx
push ecx
call fcn.00428145
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret
call fcn.0042d453
int3