joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4410f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
add dword [esp + 0x48], 0x1c
xor edi, edi
push edi
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.0043b78b
call fcn.0043457f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
push 0x444254
lea eax, [esp + 0x44]
push str.ck_W_t
push eax
mov dword [esp + 0x44], edi
call fcn.00404170
add esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], vtable.CFont.0
push 0x4441d8
push 0x20
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x2bc
push edi
push edi
push edi
push 0x1e
mov byte [esp + 0x70], 1
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
lea ecx, [esp + 0x14]
call fcn.00436974
mov edx, dword [esi]
push 0xffffff
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x28]
push 1
mov ecx, esi
call fcn.00435f8b
mov edi, dword [esp + 0x40]
mov eax, dword [edi - 0xc]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x18]
sub eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
sar ecx, 1
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x50]
sub eax, edx
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
sar ebp, 1
add ebp, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebp
add ebx, ecx
add ebp, eax
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov eax, dword [edi - 0xc]
push eax
push edi
mov ecx, esi
call dword [edx + 0x68]
lea ecx, [esp + 0x10]
call fcn.004369cb
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.004369cb
add edi, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4051da
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x4060e0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x441238
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, dword [esp + 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40611d
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 8
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x48], 1
mov word [esp + 0x4c], 0xa
call fcn.00405dc0
mov esi, dword [esp + 0x70]
test esi, esi
mov dword [esp + 0x64], 0
je 0x40618c
push 0x444370
call fcn.00420329
add esp, 4
push eax
push 0x444370
lea ecx, [esp + 0x74]
call fcn.00403d10
push esi
call fcn.00420329
add esp, 4
push eax
push esi
lea ecx, [esp + 0x74]
call fcn.00403d10
mov edx, dword [esp + 0x6c]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, dword [edx - 4]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, edi
or ecx, eax
pop edi
jge 0x4061c3
push 0
lea ecx, [esp + 0x6c]
call fcn.00402c90
mov edx, dword [esp + 0x68]
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x230
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40620d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x58]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 8

