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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x56d1f0
call fcn.00402396
mov ecx, esi
push str.EBWebViewx86EmbeddedBrowserWebView.dll
call fcn.00402396
mov ecx, esi
call fcn.00402476
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop esi
pop ebp
ret

Function at 0x401125
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 0xc]
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, esi
push 0x104
call fcn.0040224e
mov ecx, esi
push dword [ebp + 8]
call fcn.004022c6
mov ecx, esi
call fcn.00402476
mov edi, eax
mov ecx, esi
call fcn.00402462
cmp eax, 3
jb 0x40119b
movzx eax, word [edi + 2]
cmp ax, 0x3a
jne 0x40118b
cmp word [edi + 4], 0x5c
jne 0x40119b
movzx eax, word [edi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x40119b
jmp 0x401229
cmp word [edi], 0x5c
jne 0x40119b
cmp ax, 0x5c
je 0x401229
xor eax, eax
dec eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.004021dc
push edi
push 0
call fcn.00401080
add esp, 8
test eax, eax
js 0x401261
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.00402462
mov ebx, eax
mov ecx, edi
call fcn.00402476
mov ecx, esi
push ebx
push eax
call fcn.004022f0
mov ecx, edi
call fcn.00402476
push 0x5c
push eax
call fcn.00531a1b
add esp, 8
test eax, eax
je 0x401270
mov ebx, eax
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.00402476
sub ebx, eax
add ebx, 2
sar ebx, 1
mov ecx, edi
call fcn.00402476
mov ecx, esi
push ebx
push eax
call fcn.004022f0
mov ecx, esi
push dword [ebp + 8]
call fcn.00402396
mov ecx, edi
call fcn.004021ee
xor edi, edi
push esi
call fcn.0040104a
add esp, 4
test al, al
jne 0x40127d
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WebView2:_Failed_to_find_the_WebView2_client_dll_at:
call edi
mov ecx, esi
call fcn.00402476
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x56d256
call edi
mov edi, 0x80070002
jmp 0x40127d
mov edi, eax
push str.WebView2:_Failed_to_find_the_app_exe_path._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401275
mov edi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.004021ee
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f708
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401f53
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x230
mov edi, edx
mov esi, ecx
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [esp + 0x228], eax
lea eax, [esp + 0x20]
push 0x208
push 0xff
push eax
call fcn.00531c60
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 8]
mov dword [eax], 0xffffffff
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
sub ecx, edi
push eax
push 0x20219
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x402050
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x24]
push edi
push ebx
push ebx
push str.EBWebView
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40204e
cmp dword [esp + 0xc], 3
mov ebx, 0
jb 0x402050
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.004022c6
mov ecx, esi
call fcn.00402476
push 0x5c
push eax
call fcn.00531a1b
add esp, 8
test eax, eax
je 0x40204e
mov edi, eax
add edi, 2
pcmpeqd xmm0, xmm0
lea edx, [esp + 0x10]
movdqa xmmword [edx], xmm0
mov ecx, edi
call fcn.00401df8
test al, al
je 0x40204e
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40203f
push edi
call fcn.004022c6
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.00402068
mov ebx, eax
jmp 0x402050
xor ebx, ebx
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.0052f708
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402068
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
xor eax, eax
mov edx, dword [eax + 0x56d5b8]
cmp dword [ecx + eax], edx
ja 0x402086
jb 0x402091
add eax, 4
cmp eax, 0x10
jne 0x402071
push esi
call fcn.0040104a
add esp, 4
jmp 0x4020b1
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Loader_skipped_an_incompatible_version:
call edi
mov ecx, esi
call fcn.00402476
push eax
call edi
push 0x56d61a
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x4029a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x402a21
mov dword [ebp - 0x1c], ecx
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
lea edx, [ebp - 0x18]
mov dword [edx], 4
push edx
push ecx
push eax
push 0x10
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x402a3b
mov ecx, edi
mov edx, esi
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push esi
call fcn.00402a65
add esp, 8
test al, al
je 0x402a4b
mov eax, dword [esi]
test eax, eax
je 0x402a61
push 0xa
push 0
push eax
call fcn.0053ca52
add esp, 0xc
cmp eax, 1
jmp 0x402a3f
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f708
mov ecx, edi
mov edx, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00402a65
cmp dword [ebp - 0x14], 1
sete al
movzx eax, al
mov dword [ebx], eax
mov bl, 1
jmp 0x402a4d
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f708
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x402a42

