joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9c12
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x30]
call fcn.00403bf0
mov eax, dword [ebx + 0x28]
lea ecx, [ebx + 0x28]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00403df0
push dword [ebx + 0x28]
call fcn.0049f1af
mov edx, dword [ebx + 0x24]
or esi, 0xffffffff
add esp, 4
sub edx, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40234a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x20]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402364
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x1c]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40237e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x18]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402398
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x4023c5
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4023c5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x4023c5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 1
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x4023f2
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4023f2
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x4023f2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 2
mov edi, dword [ebx + 4]
test edi, edi
je 0x40241e
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40241e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40241e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403020
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9e3a
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40309d
push 0xc0
call fcn.0049f1e8
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0042b680
push ecx
mov esi, eax
mov byte [ebp - 4], 0
push dword [ebp + 8]
mov ecx, esi
call fcn.0042bd50
mov dword [esi + 0x58], 1
mov ecx, edi
mov edx, dword [edi]
push esi
call dword [edx + 0xa4]
xor esi, esi
jmp 0x4030a2
mov esi, 0x80004005
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4030c4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x405250
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 0x405269
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 0x4052a6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4052a2
nop word [eax + eax]
cmp esi, edx
jae 0x4052a6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405290
cmp esi, edx
jb 0x4052ad
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

Function at 0x405d20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x405d83
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405d83
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x405d75
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetWebViewFactory
push eax
call edi
test eax, eax
je 0x405d5d
call eax
mov dword [esi + 4], eax
push str.IWebViewToIWebViewEx
push dword [esi]
call edi
push str.IsSupportedWebViewEngine
push dword [esi]
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 4], eax
pop edi
setne al
pop esi
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x407480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca397
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x51c308], 0
jne 0x4074d9
push 0x4c
call fcn.0049f1e8
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00409260
mov dword [ebp - 4], 0xffffffff
mov dword [0x51c308], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004095a0
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407514
push 0x4e470c
push 0x4dfc9c
push str.cef_load
call fcn.00472aa0
add esp, 0xc
xor esi, esi
jmp 0x407605
push dword [ebp - 0x10]
lea ecx, [edi + 0x170]
call fcn.00405d20
mov dword [edi + 0x18c], eax
test eax, eax
je 0x407563
mov ecx, dword [edi + 0x164]
cmp dword [ecx - 0xc], 0
je 0x407554
push 0
push ecx
mov esi, esp
add ecx, 0xfffffff0
mov dword [ebp - 0x14], esi
call fcn.00405420
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00406ea0
push 0x4e470c
push 0x4dfc80
jmp 0x4075f2
mov ecx, dword [edi + 0x19c]
mov edx, 0x2711
call fcn.00429cc0
mov ecx, dword [edi + 0x154]
mov eax, dword [ecx]
call dword [eax + 0x130]
mov ecx, dword [edi + 0x150]
push 0
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [edi + 0x15c]
push 0
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [edi + 0x158]
push 1
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x4075c5
mov eax, dword [ecx]
push 0
call dword [eax + 0xcc]
mov ecx, dword [edi + 0x180]
test ecx, ecx
je 0x4075d7
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x14]
mov ecx, edi
mov dword [edi + 0x190], 3
call fcn.004218b0
push 0x4e470c
push 0x4dfc9c
push str.cef_load
call fcn.00472aa0
mov esi, dword [edi + 0x18c]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407627
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4079a0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca418
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x505070]
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 - 4], 0
cmp dword [ebx + 0x180], 0
jne 0x407b3f
mov ecx, dword [ebx + 0x160]
test ecx, ecx
je 0x407b3f
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
call dword [eax + 0x9c]
cmp dword [ebx + 0x180], 0
jne 0x407b3f
push 0x4e470c
lea ecx, [ebp - 0x28]
call fcn.00405360
push 0
push 0x506cd0
mov byte [ebp - 4], 1
mov ecx, ebx
movups xmm0, xmmword [ebp - 0x20]
mov edi, dword [ebx + 0x174]
push 0x506cac
push 0
push dword [ebp - 0x28]
mov esi, dword [edi]
push dword [ebp + 8]
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [ebx]
call dword [eax + 0xc8]
push eax
push dword [ebx + 0x188]
push edi
call dword [esi + 8]
push eax
call fcn.004c90da
add esp, 0x14
mov dword [ebx + 0x180], eax
test eax, eax
je 0x407b20
lea ecx, [ebp - 0x24]
call fcn.00405b40
push 0x4e43a8
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push str.__user_agent_s
push eax
call fcn.00408f50
mov eax, dword [ebx + 0x180]
add esp, 0xc
mov esi, dword [ebp - 0x24]
mov ecx, dword [eax]
push 0
push esi
push str.special_command
push eax
call dword [ecx + 0x30]
cmp dword [ebx + 0x16c], 0
je 0x407aeb
mov eax, dword [ebx + 0x180]
lea edx, [ebp - 0x2c]
push 4
push edx
mov dword [ebp - 0x2c], 1
mov ecx, dword [eax]
push str.enable_high_dpi
push eax
call dword [ecx + 0x30]
mov eax, dword [ebx + 0x180]
lea edx, [ebp - 0x30]
push 4
push edx
mov dword [ebp - 0x30], 1
mov ecx, dword [eax]
push str.disable_gpu
push eax
call dword [ecx + 0x30]
mov ecx, dword [ebx + 0x180]
lea eax, [ebx + 0x12c]
neg ebx
sbb ebx, ebx
mov edx, dword [ecx]
and ebx, eax
push ebx
push ecx
call dword [edx + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407b20
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407b3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407b61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0049f1b4
mov esp, ebp
pop ebp
ret 4
Function at 0x409260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca594
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 1
lea ecx, [esi + 0x28]
push esi
mov dword [esi], vtable.CWebViewMgr.1.0
mov dword [esi + 4], vtable.CWebViewMgr.0
call fcn.0040ad90
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
call fcn.00405a90
mov ecx, eax
test ecx, ecx
jne 0x4092fd
push 0x80004005
call fcn.00405cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x44], eax
mov byte [ebp - 4], 4
lea eax, [esi + 0x24]
push dword [ebp - 0x10]
mov dword [esi + 0x3c], 0
push eax
push 0x505a18
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
call fcn.0040b980
add esp, 0xc
movzx eax, ax
lea ecx, [esi + 4]
push 0
push eax
push 0
push 0
push 0x56000000
push 0
push 0
push 0xfffffffffffffffd
call fcn.0040b800
mov eax, dword [esi + 0x2c]
mov dword [eax + 0x38], 0x403010
mov dword [eax + 0x3c], 0
mov eax, dword [esi + 0x2c]
mov dword [eax + 0x30], 0x40ab50
mov dword [eax + 0x34], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4094e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca5c9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, str.webview
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0046d5f0
mov dword [ebp - 4], 0
push dword [esi]
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409546
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.cef
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.004080b0
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40956f
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40958a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca630
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004094e0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
or edi, 0xffffffff
test eax, eax
je 0x40986a
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40986a
xor esi, esi
push 0x4e4c6c
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.004080b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push dword [esi + 0x4dfd20]
mov edx, eax
call fcn.004080b0
mov byte [ebp - 4], 0
add esp, 8
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409826
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
test eax, eax
mov eax, edi
je 0x409858
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409849
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, 0x30
jb 0x4097e1
mov esi, 1
jmp 0x40986c
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40986a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40988b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a1b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xc
mov ebx, ecx
call fcn.0049f1e8
add esp, 4
mov ecx, eax
call fcn.0040a260
mov edx, dword [ebp + 8]
mov edi, eax
mov dword [edi], ebx
test edx, edx
jne 0x40a1d9
xor ecx, ecx
jmp 0x40a1ef
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a1e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 4]
call fcn.00405580
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40a204
xor ecx, ecx
jmp 0x40a21f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a210
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.00405580
push 0
push 0
push edi
push 0x40a150
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, ebx
push eax
mov dword [ecx + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40aa60
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca818
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebx + 0x44]
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ab07
lea eax, [ebp - 0x10]
push eax
call fcn.004094e0
mov dword [ebp - 4], esi
mov edx, dword [eax]
mov ecx, dword [ebx + 0x44]
call fcn.0048a4b0
neg eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
sbb esi, esi
add edx, 0xfffffff0
inc esi
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aad4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x44]
call fcn.004054b0
mov ecx, 0x4dfce0
test esi, esi
mov eax, 0x4dfcec
push 0x4e470c
cmove eax, ecx
push eax
push 0x4dfcb8
call fcn.00472aa0
add esp, 0xc
push 0
push esi
push 0xdadb
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e950
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cacf8
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x505070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004a1ef0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 0x30]
push 0x104
push eax
push 0x4e512c
push dword [ebp + 8]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x40ea05
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40e9e0
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00405580
mov esi, 1
jmp 0x40ea07
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40ea29
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0049f1b4
mov esp, ebp
pop ebp
ret 8
Function at 0x40fbc0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea ecx, [ebp - 4]
call fcn.0046da20
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fbf3
push dword [ebp - 4]
push 0
push str.AutoDetectPdfAssoc
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
jmp 0x40fbf5
xor esi, esi
mov edx, dword [ebp - 4]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40fcc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caee4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
lea edi, [esi + 0x20]
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [esi + 0x24], vtable.CSingletonBase_class_CCloudConfigMgr_.0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x28]
push esi
mov dword [esi], vtable.CCloudConfigMgr.1.0
mov dword [esi + 0x24], vtable.CCloudConfigMgr.0
call fcn.004104d0
mov byte [ebp - 4], 2
call fcn.00405a90
mov ecx, eax
test ecx, ecx
jne 0x40fd53
push 0x80004005
call fcn.00405cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
mov dword [esi + 0x40], 0
push edi
push 0x505b60
call fcn.0040b980
add esp, 0xc
movzx eax, ax
mov ecx, esi
push 0
push eax
push 0
push 0
push 0x56000000
push 0
push 0
push 0xfffffffffffffffd
call fcn.0040b800
mov eax, dword [esi + 0x2c]
mov ecx, esi
mov dword [eax + 0x38], 0x40ffe0
mov dword [eax + 0x3c], 0
call fcn.00410060
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411290
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb0b6
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.004a03d0
mov eax, dword [0x505070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 8], 0
jne 0x4112d8
cmp dword [edi + 4], 0
je 0x4113ff
lea ebx, [edi + 0x14]
push ebx
mov dword [ebp - 0x2020], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x201c], 1
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], 0
jle 0x41132e
test esi, esi
je 0x4113f8
cmp dword [eax - 0xc], 0
jl 0x4113f8
push esi
push eax
call fcn.004a192e
add esp, 8
test eax, eax
je 0x4113f8
sub eax, dword [edi + 0x10]
sar eax, 1
js 0x4113f8
push 0x2000
lea eax, [ebp - 0x2014]
push 0
push eax
call fcn.004a1ef0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2014]
call fcn.00410d00
call fcn.00405a90
mov ecx, eax
test ecx, ecx
jne 0x41136c
push 0x80004005
call fcn.00405cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2014]
mov byte [ebp - 4], 1
push eax
push esi
lea eax, [ebp - 0x2018]
push str.__s___s_r_n
push eax
call fcn.00408f50
mov esi, dword [ebp - 0x2018]
add esp, 0x10
cmp dword [edi + 8], 0
je 0x4113ad
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi + 4], 0
je 0x4113dc
mov ecx, dword [edi + 0xc]
cmp ecx, 0xffffffff
je 0x4113dc
push 0
mov dword [ebp - 0x2018], 0
lea edx, [ebp - 0x2018]
mov eax, dword [esi - 0xc]
push edx
add eax, eax
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4113f8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049f1b4
mov esp, ebp
pop ebp
ret
Function at 0x411560
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb0ef
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp - 0x10]
lea eax, [esi + 0x20]
mov dword [esi + 0x28], 0
push eax
push 0x505bf0
call fcn.0040b980
add esp, 0xc
movzx eax, ax
mov ecx, esi
push 0
push eax
push 0
push 0
push SysReAllocStringLen
push 0
push 0
push 0
call fcn.0040b800
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0x2ff
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov eax, dword [0x51c338]
test eax, eax
jne 0x411605
push 0x2c
call fcn.0049f1e8
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00410d80
mov dword [ebp - 4], 0xffffffff
mov dword [0x51c338], eax
push str.Init
push str.CEndSessionMgr
push eax
call fcn.00411290
add esp, 0xc
push 0x4e470c
push 0x4dff68
push str.delay_enable_server
call fcn.00472aa0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret