joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406400
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x42de38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push esi
mov eax, dword [esp + 0x158]
mov dword [esp + 0x150], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x15c]
push str..
lea edx, [esp + 8]
push ecx
push edx
call fcn.0041e777
mov eax, dword [eax]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 4]
mov esi, eax
call fcn.0041e52e
cmp esi, 0xffffffff
je 0x4064cf
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor ebx, ebx
lea edx, [esp + 0x3c]
push 0x43a2d0
push edx
call fcn.004124e0
add esp, 8
test eax, eax
je 0x4064a0
lea eax, [esp + 0x3c]
push 0x43a2cc
push eax
call fcn.004124e0
add esp, 8
test eax, eax
jne 0x4064af
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
cmp eax, 1
jne 0x4064b4
jmp 0x406474
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
test ebx, ebx
pop ebx
jne 0x4064cf
mov edx, dword [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x15c]
mov dword [esp + 0x150], 0xffffffff
call fcn.0041e52e
mov ecx, dword [esp + 0x148]
pop esi
mov dword fs:[0], ecx
add esp, 0x150
ret 8

Function at 0x406810
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x42ded8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
lea ecx, [esp + 8]
call fcn.0041c224
mov dword [esp + 0x24], 0
call fcn.0042ba6e
mov esi, dword [eax + 4]
push 0xffffffffffffffff
push 0xa
lea ecx, [esp + 0x10]
call fcn.0041c2b7
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.004015e0
test eax, eax
jle 0x40688f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea esi, [eax - 1]
lea ecx, [esp + 8]
push esi
push ecx
lea ecx, [esp + 0x14]
call fcn.00401720
mov edx, dword [esp + 8]
push edx
call edi
lea ecx, [esp + 8]
call fcn.0041e52e
mov eax, esi
test eax, eax
jg 0x406866
pop edi
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041c257
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x407450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42e080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push edi
mov eax, dword [0x43ab24]
xor ebx, ebx
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x14], 1
cmp eax, ebx
je 0x40748d
push str.DllRegisterServer
jmp 0x407492
push str.DllUnregisterServer
lea ecx, [esp + 0xc]
call fcn.0041e66b
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x1c]
push eax
call fcn.0041e912
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4074c3
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jge 0x4074f6
lea ecx, [esp + 8]
mov byte [esp + 0x14], bl
call fcn.0041e52e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041e52e
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
push esi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edx, dword [esp + 0x20]
push 8
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, 0x20
jb 0x407536
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40752f
call eax
test eax, eax
jl 0x40752f
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_OleUninitialize]
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], bl
call fcn.0041e52e
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041e52e
mov ecx, dword [esp + 0x10]
mov eax, edi
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x407af0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x42e118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
lea ecx, [esp + 8]
call fcn.0041c224
mov dword [esp + 0x24], 0
call fcn.0042ba6e
mov esi, dword [eax + 4]
push 0xffffffffffffffff
push 0xa
lea ecx, [esp + 0x10]
call fcn.0041c2b7
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.00401670
test eax, eax
jle 0x407b6f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea esi, [eax - 1]
lea ecx, [esp + 8]
push esi
push ecx
lea ecx, [esp + 0x14]
call fcn.00401720
mov edx, dword [esp + 8]
push edx
call edi
lea ecx, [esp + 8]
call fcn.0041e52e
mov eax, esi
test eax, eax
jg 0x407b46
pop edi
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041c257
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x409350
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42e420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x28], esi
mov eax, dword [0x43ab24]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x2c], 3
call fcn.0041e61b
lea ecx, [esp + 0x14]
call fcn.0041ea04
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041e61b
lea ecx, [esp + 0x18]
call fcn.0041ea04
mov eax, dword [edi + 0x14a68]
cmp eax, esi
jle 0x409432
lea ebp, [edi + 0x14a60]
mov bl, 4
mov edx, dword [0x43ab24]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x1c]
push esi
push eax
mov ecx, ebp
mov byte [esp + 0x30], bl
call fcn.00401720
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 5
call fcn.0041e61b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.0041e52e
lea ecx, [esp + 0x10]
call fcn.0041ea04
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b7f3
cmp eax, 0xffffffff
mov byte [esp + 0x28], 3
lea ecx, [esp + 0x10]
jne 0x409487
call fcn.0041e52e
mov eax, dword [edi + 0x14a68]
inc esi
cmp esi, eax
jl 0x4093c6
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.0041e52e
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.0041e52e
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0041e52e
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041e52e
mov eax, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
call fcn.0041e52e
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x409432
test al, 1
je 0x409432
and al, 0xfe
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x409432
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.0041e52e
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.0041e52e
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0041e52e
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041e52e
xor eax, eax
jmp 0x409472
Function at 0x40c340
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
test edi, edi
je 0x40c4e3
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jl 0x40c4e3
mov al, byte [esp + 0x14]
cmp al, 0x41
jl 0x40c39d
cmp al, 0x5a
jle 0x40c3ad
cmp al, 0x61
jl 0x40c4e3
cmp al, 0x7a
jg 0x40c4e3
cmp byte [esp + 0x15], 0x3a
jne 0x40c4e3
cmp byte [esp + 0x16], 0x5c
jne 0x40c4e3
cmp ecx, 3
jne 0x40c403
mov eax, dword [esp + 0x120]
test eax, eax
jne 0x40c3f6
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0040e1c4
add esp, 8
test eax, eax
je 0x40c3f6
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov al, byte [esp + 0x17]
mov edi, 3
test al, al
mov esi, 1
je 0x40c4d1
mov ebp, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
mov al, byte [esp + edi + 0x14]
lea esi, [esp + edi + 0x14]
test al, al
mov ebx, esi
je 0x40c449
push eax
call ebp
test eax, eax
je 0x40c437
inc edi
jmp 0x40c43c
cmp byte [esi], 0x5c
je 0x40c449
inc edi
mov al, byte [esp + edi + 0x14]
lea esi, [esp + edi + 0x14]
test al, al
jne 0x40c42d
mov cl, byte [esp + edi + 0x14]
xor edx, edx
test cl, cl
sete dl
push ebx
mov esi, edx
mov byte [esp + edi + 0x18], 0
call fcn.0040c0c0
add esp, 4
test eax, eax
je 0x40c4e3
mov eax, dword [esp + 0x120]
test eax, eax
jne 0x40c4bb
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40c4a4
call fcn.0042ba6e
mov ebx, dword [eax + 4]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041e59c
mov ecx, ebx
call fcn.00401500
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040e1c4
add esp, 8
test eax, eax
jne 0x40c3e6
test esi, esi
jne 0x40c4d1
mov byte [esp + edi + 0x14], 0x5c
mov al, byte [esp + edi + 0x15]
inc edi
test al, al
jne 0x40c41f
xor eax, eax
test esi, esi
sete al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e1e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f216
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40e207
test byte [esp + 8], 2
je 0x40e207
call fcn.0040f289
mov dword [eax], 0xd
call fcn.0040f292
mov dword [eax], 5
jmp 0x40e1e0
xor eax, eax
ret
Function at 0x413fde
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43b7e8
cmp edx, dword [eax]
je 0x414000
add eax, 8
inc ecx
cmp eax, 0x43b878
jl 0x413ff1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43b7e8]
jne 0x41412e
mov eax, dword [0x43e450]
cmp eax, 1
je 0x414108
test eax, eax
jne 0x414031
cmp dword [0x43b0f8], 1
je 0x414108
cmp edx, 0xfc
je 0x41412e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414068
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414140
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411620
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4140ab
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411620
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43a8f8
push edi
call fcn.0040daa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414140
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414150
lea eax, [ebp - 0xa0]
push 0x4337dc
push eax
call fcn.00414150
push dword [esi + 0x43b7ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414150
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041692f
add esp, 0x2c
pop edi
jmp 0x41412e
lea eax, [ebp + 8]
lea esi, [esi + 0x43b7ec]
push 0
push eax
push dword [esi]
call fcn.00411620
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41af70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040ed30
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41b03b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41b03b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41afee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41aff9
or bh, 8
and edi, 0x8000000
je 0x41b014
mov eax, dword [0x43fbfc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41b03b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41b43b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41b45f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41b47a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41cb56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x41cb78
cmp dword [edi + 0x3c], 0
jne 0x41cb78
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042ba6e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0041cba5
pop edi
pop esi
pop ebx
ret 8

Function at 0x421250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x421292
call fcn.0042ba6e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x421292
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x421289
xor eax, eax
jmp 0x42129a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004212a0
pop edi
pop esi
pop ebx
ret 4
Function at 0x421c7e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x421cae
push edi
call ebx
push eax
call fcn.00421e28
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x421cd8
test byte [ebp - 4], 1
je 0x421cd8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x421cd8
push edi
call ebx
push eax
call fcn.00421e28
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x421d7e
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00421bcb
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x421d0a
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00421bcb
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x421d20
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00421bcb
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x421d4a
push 0
call ebx
push eax
call fcn.00421e28
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x421d68
push eax
call ebx
push eax
call fcn.00421e28
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x421d7c
push eax
call ebx
push eax
call fcn.00421e28
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x421da5
test byte [ebp - 4], 1
jne 0x421da5
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x421da5
push edi
call ebx
push eax
call fcn.00421e28
pop edi
pop ebx
leave
ret 8
Function at 0x42c224
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42c252
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c270
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042c18a
jmp 0x42c270
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42c270
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042c18a
test edi, edi
mov eax, edi
jne 0x42c25a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000214e
Capabilities:
Copy file

Disassembly:
push 0xc
mov eax, 0x10047cd2
call fcn.100263df
mov ebx, ecx
lea ecx, [ebp - 0x10]
call fcn.100014cb
and dword [ebp - 4], 0
push 1
push ecx
mov ecx, esp
push str.productCode
call fcn.1000134e
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
call fcn.10010f73
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str._CommonAppDataFolder__sib_s
push eax
call fcn.10002c53
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.10005108
lea eax, [ebp - 0x10]
mov ecx, 0x10060f1c
push eax
call fcn.1000ae34
push 0
push dword [ebp - 0x10]
call fcn.10027ba7
test eax, eax
je 0x100021fe
push str.D:_source_test_sibNew_folderSibInstallerInstall.cpp
lea ecx, [ebp - 0x14]
call fcn.100013ca
push 0x39f
push dword [eax]
mov byte [ebp - 4], 2
push 0
push dword [ebp - 0x10]
call fcn.10027ba7
push eax
call fcn.100169a6
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.10005108
push ecx
mov eax, esp
lea ecx, [ebp - 0x10]
push str._sib.dat
push ecx
push eax
call fcn.100016c0
mov ecx, dword [ebx]
add esp, 0xc
call fcn.10007e75
mov edi, str.SibClr.dll
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100016c0
mov esi, eax
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push 0x10060f10
push eax
call fcn.100016c0
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0x18
push 0
push dword [esi]
push dword [eax]
call edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10005108
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.10005108
push str.SibCa.dll
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100016c0
mov esi, eax
push str.SibCa.dll
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push 0x10060f10
push eax
call fcn.100016c0
add esp, 0x18
push 0
push dword [esi]
push dword [eax]
call edi
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.10005108
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.10005108
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax + 0x38], edi
jle 0x1000230f
push edi
lea ecx, [eax + 0x30]
call fcn.10002a47
cmp dword [eax + 0x10], 1
jne 0x10002307
mov eax, dword [ebx]
cmp dword [eax + 0x18], 0
je 0x100022e7
push edi
mov ecx, ebx
call fcn.10003939
jmp 0x10002307
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.100025ee
pop ecx
add eax, 0x10
mov ecx, ebx
push edi
mov dword [esi], eax
call fcn.10003b93
mov eax, dword [ebx]
inc edi
cmp edi, dword [eax + 0x38]
jl 0x100022c6
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10005108
call fcn.100263ad
ret
Function at 0x10003821
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x10047cfc
call fcn.100263df
mov edi, ecx
and dword [edi + 0x10], 0
lea ebx, [edi + 0xc]
mov ecx, ebx
call fcn.10002abd
lea ecx, [edi + 8]
call fcn.10002abd
lea ecx, [ebp - 0x10]
call fcn.100014cb
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
sub eax, 1
je 0x1000389a
sub eax, 1
je 0x10003877
sub eax, 4
jne 0x100038c9
push dword [ebp + 0xc]
mov ecx, edi
call fcn.10003939
push str.Action_failed
jmp 0x100038ae
push dword [ebp + 0xc]
mov ecx, edi
push esi
call fcn.100024ff
test eax, eax
je 0x100038a9
push dword [ebp + 0xc]
mov ecx, edi
call fcn.10003939
push esi
mov ecx, edi
call fcn.10001e64
jmp 0x100038c9
push dword [ebp + 0xc]
mov ecx, edi
push esi
call fcn.100024ff
test eax, eax
jne 0x100038b7
push str.Condition_failed
mov ecx, ebx
call fcn.1000586c
jmp 0x100038c9
push dword [ebp + 0xc]
mov ecx, edi
call fcn.10003939
push esi
mov ecx, edi
call fcn.10001817
push dword [edi + 0x10]
lea eax, [ebp - 0x10]
push 0x1004b88c
push eax
call fcn.10002c53
xor eax, eax
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp dword [edi + 0x1c], eax
jle 0x1000391a
push eax
lea ecx, [edi + 0x14]
call fcn.10002a28
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.100025ee
pop ecx
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.10005108
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [edi + 0x1c]
jl 0x100038e7
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x14]
call fcn.10019b17
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10005108
call fcn.100263ad
ret 8