joyce8/EMBER2024-capa huggingface dataset:
Function at 0x110510f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1107f428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [0x11081f54], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [0x11081f50], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
push 0x104
mov dword [0x11081f4c], eax
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.110535cd
mov ecx, dword [0x11080b84]
lea eax, [ebp - 0x20c]
push eax
call fcn.11054491
mov ecx, eax
call fcn.11021042
test eax, eax
je 0x110512a4
push ebx
push esi
mov ebx, 0x1105f090
mov esi, 0x1107f40c
push ebx
mov ecx, esi
call fcn.110466f7
test al, al
jne 0x110512a2
push ebx
lea ecx, [ebp - 0x224]
call fcn.110064d5
push ebx
lea ecx, [ebp - 0x23c]
call fcn.110064d5
lea eax, [ebp - 0x23c]
push eax
call fcn.110492fc
mov dword [esp], str.NS:N
push str.IDS_HUAWEI_PRIVACYPOLICY
call fcn.110494f6
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.110466f7
test al, al
je 0x110511eb
mov esi, str.https:__consumer.huawei.com_minisite_legal_privacy_statement.htm_countryUSlanguageen_US
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x224]
call fcn.11007e21
lea eax, [ebp - 0x224]
push eax
call fcn.11049463
jmp 0x1105122e
push 0x1106c00c
push str.IDS_CONTACT_US
call fcn.110494f6
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.110466f7
test al, al
je 0x1105122f
mov esi, str.https:__consumer.huawei.com_us_legal_privacy_questions_
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x224]
call fcn.11007e21
lea eax, [ebp - 0x224]
push eax
call fcn.110493f0
pop ecx
push ebx
lea ecx, [ebp - 0x224]
call fcn.110466f7
test al, al
jne 0x1105128c
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmovae eax, dword [ebp - 0x224]
push 5
push edi
push edi
push eax
push str.open
push edi
call esi
cmp eax, 0x20
jg 0x1105128c
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
push 5
cmovae eax, dword [ebp - 0x224]
push edi
push eax
push str.iexplore.exe
push edi
push edi
call esi
lea ecx, [ebp - 0x23c]
call fcn.11007dbe
lea ecx, [ebp - 0x224]
call fcn.11007dbe
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.110567db
leave
ret
Function at 0x11051bc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1107f428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [0x11081f54], eax
mov eax, dword [ebp + 0x14]
mov dword [0x11081f50], eax
mov eax, dword [ebp + 0x10]
push 0x110
mov dword [0x11081f4c], eax
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x11051c31
cmp dword [ebp - 0x110], 1
jbe 0x11051c33
cmp dword [ebp - 0x114], 5
jae 0x11051c3a
mov eax, 0x1105ea78
jmp 0x11051c3f
mov eax, 0x11064054
push eax
call fcn.1105369f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.110567db
leave
ret
Function at 0xca0640
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x51a000
lea edi, [esi - 0x849000]
push edi
jmp 0xca065a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xca0661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xca0650
mov eax, 1
add ebx, ebx
jne 0xca0673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xca0684
jne 0xca06a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xca06a3
dec eax
add ebx, ebx
jne 0xca0690
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xca0668
add ebx, ebx
jne 0xca069f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xca06f5
xor ecx, ecx
sub eax, 3
jb 0xca06bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xca072a
sar eax, 1
mov ebp, eax
jmp 0xca06c6
add ebx, ebx
jne 0xca06c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xca0694
inc ecx
add ebx, ebx
jne 0xca06d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xca0694
add ebx, ebx
jne 0xca06e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xca06d6
jne 0xca06f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xca06d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xca0714
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xca0706
jmp 0xca0656
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xca0714
add edi, ecx
jmp 0xca0656
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xca0732
cmp byte [edi], 0x11
jne 0xca0732
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xca0737
lea edi, [esi + 0x899000]
mov eax, dword [edi]
or eax, eax
je 0xca07af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1068704]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1068880]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xca0764
mov ecx, edi
jns 0xca0793
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1068884]
or eax, eax
je 0xca07a9
mov dword [ebx], eax
add ebx, 4
jmp 0xca0781
call dword [esi + 0x1068894]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xca07e0
cmp al, 0xef
ja 0xca07d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xca07b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xca07c2
mov ebp, dword [esi + 0x1068888]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xca0814
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x489bf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x489c7f
xor eax, eax
cmp dword [edi + 0x60], 8
mov word [ebp - 8], ax
mov dword [ebp - 4], eax
lea eax, [edi + 0x4c]
jb 0x489c1b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [ebp - 4]
push eax
call fcn.006580f4
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x489c7f
push eax
push 2
lea eax, [ebp - 8]
push 1
push eax
call fcn.006585c9
push dword [ebp - 4]
call fcn.006581d4
mov cl, byte [ebp - 8]
add esp, 0x14
mov al, byte [ebp - 7]
cmp cl, 0xff
jne 0x489c5c
cmp al, 0xfe
je 0x489c7f
cmp al, 0xff
jne 0x489c65
cmp cl, 0xfe
je 0x489c7f
mov eax, dword [ebx]
test eax, eax
je 0x489c78
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.0048b1f0
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x489c8c
mov eax, dword [esi]
jmp 0x489c8e
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x489d2c
cmp dword [esi + 0x14], 8
jb 0x489cb6
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x489ce1
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
push 0
jne 0x489d11
mov ecx, 0xfeff
mov word [ebp - 4], cx
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 8]
mov word [ebp - 4], 0xbbef
push ecx
push 3
lea ecx, [ebp - 4]
mov byte [ebp - 2], 0xbf
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48a2e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48a2f0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x7746ac
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48a350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x48a360
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x7746b4
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48fa40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b9880
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7ef784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.006391c8
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0063b084
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x492d70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
lea esi, [eax + 0x4c]
mov dword [ebp - 0xc], eax
xor bl, bl
cmp dword [esi + 0x14], 8
push edi
jb 0x492d8d
mov eax, dword [esi]
jmp 0x492d8f
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x492dba
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x492dd9
mov eax, dword [ebp - 0x14]
mov bl, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x492de5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x492e5b
cmp dword [ebp - 4], 0
jl 0x492e5b
jg 0x492e01
cmp dword [ebp - 8], 0xa00000
jb 0x492e5b
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x68]
lea edi, [ebx + 0x68]
test eax, eax
je 0x492e15
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x492e1d
mov esi, dword [esi]
push 0
push 0x80
push 5
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
test eax, eax
je 0x492e49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov eax, dword [eax]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x493930
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x493993
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x493993
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x493962
pop edi
shr eax, 4
pop esi
and al, 1
pop ebx
pop ebp
ret 4
push esi
call fcn.0066eab5
mov edi, eax
push 0x5c
push edi
call fcn.006b82a2
add esp, 0xc
test eax, eax
je 0x4939b1
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.00493930
push edi
test al, al
jne 0x49399c
call fcn.00662a80
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
call fcn.00662a80
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x493993
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
Function at 0x497760
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b9c49
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x7ef784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x7f52a0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x7f52a0
mov dword [esi + 0x30], 0x7f52a0
mov dword [esi + 0x34], 0x7f52a0
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x497801
sub edx, ebx
push edx
push edi
call fcn.004974d0
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x497820
sub edx, ecx
lea ecx, [esi + 0x30]
push edx
push edi
call fcn.004974d0
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x497840
sub edx, ecx
lea ecx, [esi + 0x34]
push edx
push edi
call fcn.004974d0
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 0xc

Function at 0x497870
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b9c83
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x7ef784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x7f52a0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x7f52a0
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x7144c0
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004974d0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x498e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b9d98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x7ef784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x498e81
push esi
push esi
push esi
push 2
call fcn.0049c700
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004980d0
push 2
push 0
push esi
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.006589db
push esi
call fcn.00659082
push 0
push 0
push esi
mov ebx, eax
call fcn.006589db
add esp, 0x1c
test ebx, ebx
jg 0x498edc
push 0
push 0
push 0
push 0xd
mov ecx, edi
call fcn.0049c700
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x14], 0x7f52a0
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004975b0
lea eax, [ebx + 1]
push eax
call fcn.006391a9
push esi
push 1
push ebx
push eax
mov dword [ebp - 0x18], eax
mov byte [eax], 0
call fcn.006585c9
add esp, 0x14
cmp eax, 1
je 0x498f35
push dword [ebp - 0x18]
call fcn.006391b2
add esp, 4
mov ecx, edi
push 0
push 0
push 0
push 2
call fcn.0049c700
xor bl, bl
jmp 0x498fdf
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov esi, eax
mov byte [eax + ebx], 0
mov al, byte [eax]
test al, al
je 0x498f9d
cmp al, 0xa
jne 0x498f5e
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00497480
inc esi
mov ecx, esi
jmp 0x498f97
cmp al, 0xd
jne 0x498f96
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x498f74
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00497480
push 1
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0xa
push eax
lea ecx, [ebp - 0x14]
call fcn.00497480
xor eax, eax
cmp byte [esi + 1], 0xa
sete al
inc eax
add esi, eax
mov ecx, esi
jmp 0x498f97
inc esi
mov al, byte [esi]
test al, al
jne 0x498f46
sub esi, ecx
je 0x498fab
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.00497480
push dword [ebp - 0x18]
call fcn.006391b2
mov esi, dword [edi]
add esp, 4
mov eax, dword [ebp - 0x14]
add eax, 8
push dword [ebp + 0xc]
mov esi, dword [esi + 0xc]
mov ecx, esi
push 0
push eax
call dword [0x70a5a4]
mov ecx, edi
call esi
cmp byte [edi + 0x2c], 0
je 0x498fdd
xor bl, bl
jmp 0x498fdf
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x7f52a0
je 0x498ff3
push ecx
call fcn.006391b2
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49fac0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ba6f6
mov eax, dword fs:[0]
push eax
mov eax, 0x10040
call fcn.006397a0
mov eax, dword [0x7ef784]
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 edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
nop word [eax + eax]
push 0
lea eax, [ebp - 0x10048]
mov dword [ebp - 0x10048], 0
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x49fc1e
cmp dword [ebp - 0x10048], 0
jne 0x49fb4f
push 0x64
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x96
jl 0x49fb00
cmp dword [ebp - 0x10048], 0
je 0x49fc1e
push 0
lea eax, [ebp - 0x1004c]
mov dword [ebp - 0x1004c], 0
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49fc1e
mov eax, dword [ebp - 0x1004c]
and eax, 0xfffffffe
cmp eax, 0x10000
jae 0x49fc3c
xor ecx, ecx
mov word [ebp + eax - 0x10010], cx
lea eax, [ebp - 0x10010]
push eax
lea ecx, [ebp - 0x10028]
call fcn.0049d640
cmp dword [ebp - 0x10014], 8
lea ecx, [ebp - 0x10028]
mov eax, dword [ebp - 0x10018]
lea edx, [ebp - 0x10028]
cmovae ecx, dword [ebp - 0x10028]
cmovae edx, dword [ebp - 0x10028]
mov dword [ebp - 4], 0
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x10041]
push ecx
push eax
push edx
lea ecx, [ebp - 0x10040]
call fcn.0049cab0
lea eax, [ebp - 0x10040]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0049d8b0
lea ecx, [ebp - 0x10040]
call fcn.004879e0
lea ecx, [ebp - 0x10028]
call fcn.004878f0
mov al, 1
jmp 0x49fc20
xor al, al
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.006391b7
mov esp, ebp
pop ebp
ret
call fcn.006396ba
int3
Function at 0x49fc50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ba728
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x7ef784]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x20], 0x10
lea edx, [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
lea edi, [ebp + 0xc]
cmovae edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
add ebx, edx
mov dword [ebp - 4], 0
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x18], 0
cmovae edi, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x14], 7
push eax
call fcn.004907a0
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push ebx
push edi
call fcn.0049cae0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovae edx, dword [ebp - 0x28]
mov eax, edx
lea esi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49fcf0
sub eax, esi
lea ecx, [ebp - 0x30]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
push edx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x49fd3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IPC_Server_:_Failed_to_send_data.__d
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7f52b8]
call fcn.00562650
add esp, 0x18
xor bl, bl
jmp 0x49fd3f
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x49fd75
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49fd6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49fdd7
push edx
push ecx
call fcn.006391f8
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x49fdb9
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49fdaf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49fdd7
push edx
push ecx
call fcn.006391f8
add esp, 8
mov al, bl
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.006391b7
mov esp, ebp
pop ebp
ret
call fcn.00657f14
int3