Function at 0x407570
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
push 0x208
lea eax, [esp + 8]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 4]
push ecx
mov edx, ecx
push 0x443a4c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x10]
push 0x443a68
push eax
call fcn.0041fdf3
add esp, 0x14
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004060e0
pop esi
add esp, 0x208
ret
Function at 0x40ba40
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x441948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 8], eax
call fcn.00436669
mov esi, eax
test esi, esi
jne 0x40ba8a
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esi + 8]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xc
push eax
call edi
mov ecx, dword [esi + 8]
push 8
push ecx
call edi
mov edx, dword [esi + 8]
push 0xa
push edx
mov ebx, eax
call edi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0043618f
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.00436677
mov eax, dword [esi + 4]
push edi
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [esp + 0x38]
push eax
mov ecx, ebp
call fcn.00436974
test ebp, ebp
je 0x40baf3
mov ebp, dword [ebp + 4]
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
call fcn.004369fd
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push 0
push 0
push esi
push edi
push ebx
push 0
push 0
push edx
mov ebp, eax
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
je 0x40bb25
mov ebp, dword [ebp + 4]
mov eax, dword [esp + 0x1c]
push ebp
push eax
call fcn.004369fd
lea ecx, [esp + 0x18]
call fcn.004366df
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.004366f5
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
pop edi
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40c560
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 0xc]
mov cl, byte [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test eax, eax
push edi
jle 0x40c69e
mov edi, dword [esp + 0x14]
push ebp
mov edi, edi
xor edx, edx
mov eax, ebx
mov ebp, 3
div ebp
sub edx, 0
je 0x40c65d
dec edx
je 0x40c608
dec edx
jne 0x40c690
mov al, byte [edi]
shr al, 6
or al, cl
and al, 0x3f
cmp al, 0x1a
jae 0x40c5af
add al, 0x41
jmp 0x40c5c9
cmp al, 0x34
jae 0x40c5b7
add al, 0x47
jmp 0x40c5c9
cmp al, 0x3e
jae 0x40c5bf
sub al, 4
jmp 0x40c5c9
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
mov al, byte [edi]
and al, 0x3f
inc esi
cmp al, 0x1a
jae 0x40c5dd
add al, 0x41
mov byte [esi], al
jmp 0x40c68e
cmp al, 0x34
jae 0x40c5ea
add al, 0x47
mov byte [esi], al
jmp 0x40c68e
cmp al, 0x3e
jae 0x40c5f7
sub al, 4
mov byte [esi], al
jmp 0x40c68e
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
jmp 0x40c68e
mov al, byte [edi]
shr al, 4
or al, cl
and al, 0x3f
cmp al, 0x1a
jae 0x40c623
add al, 0x41
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x40c68e
cmp al, 0x34
jae 0x40c635
add al, 0x47
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x40c68e
cmp al, 0x3e
jae 0x40c647
sub al, 4
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x40c68e
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x40c68e
mov al, byte [edi]
shr al, 2
cmp al, 0x1a
jae 0x40c66a
add al, 0x41
jmp 0x40c684
cmp al, 0x34
jae 0x40c672
add al, 0x47
jmp 0x40c684
cmp al, 0x3e
jae 0x40c67a
sub al, 4
jmp 0x40c684
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
mov cl, byte [edi]
and cl, 3
shl cl, 4
inc esi
inc edi
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x40c580
pop ebp
cdq
mov edi, 3
idiv edi
test edx, edx
je 0x40c6e5
and cl, 0x3f
cmp cl, 0x1a
jae 0x40c6b7
add cl, 0x41
jmp 0x40c6d5
cmp cl, 0x34
jae 0x40c6c1
add cl, 0x47
jmp 0x40c6d5
cmp cl, 0x3e
jae 0x40c6cb
sub cl, 4
jmp 0x40c6d5
setne cl
lea ecx, [ecx*4 + 0x2b]
mov byte [esi], cl
inc esi
cmp edx, 1
jne 0x40c6e1
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0x3d
inc esi
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
mov byte [esi], 0
pop esi
sub eax, ecx
pop ebx
ret
Function at 0x40c700
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov ecx, ebp
push edi
mov edi, dword [esp + 0x10]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40c710
sub ecx, esi
mov eax, ecx
xor esi, esi
test eax, eax
jle 0x40c7ea
push ebx
mov bl, byte [esp + 0x14]
lea ebx, [ebx]
cmp byte [ebp], 0x3d
je 0x40c7e9
lea ebx, [ebx]
mov cl, byte [ebp]
test cl, cl
je 0x40c7e9
cmp cl, 0x41
jl 0x40c75a
cmp cl, 0x5a
jg 0x40c75a
sub cl, 0x41
jmp 0x40c78a
cmp cl, 0x61
jl 0x40c769
cmp cl, 0x7a
jg 0x40c769
sub cl, 0x47
jmp 0x40c78a
cmp cl, 0x30
jl 0x40c778
cmp cl, 0x39
jg 0x40c778
add cl, 4
jmp 0x40c78a
cmp cl, 0x2b
jne 0x40c781
mov cl, 0x3e
jmp 0x40c78a
cmp cl, 0x2f
setne cl
add cl, 0x3f
inc ebp
cmp cl, 0x40
je 0x40c740
cmp cl, 0x41
je 0x40c7e9
mov edx, esi
and edx, 0x80000003
jns 0x40c7a4
dec edx
or edx, 0xfffffffc
inc edx
cmp edx, 3
ja case.default.0x40c7a9
jmp dword [edx*4 + 0x40c7f8]
shl cl, 2
mov bl, cl
jmp case.default.0x40c7a9
mov dl, cl
shr dl, 4
or dl, bl
mov byte [edi], dl
inc edi
shl cl, 4
mov bl, cl
jmp case.default.0x40c7a9
mov dl, cl
shr dl, 2
or dl, bl
mov byte [edi], dl
inc edi
shl cl, 6
mov bl, cl
jmp case.default.0x40c7a9
mov dl, bl
or dl, cl
mov byte [edi], dl
inc edi
inc esi
cmp esi, eax
jl 0x40c730
pop ebx
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
sub eax, ecx
pop ebp
ret

Function at 0x40cd10
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x457138]
sub esp, 0x254
test eax, eax
jne 0x40cddf
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x445030
push SysReAllocStringLen
mov dword [0x457138], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cddf
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cdd5
push esi
push edi
mov ecx, 0xb
mov esi, 0x445004
lea edi, [esp + 0x14]
lea edx, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x40cdd3
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi*2 + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40cdd3
mov dword [0x457134], 1
pop edi
pop esi
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x457134]
add esp, 0x254
ret
Function at 0x40d4a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441a23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esi], 0x445110
call fcn.0042e401
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov ecx, ebx
mov byte [esp + 0x18], 1
call fcn.0042e401
mov dword [ebx], method.CPtrArray.virtual_0
or eax, 0xffffffff
push 0x4570e4
push edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40dd60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x441ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.CPen.0
mov ecx, dword [esp + 0x3c]
push ecx
push eax
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.00436974
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00436a50
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
lea eax, [edi + 2]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0043640f
lea eax, [edi + 5]
push eax
push ebx
mov ecx, esi
call fcn.004360aa
lea ebp, [edi + 3]
push ebp
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0043640f
lea eax, [edi + 6]
push eax
lea eax, [ebx + 1]
push eax
mov ecx, esi
call fcn.004360aa
lea eax, [edi + 4]
push eax
lea ecx, [ebx + 2]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0043640f
lea eax, [edi + 7]
push eax
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.004360aa
push ebp
lea eax, [ebx + 3]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0043640f
lea eax, [edi + 6]
push eax
lea eax, [ebx + 3]
push eax
mov ecx, esi
call fcn.004360aa
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0043640f
lea eax, [edi + 5]
push eax
lea eax, [ebx + 4]
push eax
mov ecx, esi
call fcn.004360aa
lea ecx, [edi + 1]
push ecx
lea eax, [ebx + 5]
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0043640f
lea eax, [edi + 4]
push eax
lea eax, [ebx + 5]
push eax
mov ecx, esi
call fcn.004360aa
push edi
add ebx, 6
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0043640f
push ebp
push ebx
mov ecx, esi
call fcn.004360aa
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.00436a50
lea ecx, [esp + 0x10]
call fcn.004369cb
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.004369cb
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x40e420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov ebp, ecx
mov eax, esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
push edi
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edi, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], vtable.CBrush.0
cmp dword [0x45711c], 7
mov dword [esp + 0x30], edi
jne 0x40e487
call fcn.0040cd10
test eax, eax
jne 0x40e487
push 0xf
jmp 0x40e489
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x40e4ac
fld qword [0x445138]
sub esp, 8
fstp qword [esp]
push eax
call fcn.0040c9d0
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.00436974
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.004369cb
cmp dword [0x45711c], 2
jl 0x40e4fa
mov ecx, dword [edi + 4]
push 0xf
push 2
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
test eax, eax
push 7
jne 0x40e51e
call ebx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
add edx, 4
push edx
add eax, 4
push eax
push edi
mov ecx, ebp
call fcn.0040dd60
jmp 0x40e536
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
add ecx, 4
push ecx
add edx, 5
push edx
push edi
mov ecx, ebp
call fcn.0040dc40
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.004369cb
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x40e9b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0043d13b
movzx ebx, word [esp + 0x14]
mov edi, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 2
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x40e9e1
push 2
push ebx
xor edi, edi
push edi
call ebp
mov esi, eax
test esi, esi
je 0x40ea07
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ea07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40ea07
push eax
call fcn.0040ccd0
add esp, 4
cmp ax, 0x10
je 0x40ea0e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push edi
call fcn.00437a64
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x416c69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x416cbc
call fcn.0043d13b
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x416cbc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x416cb2
xor eax, eax
jmp 0x416dd5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x416cec
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x416cec
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x416dd2
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x416d19
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041577b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x416dd2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x416d62
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x416d62
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x416d5c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041577b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x416dc2
and dword [ebp + 0xc], 0
jmp 0x416dc2
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x416dc2
push 0xc
call fcn.00433b36
mov esi, eax
test esi, esi
pop ecx
je 0x416da4
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x416da6
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x416dbd
push dword [ebp - 8]
call fcn.0042e5e0
jmp 0x416dc2
call fcn.0042e5b7
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x416d27
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41f593
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x449140
call fcn.004211d4
mov edi, 0x94
mov eax, edi
call fcn.0041fe40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4593d8], ecx
mov eax, dword [esi + 4]
mov dword [0x4593e4], eax
mov edx, dword [esi + 8]
mov dword [0x4593e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4593dc], esi
cmp ecx, 2
je 0x41f5f3
or esi, 0x8000
mov dword [0x4593dc], esi
shl eax, 8
add eax, edx
mov dword [0x4593e0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41f62e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f62e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41f646
cmp eax, 0x20b
je 0x41f633
mov dword [ebp - 0x1c], esi
jmp 0x41f65a
cmp dword [ecx + 0x84], 0xe
jbe 0x41f62e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41f654
cmp dword [ecx + 0x74], 0xe
jbe 0x41f62e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004230cb
pop ecx
test eax, eax
jne 0x41f66e
push 0x1c
call fcn.0041f56f
pop ecx
call fcn.00422fc2
test eax, eax
jne 0x41f67f
push 0x10
call fcn.0041f56f
pop ecx
call fcn.00422d5c
mov dword [ebp - 4], esi
call fcn.00422b5e
test eax, eax
jge 0x41f698
push 0x1b
call fcn.0041f54a
pop ecx
call fcn.00422abf
mov dword [0x45ad90], eax
call fcn.00422955
mov dword [0x4593c0], eax
call fcn.004228bf
test eax, eax
jge 0x41f6bd
push 8
call fcn.0041f54a
pop ecx
call fcn.0042268c
test eax, eax
jge 0x41f6ce
push 9
call fcn.0041f54a
pop ecx
push 1
call fcn.00420f53
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41f6e4
push eax
call fcn.0041f54a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00422646
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41f705
movzx eax, word [ebp - 0x40]
jmp 0x41f708
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042d2e5
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41f726
push edi
call fcn.00421080
call fcn.004210a2
jmp 0x41f758
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042120f
ret