joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4c9144]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [esi + 0x16], 0
mov al, byte [ebp + 0xc]
mov dword [ebp - 0x124], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x120], ecx
mov dword [esi + 0xc18], 0
je 0x4087c7
mov al, 1
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x11c], VariantClear
je 0x4087e1
mov dword [ebp - 0x11c], 0xc0000000
push ebx
push edi
mov ebx, 1
test al, al
je 0x4087f1
mov ebx, 3
mov eax, dword [0x4ca728]
xor edx, edx
cmp byte [esi + 0x15], dl
setne dl
lea edi, [edx - 1]
and edi, 0x8000000
cmp eax, 0xffffffff
jne 0x408840
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x108]
mov dword [0x4d3248], ecx
mov ecx, dword [ebp - 0x120]
mov dword [0x4ca728], eax
xor edx, edx
cmp eax, 2
setne dl
dec edx
test dword [0x4d3248], edx
je 0x408873
test ecx, ecx
je 0x408873
cmp word [ecx], 0
je 0x408873
mov edx, dword [ebp - 0x11c]
push 0
push edi
push 3
push 0
push ebx
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x40888f
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
push 0
push edi
push 3
push 0
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4088ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4088ab
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne bl
mov byte [esi + 0x12], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
test bl, bl
je 0x40896d
mov ecx, dword [ebp - 0x120]
mov dword [esi + 4], edi
test ecx, ecx
je 0x4088f8
mov edx, esi
mov eax, ecx
sub edx, ecx
jmp 0x4088e0
movzx edi, word [eax]
mov word [edx + eax + 0x418], di
movzx edi, word [eax]
add eax, 2
test di, di
jne 0x4088e0
jmp 0x408901
xor eax, eax
mov word [esi + 0x418], ax
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x40891d
mov edx, esi
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax + 0x17], cl
inc eax
test cl, cl
jne 0x408910
jmp 0x408937
push 0
push 0
push 0x1000000
lea edx, [esi + 0x17]
push edx
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [esi + 4], 0xffffffff
je 0x40896d
xor eax, eax
nop
cmp dword [eax*4 + 0x4cf228], 0
je 0x408966
inc eax
cmp eax, 0x100
jb 0x408940
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487efe
mov esp, ebp
pop ebp
ret 0xc
mov dword [eax*4 + 0x4cf228], esi
mov ecx, dword [ebp - 4]
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00487efe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
test ebx, ebx
je 0x408cae
mov eax, dword [edi + 0xc]
test eax, eax
je 0x408c22
dec eax
je 0x408c17
dec eax
jne 0x408c22
push 0xfffffffffffffff4
jmp 0x408c19
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x408c74
xor esi, esi
test ebx, ebx
jle 0x408c91
mov edi, edi
mov eax, ebx
cmp ebx, 0x4000
jl 0x408c3f
mov eax, 0x4000
mov edx, dword [ebp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 4]
push eax
lea eax, [esi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
test al, al
je 0x408c99
add esi, 0x4000
sub ebx, 0x4000
cmp esi, dword [ebp + 0xc]
jl 0x408c30
jmp 0x408c95
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 4]
push 0
lea edx, [esp + 0x10]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
jmp 0x408c95
mov al, byte [esp + 0xb]
test al, al
jne 0x408caa
cmp byte [edi + 0x14], 0
je 0x408caa
cmp dword [edi + 0xc], 0
jne 0x408caa
call fcn.00406020
mov byte [edi + 8], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, dword [ebp + 0xc]
jne 0x408da9
cmp edi, 0x4e20
jle 0x408d9e
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408e1b
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x408df7
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x408ddb
cmp eax, 3
jne 0x408df7
cmp edi, 0x4e20
jle 0x408df7
push 0x4e20
push ebx
mov ecx, esi
call fcn.00408d80
pop edi
pop esi
pop ebx
pop ebp
ret 8
cmp dword [esi + 0xc], 1
jne 0x408e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x408e11
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4091c0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c9144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4ca728]
push esi
push edi
mov edi, ecx
mov esi, edx
cmp eax, 0xffffffff
jne 0x409211
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x114]
mov dword [0x4ca728], eax
mov dword [0x4d3248], ecx
xor edx, edx
cmp eax, 2
setne dl
dec edx
test dword [0x4d3248], edx
je 0x409237
test esi, esi
je 0x409237
cmp word [esi], 0
je 0x409237
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x409240
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40925b
call fcn.00409790
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487efe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x409270
cmp eax, 3
mov eax, 1
jne 0x409275
mov eax, 2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00487efe
mov esp, ebp
pop ebp
ret

Function at 0x409660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c9144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4ca728]
cmp eax, 0xffffffff
jne 0x4096ab
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x114]
mov dword [0x4ca728], eax
mov dword [0x4d3248], ecx
xor edx, edx
cmp eax, 2
setne dl
dec edx
test dword [0x4d3248], edx
je 0x4096e3
test esi, esi
je 0x4096e3
cmp word [esi], 0
je 0x4096e3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487efe
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp eax, 0xffffffff
setne al
xor ecx, ebp
call fcn.00487efe
mov esp, ebp
pop ebp
ret

Function at 0x409700
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c9144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4ca728]
cmp eax, 0xffffffff
jne 0x40974b
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x114]
mov dword [0x4ca728], eax
mov dword [0x4d3248], ecx
xor edx, edx
cmp eax, 2
setne dl
dec edx
test dword [0x4d3248], edx
je 0x40977b
test esi, esi
je 0x40977b
cmp word [esi], 0
je 0x40977b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487efe
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487efe
mov esp, ebp
pop ebp
ret
Function at 0x409790
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c9144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4ca728]
cmp eax, 0xffffffff
jne 0x4097db
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x114]
mov dword [0x4ca728], eax
mov dword [0x4d3248], ecx
xor edx, edx
cmp eax, 2
setne dl
dec edx
test dword [0x4d3248], edx
je 0x409811
test esi, esi
je 0x409811
cmp word [esi], 0
je 0x409811
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487efe
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.00487efe
mov esp, ebp
pop ebp
ret
Function at 0x40d8c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
test ebx, ebx
je 0x40d9b1
test eax, eax
jle 0x40d9b1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x18], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
test eax, eax
jle 0x40d98f
mov eax, dword [ebp + 0xc]
push esi
push edi
lea edi, [ebx + 8]
sub ebx, eax
add ebx, 0xfffffff8
lea esi, [eax + 8]
mov dword [ebp + 0xc], ebx
mov edi, edi
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
push edx
add ebx, esi
push ecx
mov eax, ebx
call fcn.0040dc90
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
xor dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
mov ebx, dword [edi - 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [edi]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [edi + 4]
mov dword [esi - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov dword [esi - 4], ecx
dec eax
mov dword [esi + 4], edx
add edi, 0x10
add esi, 0x10
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
test eax, eax
jg 0x40d920
mov eax, dword [ebp - 8]
pop edi
pop esi
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x10], edx
shl eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40db50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c9144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [eax + 0x24]
lea ecx, [eax + 0x28]
mov edi, 9
xor eax, eax
jmp 0x40db80
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x4cf628]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x4cfa28]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x4cfe28]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x4d0228]
movzx ebx, byte [ecx + 2]
mov byte [ebp + eax - 0x14], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x4cf628]
xor dl, byte [eax + ebx*4 + 0x4cfa28]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x4cfe28]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4d0228]
movzx ebx, byte [ecx + 6]
mov byte [ebp + eax - 0x10], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x4cf628]
xor dl, byte [eax + ebx*4 + 0x4cfa28]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x4cfe28]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x4d0228]
movzx ebx, byte [ecx + 0xa]
mov byte [ebp + eax - 0xc], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x4cf628]
xor dl, byte [eax + ebx*4 + 0x4cfa28]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x4cfe28]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x4d0228]
inc eax
mov byte [ebp + eax - 9], dl
cmp eax, 4
jl 0x40db80
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], edx
mov edx, dword [ebp - 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
add ecx, 0x10
add esi, 0x10
dec edi
jne 0x40db71
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487efe
mov esp, ebp
pop ebp
ret 4
Function at 0x4179d0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 2
push esi
push 3
push 0x40000000
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x417a39
call fcn.00418010
test eax, eax
js 0x417a3d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417a24
call fcn.00418010
mov bl, 1
test esi, esi
je 0x417a44
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, eax
jmp 0x4179ff
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4188b0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1850
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x4c9144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
cmp edi, esi
je 0x418a41
cmp word [edi], si
je 0x418a41
lea eax, [ebp - 0x10]
push eax
call fcn.0041b8b0
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x20]
push ecx
mov edx, 0x20019
mov eax, str.HTTP_shellopencommand
mov ecx, SysReAllocString
mov byte [ebp - 4], 1
call fcn.004191e0
test eax, eax
jne 0x4189b4
lea edx, [ebp - 0x20]
push edx
lea ebx, [ebp - 0x10]
mov eax, 0x4ab684
call fcn.0041d070
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, 5
jl 0x4189b4
cmp eax, esi
jge 0x41894d
push 0x80070057
call fcn.00417580
cmp word [ecx], 0x22
jne 0x418984
lea eax, [ebp - 0x10]
push eax
mov eax, 1
xor ecx, ecx
call fcn.00418b70
mov ecx, 0x22
lea esi, [ebp - 0x10]
call fcn.00418cb0
test eax, eax
je 0x4189b4
lea ecx, [ebp - 0x14]
mov edx, esi
call fcn.00418cd0
mov byte [ebp - 4], 2
jmp 0x4189a3
mov ecx, 0x20
lea esi, [ebp - 0x10]
call fcn.00418cb0
test eax, eax
je 0x4189b4
lea ecx, [ebp - 0x14]
mov edx, esi
call fcn.00418cd0
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.0041b970
lea ecx, [ebp - 0x14]
call fcn.00418080
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
je 0x4189e7
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4189e7
mov ecx, dword [ebp - 0x10]
push 1
push 0
push edi
push ecx
push str.open
push 0
call esi
cmp eax, 0x20
jg 0x4189f7
push 1
push 0
push 0
push edi
push 0
push 0
call esi
cmp eax, 0x20
mov eax, dword [ebp - 0x20]
setg bl
test eax, eax
je 0x418a08
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418a2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418a60
Capabilities:
Compare security identifiers

Disassembly:
mov edx, dword [ecx + 8]
cmp edx, dword [eax + 8]
jne 0x418aba
test edx, edx
jne 0x418a81
mov eax, dword [eax + 0x10]
mov ecx, dword [ecx + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x418aba
mov al, 1
ret
cmp edx, 3
jne 0x418a96
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x24]
mov ecx, dword [ecx + 0x10]
mov eax, dword [ecx + 0x24]
push edx
push eax
jmp 0x418a74
cmp edx, 1
je 0x418aa6
cmp edx, 4
jne 0x418aba
mov ecx, dword [ecx + 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x10]
mov eax, dword [ecx + 0x10]
push edx
push eax
call fcn.00489d2d
add esp, 8
test eax, eax
je 0x418a7e
xor al, al
ret
Function at 0x41bc50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41bc68
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41bc9a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x41bc96
cmp esi, eax
jae 0x41bc9a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41bc88
cmp esi, eax
jb 0x41bca0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x41d070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
lea edx, [ebp - 8]
push edx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push ecx
mov esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d117
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x41d0af
cmp eax, 2
jne 0x41d117
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
jns 0x41d0c3
push 0x80070057
call fcn.00417580
mov ecx, dword [ebx]
mov edx, 1
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, eax
or edx, ecx
jge 0x41d0dd
mov ecx, ebx
call fcn.00417470
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
push edi
push edx
lea edi, [ebp - 4]
call fcn.0041d130
mov esi, eax
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x41d105
push ecx
push eax
call fcn.00489835
add esp, 8
test eax, eax
js 0x41d0b9
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x41d0b9
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d19e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41d16d
cmp eax, 2
jne 0x41d188
mov eax, dword [ebp - 4]
test esi, esi
je 0x41d198
test eax, eax
je 0x41d193
test al, 1
jne 0x41d188
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41d198
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x41d1d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a16f6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c9144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea edi, [esi + 4]
push edi
mov byte [esi], 0
call fcn.0041b8b0
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0xc]
mov dword [ebp - 4], 0
push ebx
mov dword [esi + 8], eax
call fcn.0041b8b0
mov byte [ebp - 4], 1
mov edi, dword [edi]
mov byte [esi], 0
cmp dword [edi - 0xc], 0
je 0x41d24d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d24d
test al, 0x10
je 0x41d24d
mov ecx, dword [ebx]
mov byte [esi], 1
cmp dword [ecx - 0xc], 0
jne 0x41d24d
push 0
push 0
call fcn.0048ba70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d8d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0ce8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x4c9144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x4d2910]
cmp byte [ebx], 0
je 0x41d9b3
lea eax, [ebp - 0x10]
push eax
call fcn.0041b8b0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
push str.VIconPlusLogo
push eax
push str._sIcons_s.ico
lea edi, [ebp - 0x10]
call fcn.00417250
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d98d
mov edx, dword [ebp - 0x10]
push 0x10
push esi
push esi
push 1
push edx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
test edi, edi
je 0x41d98d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d97a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d9b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x41d9db
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 0xffffffc0
add ecx, 0x40
push ecx
push esi
push esi
push 1
push str.VIconPlusLogo
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
test eax, eax
jne 0x41da0f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41da0d
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xffffffc0
add edx, 0x40
push edx
push esi
push esi
push 1
push 0x6e
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret