joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4905a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ec398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00491120
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x4ef4ac]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x4ef530]
test eax, eax
je 0x490649
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00490230
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x4ef4fc]
push edi
lea ecx, [esp + 0x4c]
call fcn.004e511f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.004a6d70
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x4ef094]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x4ef55c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x4ef4f0]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.004e5191
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
Function at 0x490b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ec3c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0048e6c0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x490bd9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.0048ba30
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.0048ba20
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00490230
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x4ef55c]
push 0
lea ecx, [esp + 0x4c]
call fcn.004e511f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.004a6d70
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.0048e0e0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x4ef098]
mov ecx, ebx
call fcn.0048b9a0
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x490ca4
push edi
mov ecx, esi
call fcn.0048e1f0
push eax
push ebp
mov ecx, esi
call fcn.0048e3b0
cmp eax, dword [esp + 0x40]
jg 0x490ca0
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x490c7e
mov eax, ebx
jmp 0x490caa
cmp edi, ebx
jl 0x490ca8
mov eax, ebx
jmp 0x490caa
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x490cbb
mov dword [esp + 0x30], eax
jmp 0x490cc6
cmp edi, ebx
jl 0x490cc1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.0048b960
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x490d0d
push edi
mov ecx, esi
call fcn.0048e110
push eax
push ebx
mov ecx, esi
call fcn.0048e4e0
cmp eax, dword [esp + 0x44]
jg 0x490d05
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x490cdf
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x490d17
cmp edi, ebp
jl 0x490d11
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x490d17
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x490d20
mov ecx, eax
jmp 0x490d29
cmp edi, ebp
jl 0x490d26
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.0048e100
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004e5191
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x496ca0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ec878
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x496cd9
inc eax
mov dword [esi + 0x10], eax
jmp 0x496dec
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x496ced
mov eax, 0xffffffc7
jmp 0x496dee
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x496cfe
cmp dword [esi + 8], eax
jne 0x496ced
cmp dword [esi + 8], eax
jne 0x496d17
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x496d17
mov eax, 0xffffffc7
jmp 0x496dee
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x496d2b
push eax
mov ecx, ebx
call fcn.004964d0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00461460
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x496d5c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00461480
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00495c40
test eax, eax
mov dword [esp + 0x38], eax
je 0x496d8f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6202a8
call fcn.00461660
mov eax, dword [esp + 0x38]
jmp 0x496dee
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00496b00
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x496dd3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00496b20
mov esi, eax
test esi, esi
jne 0x496e03
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00496b00
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x496da5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6202a8
call fcn.00461660
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6202a8
call fcn.00461660
mov eax, esi
jmp 0x496dee
Function at 0x4a7410
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ed168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4ef55c]
push 0
lea ecx, [esp + 0x20]
call fcn.004e511f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004a6d70
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004e504d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004e190e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004e190e
push 1
push 0
push 0
mov ecx, esi
call fcn.004e18b6
push 1
push 0
push 1
mov ecx, esi
call fcn.004e18b6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004e5191
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4a7590
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ed188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004e511f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004a6d70
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004e504d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4ef55c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4a7654
cmp dword [esp + 0x40], 1
jne 0x4a7652
cmp ecx, eax
jge 0x4a7654
mov eax, ecx
cmp eax, 0xc8
jge 0x4a7660
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004a7410
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4ef558]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004e5191
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4a7e60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ed233
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004dfd2e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x621d48
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x621c90
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4ef064]
push eax
mov ecx, edi
call fcn.004e53c7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004e6926
test eax, eax
je 0x4a7f7c
mov ecx, dword [esp + 0x3c]
call fcn.004e53f4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4ef57c]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4a7f40
push edi
mov ecx, esi
call fcn.004e2a5c
mov ecx, esi
call fcn.004a8120
cmp dword [esp + 0x38], 1
jne 0x4a7f75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004e2b97
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4aa180
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4aa1b3
push esi
call fcn.004b8530
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4aa1ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4aa239
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4aa222
mov eax, dword [esi + 8]
test eax, eax
je 0x4aa1d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4aa21e
cmp eax, 2
je 0x4aa222
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4aa1ca
cmp eax, 3
je 0x4aa1fd
cmp eax, 1
jne 0x4aa1ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4aa1ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4aa1ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004aa260
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4aa248
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004aa260
add esp, 4
pop esi
ret
Function at 0x3b501e60
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x3b573af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x3b593584]
test eax, eax
jne 0x3b502045
cmp dword [0x3b593588], 3
jge 0x3b502045
mov eax, dword [0x3b59358c]
mov ecx, str.DocWaterMark.dll
test eax, eax
je 0x3b501ea3
mov ecx, str.x64DocWaterMark64.dll
mov eax, dword [0x3b5789f0]
mov dword [esp], eax
mov eax, dword [0x3b593538]
mov dword [esp + 0xc], 0
push ecx
mov edx, dword [eax - 8]
test edx, edx
jne 0x3b501ecc
lea ecx, [esp + 4]
call fcn.3b530140
jmp 0x3b501edf
push eax
lea ecx, [esp + 8]
push 0x3b5802dc
push ecx
call fcn.3b532e40
add esp, 0x10
mov eax, dword [0x3b599e48]
test eax, eax
je 0x3b501f06
mov edx, dword [esp]
push edx
push str.DocWaterMark::Initialize___s_
push str.DocWaterMark
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x14
mov eax, dword [0x3b593588]
push esi
push 8
inc eax
push 0
push 0
lea ecx, [esp + 0x10]
mov dword [0x3b593588], eax
call fcn.3b530b90
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x3b50202e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DWMOpen
push esi
call edi
push str.DWMSave
push esi
mov dword [0x3b59353c], eax
call edi
push str.DWMClose
push esi
mov dword [0x3b593540], eax
call edi
push str.DWMGetWorkSpaceCount
push esi
mov dword [0x3b593544], eax
call edi
push str.DWMGetWorkSpacePageSetup
push esi
mov dword [0x3b593548], eax
call edi
push str.DWMGetTextSize
push esi
mov dword [0x3b59354c], eax
call edi
push str.DWMSetWaterMark
push esi
mov dword [0x3b593550], eax
call edi
push str.DWMGetWaterMark
push esi
mov dword [0x3b593554], eax
call edi
push str.DWMGetAllWaterMark
push esi
mov dword [0x3b593558], eax
call edi
push str.DWMDelWaterMark
push esi
mov dword [0x3b59355c], eax
call edi
push str.DWMInitDocWaterMarkParam
push esi
mov dword [0x3b593560], eax
call edi
push str.DWMInitFontNameMap
push esi
mov dword [0x3b593564], eax
call edi
push str.DWMSetBlindWord
push esi
mov dword [0x3b593568], eax
call edi
push str.DWMGetFileType
push esi
mov dword [0x3b59356c], eax
call edi
push str.DWMFinalize
push esi
mov dword [0x3b593570], eax
call edi
push str.DWMIsImgFile
push esi
mov dword [0x3b593574], eax
call edi
push str.DWMGetAllFontName
push esi
mov dword [0x3b593578], eax
call edi
push str.DWMDestroyFontNameBuf
push esi
mov dword [0x3b59357c], eax
call edi
mov dword [0x3b593580], eax
mov dword [0x3b593584], 1
pop edi
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.3b52fec0
mov eax, dword [0x3b593584]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x3b506b80
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x3b599e48]
push esi
mov esi, dword [esp + 8]
test eax, eax
je 0x3b506ba8
push esi
push str.CTWMDocHelper::IsUse64Image__________p_
push str.DocWaterMark
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x14
test esi, esi
jne 0x3b506bb0
xor eax, eax
pop esi
ret
push ebp
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x3b506c4d
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push esi
call fcn.3b50fcd0
add esp, 8
test eax, eax
je 0x3b506c45
push ebx
push eax
push edi
push esi
call fcn.3b50fe20
mov edi, eax
mov eax, dword [0x3b599e48]
add esp, 0xc
mov ebx, edx
test eax, eax
je 0x3b506c2b
mov eax, dword [0x3b5821ac]
mov ecx, dword [0x3b5821a8]
push eax
push ecx
push ebx
push edi
push str.CTWMDocHelper::IsUse64Image__imgsize__d__d__bigsize__d__d_
push str.DocWaterMark
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x20
mov edx, dword [0x3b5821a8]
imul edi, ebx
imul edx, dword [0x3b5821ac]
cmp edi, edx
pop ebx
jle 0x3b506c45
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [0x3b599e48]
test eax, eax
je 0x3b506c70
push ebp
push str.CTWMDocHelper::IsUse64Image____bRet__d_
push str.DocWaterMark
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x14
mov eax, ebp
pop ebp
pop esi
ret
Function at 0x3b5103c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
cmp ebx, 0xffffffff
push edi
jne 0x3b5103d4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, edi
cmp ecx, eax
jae 0x3b5103ed
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov esi, dword [esp + 0x24]
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.3b542570
mov ecx, esi
call fcn.3b542c60
mov ebp, eax
test ebp, ebp
jne 0x3b51040d
pop edi
pop esi
pop ebp
pop ebx
ret
xor esi, esi
test edi, edi
jbe 0x3b510451
mov ecx, dword [esp + 0x1c]
push 0
push 0
mov dword [esp + 0x1c], 0
lea edx, [esi + ecx]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, edi
lea eax, [esp + 0x14]
push 0
sub ecx, esi
push eax
lea edx, [esi + ebp]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3b510451
add esi, dword [esp + 0x14]
cmp esi, edi
jb 0x3b510413
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x3b5114f0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x410
test eax, eax
je 0x3b5115af
mov eax, dword [esp + 0x418]
test eax, eax
jbe 0x3b5115af
push ebx
mov ebx, dword [esp + 0x420]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
rep stosd dword es:[edi], eax
test esi, esi
stosw word es:[edi], ax
je 0x3b51157f
lea eax, [esp + 0x214]
push 0x103
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea ecx, [esp + 0xc]
push 0x103
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0x424]
lea edx, [esp + 0xc]
lea eax, [esp + 0x214]
push edx
mov edx, dword [esp + 0x424]
push eax
push esi
push ebx
dec ecx
push str.Wnd:_08x_PWnd:_08x__PClass:_s__PTitle:_s_
push ecx
push edx
call fcn.3b546627
add esp, 0x1c
pop edi
pop esi
pop ebx
add esp, 0x410
ret
Function at 0x3b513cc0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x3b574236
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push ebp
mov ebp, dword [esp + 0x434]
push esi
mov ecx, ebp
call fcn.3b542560
test eax, eax
jbe 0x3b513ebe
mov esi, dword [esp + 0x440]
xor ebx, ebx
cmp esi, ebx
je 0x3b513ebe
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bx
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.3b54651d
add esp, 4
test eax, eax
jbe 0x3b513d3c
push 0x103
lea eax, [esp + 0x20]
push esi
push eax
call fcn.3b546480
add esp, 0xc
jmp 0x3b513d59
call fcn.3b5173b0
push eax
push str._sPrintData
lea ecx, [esp + 0x24]
push 0x103
push ecx
call fcn.3b546627
add esp, 0x10
mov edx, dword [esp + 0x440]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.3b543570
add esp, 8
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x226]
mov word [esp + 0x224], bx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
stosw word es:[edi], ax
push str._s_s.wmr
lea eax, [esp + 0x230]
push 0x103
push eax
mov dword [esp + 0x448], ebx
call fcn.3b546627
add esp, 0x14
lea ecx, [esp + 0x18]
call fcn.3b529cb0
push ebx
push ebx
push 4
push ebx
push 3
lea ecx, [esp + 0x238]
push 0xc0000000
push ecx
mov byte [esp + 0x450], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea edx, [esp + 0x224]
mov esi, eax
push edx
push esi
push str.CTWMPolicyHelper::SaveImageData__Create___File:__08x___Path:__s_
push str.Policy
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x18
cmp esi, 0xffffffff
je 0x3b513e99
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, ebp
mov edi, eax
call fcn.3b542560
push eax
push edi
push str.CTWMPolicyHelper::SaveImageData__Compare___Size:__d__d_
push str.Policy
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x18
mov ecx, ebp
call fcn.3b542560
cmp edi, eax
je 0x3b513e92
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 0x10]
push ebx
push eax
mov ecx, ebp
mov dword [esp + 0x18], ebx
call fcn.3b542560
push eax
mov ecx, ebp
call fcn.3b542c60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
push ecx
push str.CTWMPolicyHelper::SaveImageData_____Save___Written:__d_
push str.Policy
push 0xffffffffffffffff
push 0x3b5995b4
call fcn.3b5446b0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov byte [esp + 0x434], bl
call fcn.3b529cd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x434], 0xffffffff
call fcn.3b52fec0
pop edi
mov ecx, dword [esp + 0x428]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x428
ret
Function at 0x3b515400
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x3b57431b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.3b5395f0
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi], 0x3b57793c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret