joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57973d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
push 0x5f4658
lea eax, [ebp - 0x18]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0040b230
push 0x5c5a20
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.0040b350
add esp, 0x18
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406aba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push str.UninstallString
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x406c11
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041aae2
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 1
push str.UninstallString
push dword [ebp - 0x14]
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test ebx, ebx
jne 0x406b29
xor ecx, ecx
jmp 0x406b3f
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406b30
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, 0x5f4654
call fcn.0040c1e0
mov edx, dword [0x5f4654]
lea ecx, [ebp - 0x20]
call fcn.0040fce0
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov edi, dword [0x5f4654]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x406bb8
cmp dword [edi + 0xc], 0
jl 0x406baa
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x406baa
push edx
call fcn.0040c100
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, esi
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406ba0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [0x5f4654], eax
jmp 0x406bb8
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5f4654
call fcn.0040c1e0
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406bd6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call fcn.0041aadd
mov eax, dword [0x5f4654]
add esp, 4
cmp dword [eax - 4], 1
pop ebx
jle 0x406bfd
push dword [eax - 0xc]
mov ecx, 0x5f4654
call fcn.0040bf80
mov eax, dword [0x5f4654]
push eax
push 0
push 0x1800
push dword [0x5f4528]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
pop edi
test esi, esi
pop esi
jg 0x406c32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.00436adf
mov ebx, eax
test ebx, ebx
jne 0x40b5b0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40b683
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b683
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b683
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x40b614
cmp esi, ecx
jae 0x40b683
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x40b602
cmp esi, ecx
jae 0x40b683
movzx eax, word [esi]
test ax, ax
je 0x40b683
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40b64a
push edi
mov ecx, ebx
call fcn.0040c170
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40b64d
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0055c629
push eax
call fcn.00402be0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x40b68e
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402c70
int3
Function at 0x40bd50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x40be4d
test eax, 0xffff0000
jne 0x40be4d
push ebx
push edi
movzx edi, ax
push edi
call fcn.00436adf
mov ebx, eax
test ebx, ebx
je 0x40be49
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40be49
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40be49
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40be48
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x40bde5
cmp esi, ecx
jae 0x40be48
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x40bdd3
cmp esi, ecx
jae 0x40be48
movzx eax, word [esi]
test ax, ax
je 0x40be48
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40be1b
push edi
mov ecx, ebx
call fcn.0040c170
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40be1e
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0055c629
push eax
call fcn.00402be0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x40be55
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402c70
int3

Function at 0x40e820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x5c60c8
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40e8b5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40e8b5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40e8b5
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40e8b5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40e8ae
push edi
push ebx
push eax
call fcn.00559510
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40e8a7
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415d70
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3000
call fcn.00557630
push esi
mov esi, ecx
push edi
mov edi, edx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x415d86
sub esi, edx
cmp esi, 0x800
jb 0x415daa
call fcn.0055f457
pop edi
pop esi
mov dword [eax], 0x26
xor eax, eax
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x415db6
cmp byte [esi + ecx - 1], 0x5c
jne 0x415db6
dec esi
push esi
push ecx
lea eax, [ebp - 0x800]
push eax
call fcn.00559510
mov byte [ebp + esi - 0x800], 0
add esp, 0xc
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x415dd4
sub esi, ecx
cmp esi, 0x800
jae 0x415d97
test esi, esi
je 0x415df1
cmp byte [esi + edi - 1], 0x5c
jne 0x415df1
dec esi
push ebx
push esi
lea eax, [ebp - 0x1000]
push edi
push eax
call fcn.00559510
add esp, 0xc
mov byte [ebp + esi - 0x1000], 0
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x3000]
push 0x800
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x800]
push eax
push 0
push 0xfde9
call esi
test eax, eax
jle 0x415e55
push 0x800
lea eax, [ebp - 0x2000]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1000]
push eax
push 0
push 0xfde9
call esi
test eax, eax
jg 0x415e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x7a
setne bl
lea ebx, [ebx*4 + 0x26]
call fcn.0055f457
mov dword [eax], ebx
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2000]
push eax
lea eax, [ebp - 0x3000]
push eax
call fcn.00561861
add esp, 8
neg eax
sbb eax, eax
inc eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416020
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.00557630
push esi
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x416033
sub esi, edx
cmp esi, 0x800
jb 0x416056
call fcn.0055f457
mov dword [eax], 0x26
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x416062
cmp byte [esi + ecx - 1], 0x5c
jne 0x416062
dec esi
push esi
push ecx
lea eax, [ebp - 0x804]
push eax
call fcn.00559510
add esp, 8
mov byte [ebp + esi - 0x804], 0
lea edx, [ebp - 4]
lea ecx, [ebp - 0x804]
push 0
call fcn.00415b70
add esp, 8
test eax, eax
je 0x41604f
mov eax, dword [ebp - 4]
sub eax, 0
je 0x4160c0
sub eax, 1
je 0x4160ae
sub eax, 1
jne 0x41604f
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0055f457
pop esi
mov dword [eax], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0x800
lea eax, [ebp - 0x1804]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x41610b
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x7a
setne bl
lea ebx, [ebx*4 + 0x26]
call fcn.0055f457
mov dword [eax], ebx
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1804]
push eax
call fcn.0056121d
add esp, 4
neg eax
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, ecx
mov esi, dword [eax]
sub ebx, edi
mov dword [esp + 0x14], ebx
je 0x416297
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esp + 0x10], 0
cmp dword [esp + 0x10], edx
ja 0x4162a3
jb 0x416177
cmp ebx, eax
ja 0x4162a3
sub eax, ebx
sbb edx, 0
cmp dword [ebp + 0x10], edx
ja 0x4162a3
mov edx, dword [ebp + 0xc]
jb 0x416192
cmp edx, eax
ja 0x4162a3
add edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
adc eax, dword [ebp + 0x10]
cmp dword [esi + 0x20], edx
jne 0x4161a5
cmp dword [esi + 0x24], eax
je 0x4161fa
push 0
push eax
push edx
push dword [esi + 0x18]
call fcn.00560ee2
add esp, 0x10
test eax, eax
je 0x4161f7
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
call fcn.0055f457
mov edi, dword [eax]
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4162e6
test edi, edi
je 0x4162e6
test eax, eax
jne 0x4161e7
mov dword [esi + 0x30], edi
push edi
call fcn.0055f714
add esp, 4
push eax
push edi
jmp 0x4162ce
mov ecx, dword [ebp + 0x18]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
cmp edi, ecx
jae 0x416244
mov edx, 0x100000
nop word [eax + eax]
mov ebx, ecx
sub ebx, edi
cmp ebx, 0x100000
push eax
cmova ebx, edx
push ebx
push 1
push edi
call fcn.00561a74
add esp, 0x10
cmp ebx, eax
jne 0x416246
mov ecx, dword [ebp + 0x18]
add edi, ebx
mov eax, dword [esp + 0x10]
mov edx, 0x100000
cmp edi, ecx
jb 0x416210
mov ebx, dword [esp + 0x14]
je 0x41627e
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
call fcn.0055f457
mov edi, dword [eax]
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4162e6
test edi, edi
je 0x4162e6
test eax, eax
jne 0x416271
mov dword [esi + 0x30], edi
push edi
call fcn.0055f714
add esp, 4
push eax
push edi
jmp 0x4162ce
add ebx, dword [esi + 0x28]
mov ecx, 0
mov eax, dword [esi + 0x2c]
adc eax, ecx
add ebx, dword [ebp + 0xc]
mov dword [esi + 0x20], ebx
adc eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0055f457
mov dword [eax], 0x1b
mov eax, dword [esi + 0x30]
cmp eax, 0x1b
je 0x4162e6
test eax, eax
jne 0x4162c1
mov dword [esi + 0x30], 0x1b
push 0x1b
call fcn.0055f714
add esp, 4
push eax
push 0x1b
push str.call_import_system_api_error__errno:__d__errmsg:__s._n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4281e9
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x42823c
push esi
push dword [ebp + 8]
call fcn.004283d2
mov edi, eax
test edi, edi
je 0x428237
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x428237
mov eax, dword [ebp - 8]
jmp 0x42824e
mov eax, dword [ebp + 0x10]
jmp 0x42824e
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x429465
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.00438dca
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x429498
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.004294ab
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42edce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x42ee0d
call fcn.00438dca
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42ee0d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42ee15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004aadad
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42f80c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x42f898
cmp dword [esi + 0x20], 0
je 0x42f898
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42f898
cmp dword [ebp + 8], 0
je 0x42f898
xor edi, edi
mov ebx, edi
call fcn.00438dca
push 0x58c228
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x42f87c
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42f898
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004c40ea
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42f894
mov ecx, esi
call fcn.0042f5aa
mov eax, edi
jmp 0x42f89a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x433d12
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57aadb
call fcn.005574b7
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x433d38
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x433d92
lea ecx, [ebp - 0x10]
call fcn.0040bbf0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5899b0]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00562779
push eax
call fcn.00402be0
add esp, 0x14
test esi, esi
je 0x433d85
push esi
call fcn.0055c080
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402dc0
mov eax, ebx
call fcn.00557485
ret 8

Function at 0x43a277
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x43a2b8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43a2c7
push str.SetFileAttributesTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x43a2c7
push dword [esi]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x5899b0]
call edi
jmp 0x43a2c9
cmp dword [esi + 4], 0
je 0x43a2c7
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x43a2cf
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x43a313
lea eax, [ebp - 0x28]
push eax
push ecx
push edi
mov ecx, esi
call fcn.00439d0d
neg eax
sbb ebx, ebx
and ebx, dword [ebp - 0x28]
jmp 0x43a31c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43a32e
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004cd670
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x20]
cmp ecx, ebx
je 0x43a366
test bl, 1
je 0x43a366
push ecx
push edi
test esi, esi
je 0x43a34c
mov ecx, esi
call fcn.0043a277
jmp 0x43a352
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43a363
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004cd670
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 8]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x43a443
lea eax, [ebp - 0x54]
push eax
push ecx
call fcn.00439c56
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + 0x10]
mov eax, dword [edx]
or eax, dword [edx + 4]
je 0x43a3a2
lea eax, [ebp - 0x44]
push eax
push edx
call fcn.00439c56
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x43a3bb
lea eax, [ebp - 0x4c]
push eax
push ecx
call fcn.00439c56
pop ecx
lea eax, [ebp - 0x4c]
pop ecx
mov dword [ebp - 0x38], eax
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push edi
test esi, esi
je 0x43a3db
mov ecx, esi
call fcn.0043927d
jmp 0x43a3e1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x43a3f9
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004cd670
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x43a429
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
call fcn.004cd670
mov esi, dword [ebp - 0x3c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43a443
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004cd670
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x20], ebx
je 0x43a478
test bl, 1
jne 0x43a478
push dword [eax + 0x20]
push edi
test esi, esi
je 0x43a461
mov ecx, esi
call fcn.0043a277
jmp 0x43a467
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43a478
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004cd670
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00557477
leave
ret 0xc
Function at 0x4404b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4404ca
call fcn.00438dca
mov esi, dword [eax + 0xc]
push 0x5c60c8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x44050c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44050c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x44050c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00440515
jmp 0x44050e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4c5b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4c5b96
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c5b6f
call fcn.00434ab1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4c5b84
call fcn.00434ab1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4c5b96
call fcn.00434ab1
call fcn.00438dca
cmp dword [eax + 0x3c], 0
je 0x4c5bab
push edi
mov ecx, ebx
call fcn.004c5263
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004c5d91
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4c5bd4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4c5be0
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x51e8ef
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0055261a
call fcn.00438e1e
cmp dword [eax + 0x14], 0
jne 0x51e90a
mov ecx, esi
pop esi
jmp fcn.0051dc13
pop esi
ret