Function at 0x402a65
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov edi, edx
mov dword [ebp - 0x220], ecx
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [ebp - 0x218]
push 0x208
push ebx
push esi
call fcn.00531c60
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [eax], 0x104
push eax
push esi
push ebx
push 2
push edi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x402adc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x218]
push eax
call fcn.004022c6
mov ecx, edi
call fcn.00402476
mov dword [ebx], eax
test esi, esi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f708
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402b84
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x402be2
mov edi, eax
push str.CreateWebViewEnvironmentWithOptionsInternal
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402c54
mov ecx, eax
mov esi, dword [ebp + 0x1c]
mov bl, byte [ebp + 0xc]
call dword [0x55670c]
movzx eax, bl
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call ecx
mov esi, eax
mov dword [ebp - 0x14], eax
jmp 0x402cbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea ebx, [ebp - 0x14]
mov dword [ebx], esi
xor eax, eax
dec eax
lea edi, [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.004021dc
push edi
push 1
push 4
push ebx
call fcn.00402af8
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.WebView2:_CoreWebView2Environment_failed_when_trying_to_LoadLibrary:_hr0x
call ebx
mov ecx, edi
call fcn.00402476
push eax
call ebx
push str._path
call ebx
push dword [ebp + 8]
call ebx
push 0x56d61a
call ebx
mov ecx, edi
call fcn.004021ee
jmp 0x402cd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], esi
xor eax, eax
dec eax
lea ebx, [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, ebx
call fcn.004021dc
push ebx
push 1
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00402af8
add esp, 0x10
push str.WebView2:_CoreWebView2Environment_failed_when_trying_to_call_into_EmbeddedBrowserWebView.dll._hr0x
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call fcn.00402476
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x56d61a
call eax
mov ecx, ebx
call fcn.004021ee
push str.DllCanUnloadNow
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402cd6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f708
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403c00
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x2e0]
push edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x2e8]
test eax, eax
je 0x403c34
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
mov dword [ebx + 4], 0xffffffff
push dword [0x5d275c]
push edi
push esi
push 0xdc
push 0x3c
push 0
push 0
push 0x44200046
push 0
push str.ComboBoxEx32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 4
push 0x408
push eax
mov dword [ebx], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x407
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x403c91
push eax
call fcn.004fe3f0
mov eax, dword [ebx]
test eax, eax
je 0x403da4
push 0
push 0
push 0x14b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x403d21
push 0x4209
push 0x2b4
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 0
push 0x402
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x5ff948]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55670c]
call esi
push 0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
mov ecx, ebx
push eax
push dword [esp + 0x28]
push 0
push 1
push eax
call fcn.00403f10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x403d49
push eax
push eax
push dword [esp + 0x18]
mov ecx, ebx
call fcn.004036c0
test al, al
jne 0x403d9d
push ebp
call fcn.004fc6b0
mov ebp, eax
xor edi, edi
mov esi, 1
test ebp, esi
je 0x403d94
lea eax, [edi + 0x41]
push eax
push str._c:_
lea eax, [esp + 0x2d4]
push 0xa
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [esp + 0x2cc]
mov ecx, ebx
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
push eax
call fcn.00403f10
inc edi
rol esi, 1
cmp edi, 0x20
jl 0x403d58
pop ebp
mov ecx, ebx
call fcn.00404450
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x2d4
ret 8
Function at 0x403f10
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e4
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
mov ebx, dword [esp + 0x2f0]
push ebp
mov ebp, dword [esp + 0x2f0]
push esi
mov esi, dword [esp + 0x304]
push edi
push 0x1008
mov dword [esp + 0x18], ecx
call fcn.0052f4cd
mov ecx, dword [esp + 0x304]
add esp, 4
mov edi, eax
mov dword [esp + 0x10], edi
push 0x800
push ebp
mov dword [edi], ebx
mov dword [edi + 4], ecx
call fcn.004bccf0
push eax
lea ecx, [edi + 8]
push ecx
call fcn.004bd090
cmp byte [esp + 0x314], 0
mov edi, dword [esp + 0x304]
jne 0x404000
cmp edi, 0xffffffff
je 0x403fb3
test esi, esi
jne 0x404000
xor eax, eax
cmp ebx, 2
sete al
lea eax, [eax*2 + 0x4201]
push eax
push 0x2b4
lea eax, [esp + 0x44]
push eax
push esi
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
jmp 0x403fde
xor eax, eax
cmp ebx, 2
sete al
lea eax, [eax*2 + 0x4201]
push eax
push 0x2b4
lea eax, [esp + 0x44]
push eax
push 0
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, dword [esp + 0x40]
test esi, esi
jne 0x404000
lea esi, [esp + 0x48]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0x37
mov dword [esp + 0x20], esi
jmp 0x40402a
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0x37
test esi, esi
je 0x404022
mov dword [esp + 0x20], esi
jmp 0x40402a
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x310]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0x40b
mov dword [esp + 0x34], edi
push dword [eax]
mov dword [esp + 0x3c], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2f0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x2e4
ret 0x20
Function at 0x404238
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
mov eax, 0x2004
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x2000], eax
push esi
mov esi, ecx
lea eax, [esp + 4]
push 0x800
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 4]
push eax
call fcn.004d8770
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 0x158
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x4043ac
push 0
push eax
push 0x14e
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
test eax, eax
je 0x40436b
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x40436b
push edi
push 0
push eax
push 0x150
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40436a
test edi, edi
je 0x40436a
mov eax, dword [edi]
cmp eax, 5
ja case.0x4042d2.2
jmp dword [eax*4 + 0x404430]
push 0x800
lea eax, [esp + 0x100c]
push eax
call fcn.00456dd0
test al, al
je case.0x4042d2.2
push 1
lea eax, [esp + 0x100c]
mov ecx, 0x5c5810
push eax
call fcn.0045a940
jmp case.0x4042d2.2
push 1
lea eax, [edi + 8]
mov ecx, 0x5c5810
push eax
call fcn.0045a940
jmp case.0x4042d2.2
mov ecx, 0x5c5810
call fcn.0045b050
test al, al
je case.0x4042d2.2
push dword [edi + 4]
mov ecx, 0x5c5810
call fcn.00461c80
push 0
mov ecx, 0x5c5810
call fcn.00460460
push dword [0x5c5838]
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [0x58c6c8], 0
jne 0x40436a
mov ecx, esi
mov dword [0x58c6c8], 1
call fcn.00404450
dec dword [0x58c6c8]
pop edi
cmp byte [0x5933f4], 0
mov ecx, esi
je 0x404391
call fcn.004049d0
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0052f708
add esp, 0x2004
ret
call fcn.00404c30
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0052f708
add esp, 0x2004
ret
cmp byte [0x5933f4], 0
je 0x4043c3
lea eax, [esp + 4]
push eax
call fcn.004a2440
test al, al
je 0x404406
lea eax, [esp + 4]
push eax
call fcn.004bcdf0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404406
test al, 0x10
jne 0x404406
lea eax, [esp + 4]
mov ecx, 0x5c5810
push eax
call fcn.0045dd80
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0052f708
add esp, 0x2004
ret
push 1
lea eax, [esp + 8]
mov ecx, 0x5c5810
push eax
call fcn.0045a940
mov ecx, dword [esp + 0x2004]
pop esi
xor ecx, esp
call fcn.0052f708
add esp, 0x2004
ret
Function at 0x40eeb0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x804
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x814]
xor eax, eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x400
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push eax
call fcn.004bc800
mov ebx, eax
test ebx, ebx
je 0x40ef45
test esi, esi
jne 0x40eefc
mov esi, 1
jmp 0x40ef27
movzx eax, word [esp + 0xc]
mov ecx, 0x5a3ed8
push eax
call fcn.0047fa60
test al, al
jne 0x40ef27
cmp esi, 1
jne 0x40ef26
movzx eax, word [esp + 0xc]
mov word [edi], ax
movzx eax, word [esp + 0xe]
mov word [edi + 2], ax
inc esi
push 0x400
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004bc800
mov ebx, eax
test ebx, ebx
jne 0x40eef1
cmp esi, 2
jne 0x40ef45
mov word [edi], ax
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x804
ret 4
Function at 0x4101b0
Capabilities:
Copy file

Disassembly:
mov eax, 0x3020
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x301c], eax
push ebx
mov ebx, dword [esp + 0x3028]
push ebp
push esi
push edi
call fcn.00495220
test al, al
je 0x41036e
call fcn.004fdb60
test al, al
je 0x41036e
push 0x800
lea eax, [esp + 0x2030]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movzx eax, word [ebx]
mov esi, 0x20
mov ebp, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.RarExtLogo.altform_unplated_targetsize_32.png
xor edi, edi
mov dword [esp + 0x18], str.RarExtLogo.altform_unplated_targetsize_48.png
mov dword [esp + 0x1c], str.RarExtLogo.altform_unplated_targetsize_64.png
mov dword [esp + 0x20], str.RarExtLogo_Default.altform_unplated_targetsize_32.png
mov dword [esp + 0x24], str.RarExtLogo_Default.altform_unplated_targetsize_48.png
mov dword [esp + 0x28], str.RarExtLogo_Default.altform_unplated_targetsize_64.png
push 0x800
lea eax, [esp + 0x2030]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00538bb7
push 0x800
lea eax, [esp + 0x203c]
push eax
lea eax, [esp + 0x1040]
push eax
call fcn.00538bb7
add esp, 0x18
lea eax, [esp + 0x2c]
push 0x800
push dword [esp + edi + 0x18]
push eax
call fcn.004a2ea0
push 0x800
push dword [esp + edi + 0x24]
lea eax, [esp + 0x1034]
push eax
call fcn.004a2ea0
cmp word [esp + 0x10], 0
jne 0x4102f9
lea eax, [esp + 0x102c]
push eax
call fcn.00490c30
test al, al
je 0x41036e
lea eax, [esp + 0x2c]
push eax
call fcn.00490c30
test al, al
je 0x4102dc
lea eax, [esp + 0x2c]
push eax
call fcn.004906b0
test al, al
je 0x4103a0
push 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4103a0
test bp, bp
je 0x41035f
lea eax, [esp + 0x102c]
push eax
call fcn.00490c30
test al, al
jne 0x410328
push 0
lea eax, [esp + 0x1030]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4103a0
lea eax, [esp + 0x2c]
push eax
call fcn.00490c30
test al, al
je 0x410344
lea eax, [esp + 0x2c]
push eax
call fcn.004906b0
test al, al
je 0x4103a0
push esi
push esi
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.00410d90
lea eax, [esp + 0x2c]
push eax
call fcn.00490c30
test al, al
je 0x41038b
add esi, 0x10
add edi, 4
cmp esi, 0x50
jb 0x410242
mov al, 1
mov ecx, dword [esp + 0x302c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x3020
ret 4
push 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor al, al
jmp 0x410370
Function at 0x411f90
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x5024
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x5020], eax
push ebp
push str.winrar_config_integration
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, eax
test ebp, ebp
je 0x4121e2
push ebx
push 0x10000
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4121da
mov al, byte [ebx]
movzx ecx, byte [ebx + 2]
mov byte [esp + 0xb], al
movzx eax, byte [ebx + 1]
shl ecx, 8
add ecx, eax
cmp ecx, 0x1c
jne 0x4121d3
push esi
push edi
lea esi, [ebx + 3]
mov ecx, 7
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x1f]
test edi, edi
je 0x4121d1
movzx esi, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
add esi, eax
cmp esi, 0x800
jae 0x4121d1
add esi, esi
lea eax, [edi + 2]
push esi
push eax
lea eax, [esp + 0x2038]
push eax
call fcn.00531230
xor eax, eax
add edi, 2
add esp, 0xc
mov word [esp + 0x302e], ax
add edi, esi
je 0x4121d1
movzx esi, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
add esi, eax
cmp esi, 0x800
jae 0x4121d1
add esi, esi
lea eax, [edi + 2]
push esi
push eax
lea eax, [esp + 0x1038]
push eax
call fcn.00531230
xor eax, eax
add edi, 2
add esp, 0xc
mov word [esp + 0x202e], ax
add edi, esi
je 0x4121d1
movzx esi, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
add esi, eax
cmp esi, 0x800
jae 0x4121d1
add esi, esi
lea eax, [edi + 2]
push esi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00531230
xor eax, eax
add edi, 2
add esp, 0xc
mov word [esp + 0x102e], ax
add edi, esi
je 0x4121d1
movzx esi, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
add esi, eax
cmp esi, 0x800
jae 0x4121d1
add esi, esi
lea eax, [edi + 2]
push esi
push eax
lea eax, [esp + 0x4038]
push eax
call fcn.00531230
xor eax, eax
add edi, 2
add esp, 0xc
mov word [esp + 0x502e], ax
add edi, esi
je 0x4121d1
movzx esi, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
add esi, eax
cmp esi, 0x800
jae 0x4121d1
add esi, esi
lea eax, [edi + 2]
push esi
push eax
lea eax, [esp + 0x3038]
push eax
call fcn.00531230
xor eax, eax
add esp, 0xc
mov word [esp + 0x402e], ax
lea eax, [esi + 2]
add eax, edi
je 0x4121d1
mov al, byte [esp + 0x13]
cmp al, 1
je 0x412192
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.004575e0
lea eax, [esp + 0x1030]
push eax
lea eax, [esp + 0x2034]
push eax
call fcn.00412710
mov al, byte [esp + 0x13]
cmp word [esp + 0x30], 0
jne 0x41219e
cmp al, 1
jne 0x4121d1
push 0
lea eax, [esp + 0x3034]
push eax
lea eax, [esp + 0x4038]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00456770
mov al, byte [esp + 0x13]
cmp al, 1
jne 0x4121d1
lea eax, [esp + 0x30]
push eax
call fcn.004101b0
pop edi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [esp + 0x5024]
pop ebp
xor ecx, esp
call fcn.0052f708
add esp, 0x5024
ret