joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x429e65
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x429e70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429e70
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x429ef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x429f09
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429f15
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x429f10
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42b130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b363
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x420], 0
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
call ebx
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
jne 0x42b1aa
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp + 8], eax
test esi, esi
jne 0x42b1aa
call fcn.004308e0
mov edi, eax
jmp 0x42b27f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42b1c7
call fcn.004308e0
jmp 0x42b272
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp + 0x10], ebx
test ebx, ebx
jne 0x42b1e2
call fcn.004308e0
jmp 0x42b272
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp + 0xc], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x42b1fd
mov edi, 0x8007000e
jmp 0x42b274
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.00429730
jmp 0x42b21e
mov dword [ebp - 4], 1
cmp dword [ebp - 0x420], 0
jne 0x42b235
mov edi, 0x8007000e
jmp 0x42b274
push edi
push dword [ebp - 0x420]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x42b255
call fcn.004308e0
jmp 0x42b272
mov eax, dword [ebp - 0x420]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x420]
lea ecx, [ebp - 0x18]
call fcn.0042afe0
mov edi, eax
test esi, esi
je 0x42b27f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x42b298
lea ecx, [ebp - 0x420]
call fcn.004296e0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x442569
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00435d46
mov dword [ebp - 0x14], eax
cmp dword [0x464770], edi
jne 0x44265a
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4425e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44273a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44273a
push 0x451b70
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44273a
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x464770], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x464774], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x464778], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x464780], eax
test eax, eax
je 0x442657
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46477c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44267f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x442672
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x442694
push 4
pop eax
jmp 0x44273c
cmp dword [ebp - 0x14], edi
je 0x442694
push dword [0x464770]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x442679
mov eax, dword [0x46477c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4426f2
cmp dword [0x464780], esi
je 0x4426f2
push eax
call ebx
push dword [0x464780]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4426f2
test eax, eax
je 0x4426f2
call ecx
test eax, eax
je 0x4426e7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4426e7
test byte [ebp - 8], 1
jne 0x4426f2
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x442722
mov eax, dword [0x464774]
cmp eax, esi
je 0x44271f
push eax
call ebx
test eax, eax
je 0x44271f
call eax
mov edi, eax
test edi, edi
je 0x44271f
mov eax, dword [0x464778]
cmp eax, esi
je 0x44271f
push eax
call ebx
test eax, eax
je 0x44271f
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x464770]
call ebx
test eax, eax
je 0x44273a
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44273c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431c68
leave
ret
Function at 0x4040d0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb4f6
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 5
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.ABCPhoto
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404146
push 0
lea eax, [ebp - 0x218]
push eax
call esi
push 0x508cc0
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40416f
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x640]
call fcn.00448bd0
mov esi, eax
cmp esi, 0x539634
je 0x4041cc
mov eax, dword [0x539648]
cmp eax, 0x10
jb 0x4041a6
inc eax
mov ecx, 0x539634
push eax
push dword [0x539634]
call fcn.00407610
push esi
mov ecx, 0x539634
mov dword [0x539648], 0xf
mov dword [0x539644], 0
mov byte [0x539634], 0
call fcn.00406a90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
cmp eax, 0x10
jb 0x4041f1
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00407610
push dword [0x539668]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x62c], 0xf
push eax
mov dword [ebp - 0x630], 0
mov byte [ebp - 0x640], 0
call edi
cmp word [ebp - 0x218], 0
jne 0x404229
xor ecx, ecx
jmp 0x404241
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404232
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, 0x53966c
push eax
call fcn.00407340
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00487ab0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.00487ab0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
cmp word [ebp - 0x420], 0
jne 0x4042b5
xor ecx, ecx
jmp 0x4042cf
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
mov ecx, 0x539650
push eax
call fcn.00407340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046370d
mov esp, ebp
pop ebp
ret
Function at 0x40cc60
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebccb
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00487ab0
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x134]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push 3
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x50940c
mov byte [ecx], 0
call fcn.00409e40
lea eax, [ebp - 0x130]
push eax
call fcn.00407f90
mov esi, dword [ebp - 0x11c]
test al, al
je 0x40cd55
mov edx, dword [ebp - 0x120]
lea ecx, [ebp - 0x130]
cmp esi, 0x10
push 1
cmovae ecx, dword [ebp - 0x130]
push 0x509410
call fcn.0041c210
add esp, 8
test eax, eax
sete al
mov byte [edi + 0x41c], al
jmp 0x40cd5c
mov byte [edi + 0x41c], 0
cmp esi, 0x10
jb 0x40cd76
lea eax, [esi + 1]
push eax
push dword [ebp - 0x130]
lea ecx, [ebp - 0x130]
call fcn.00407610
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046370d
mov esp, ebp
pop ebp
ret
Function at 0x40d6e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebe00
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
push dword [ebx + 0x25c]
mov esi, dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
setne al
test al, al
jne 0x40d753
push 1
push dword [ebx + 0x25c]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
push 0
push 0x202
push dword [ebx + 0x25c]
call dword [sym.imp.USER32.dll_SendMessageW]
or eax, 0xffffffff
jmp 0x40d8b1
push 5
push dword [ebx + 0x25c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
mov esi, dword [esi + 8]
shr eax, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov ebx, 0
je 0x40d825
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7a0
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 1
jle 0x40d825
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
je 0x40d7e4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d7d5
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407340
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x38]
call fcn.0040a510
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40d817
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407a10
add ebx, edi
lea esi, [esi + edi*2]
cmp ebx, dword [ebp - 0x3c]
jb 0x40d793
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
push eax
call fcn.004107b0
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40d8af
push dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
push ecx
mov ecx, ebx
call fcn.0040ab20
mov ecx, dword [ebp - 0x30]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x40d86b
call fcn.004a8769
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x40d8a6
test bl, 0x1f
je 0x40d882
call fcn.004a8769
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x40d88e
call fcn.004a8769
sub ebx, eax
cmp ebx, 4
jae 0x40d89a
call fcn.004a8769
cmp ebx, 0x23
jbe 0x40d8a4
call fcn.004a8769
mov ebx, eax
push ebx
call fcn.00463708
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046370d
mov esp, ebp
pop ebp
ret 8
Function at 0x40e2e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebf82
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
push 0x509480
lea ecx, [edi + 4]
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::FindChildByName_wchar_t_const___int_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_class_SOUI::CRect___thiscall_SOUI::SWindow::GetWindowRect_void_]
mov eax, dword [ebp - 0x28]
lea ecx, [edi + 0x250]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ClientToScreen_struct_tagPOINT__const]
cmp dword [edi + 0x414], 0
jne 0x40e42b
push 0x400
call fcn.00463756
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov ecx, eax
push dword [edi + 0x25c]
call fcn.00437ac0
push 0
push 0
push 0
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
push 0
push dword [edi + 0x25c]
mov dword [edi + 0x414], eax
call dword [sym.imp.soui.dll_public:_struct_HWND______thiscall_SOUI::SHostWnd::Create_struct_HWND_____int__int__int__int_]
mov eax, dword [edi + 0x414]
push 0
push 0
push 0x110
push dword [eax + 0x25c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x414]
lea edx, [ebp - 0x20]
add ecx, 4
push edx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
sub esi, edx
add esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov eax, esi
sub eax, dword [ebp - 0x20]
add edx, eax
mov dword [ebp - 0x20], esi
mov eax, ecx
mov dword [ebp - 0x18], edx
sub eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 0x414]
push 1
push eax
add ecx, 0x250
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::MoveWindow_struct_tagRECT_const___int_]
mov eax, dword [edi + 0x414]
push 0xa
push dword [eax + 0x25c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x414]
mov eax, dword [eax + 0x25c]
mov dword [edi + 0x418], eax
jmp 0x40e453
push 0xa
push dword [edi + 0x418]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x418]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [edi + 0x418]
call dword [sym.imp.USER32.dll_FlashWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046370d
mov esp, ebp
pop ebp
ret
Function at 0x40fe50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec430
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x404]
mov eax, 0x38e38e39
sub ecx, dword [edi + 0x400]
mov esi, dword [ebp + 8]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x40ff32
mov eax, dword [edi + 0x400]
lea esi, [esi + esi*8]
shl esi, 3
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x40feba
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ff32
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x400]
add edx, esi
cmp dword [edx + 0x14], 0x10
jb 0x40fef1
mov edx, dword [edx]
lea ecx, [ebp - 0x2c]
call fcn.00448dd0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040a510
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40ff1f
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407a10
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.004107b0
lea ecx, [ebp - 0x38]
call fcn.0041c090
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046370d
mov esp, ebp
pop ebp
ret 4

Function at 0x410210
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x533014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0040a0b0
mov ebx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
mov ecx, ebx
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x4102c2
mov byte [ebp - 0x10], 0
lea ecx, [esi + 0x18]
push dword [ebp - 0x10]
mov edx, ebx
push esi
call fcn.00418f80
add esp, 8
lea esi, [ebx - 0x18]
mov edx, ebx
push dword [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.0040ab20
add esp, 8
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004107b0
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
jmp 0x4102c9
mov ecx, edi
call fcn.004106c0
push 1
push dword [edi + 0x25c]
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
je 0x410308
push dword [ebp - 0x10]
mov edx, ebx
push ecx
mov ecx, esi
call fcn.0040ab20
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040ac40
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411c40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec803
mov eax, dword fs:[0]
push eax
mov eax, 0x193a0
call fcn.004e0770
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x3ec]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov eax, dword [eax + 0x188]
imul esi, eax, 0x6c
mov eax, dword [edi + 0x3f4]
add eax, 0x1c
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
add eax, esi
push eax
call fcn.00406dc0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x3f4]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x411cc4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x193ac]
call fcn.004145e0
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push str.pdf_files_.pdf_
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push ecx
push 0
lea ecx, [ebp - 0x193a8]
call fcn.0040c860
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [ebp - 0x193a4]
test ecx, ecx
cmove ecx, eax
cmp dword [ebp - 0x19350], 0
lea eax, [ebp - 0x193a8]
mov dword [ebp - 0x193a4], ecx
push eax
je 0x411d24
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x411d2a
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, 1
jne 0x411d5f
mov eax, dword [ebp - 0x193ac]
cmp dword [eax - 4], 1
jle 0x411d4f
push dword [eax - 0xc]
lea ecx, [ebp - 0x193ac]
call fcn.00415080
mov eax, dword [ebp - 0x193ac]
push 0
lea ecx, [ebp - 0xcb4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x193ac]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x411d9c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x411d98
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x411d9c
mov ecx, edx
call esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x411db1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407a10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046370d
mov esp, ebp
pop ebp
ret
Function at 0x41b0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41b0c9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41b106
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41b102
nop word [eax + eax]
cmp esi, edx
jae 0x41b106
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x41b0f0
cmp esi, edx
jb 0x41b10d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret