joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e800
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a68
call fcn.004c47b0
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x1a64], eax
lea eax, [ebp - 0x180c]
push 0x51e1a0
push eax
call fcn.0040f7d0
add esp, 0xc
lea eax, [ebp - 0x1a5c]
push eax
lea eax, [ebp - 0x180c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1a60], eax
cmp eax, 0xffffffff
jne 0x43e86d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
nop word [eax + eax]
mov ecx, 0x51e1b0
lea eax, [ebp - 0x1a30]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43e8b6
test dx, dx
je 0x43e8b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43e8b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x43e890
xor eax, eax
jmp 0x43e8bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e9bb
mov eax, 0x51e1b4
lea ecx, [ebp - 0x1a30]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43e8f6
test dx, dx
je 0x43e8f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43e8f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x43e8d0
xor eax, eax
jmp 0x43e8fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e9bb
lea eax, [ebp - 0x1a30]
push eax
push dword [ebp - 0x1a64]
lea eax, [ebp - 0x100c]
push 0x51703c
push eax
call fcn.0040f7d0
lea eax, [ebp - 0x1a30]
push eax
push edi
lea eax, [ebp - 0x80c]
push 0x51703c
push eax
call fcn.0040f7d0
add esp, 0x20
test byte [ebp - 0x1a5c], 0x10
je 0x43e99d
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.004cdf26
add esp, 8
test eax, eax
je 0x43e9bb
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e970
test al, 0x10
jne 0x43e984
push 0
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jne 0x43e9d6
push esi
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x100c]
push eax
call sym.R2ClientInstall.exe_int___cdecl_FileOps::CopyDirectory_wchar_t_const___wchar_t_const___int_
add esp, 0xc
jmp 0x43e9b7
lea eax, [ebp - 0x80c]
test esi, esi
je 0x43e9ab
push 0
jmp 0x43e9ad
push 1
push eax
lea eax, [ebp - 0x100c]
push eax
call ebx
test eax, eax
je 0x43e9d6
lea eax, [ebp - 0x1a5c]
push eax
push dword [ebp - 0x1a60]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43e880
push dword [ebp - 0x1a60]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c360c
mov esp, ebp
pop ebp
ret
Function at 0x43eb40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004c5d00
mov edx, dword [ebp + 8]
lea edi, [ebp - 0x804]
add esp, 0xc
test edx, edx
je 0x43ec5b
movzx eax, word [edx]
test ax, ax
je 0x43ec5b
mov ecx, eax
nop dword [eax + eax]
cmp cx, 0x2f
je 0x43eb9f
movzx eax, cx
cmp cx, 0x5c
jne 0x43eba4
mov eax, 0x5c
add edx, 2
mov word [edi], ax
lea esi, [edi + 2]
mov edi, esi
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x43eb90
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor eax, eax
mov word [esi], ax
mov ebx, esi
movzx eax, word [esi - 2]
sub esi, 2
mov edx, eax
test ax, ax
je 0x43ebef
mov ecx, eax
movzx edx, cx
cmp cx, 0x5c
je 0x43ebef
movzx eax, word [esi - 2]
sub esi, 2
mov ecx, eax
mov edx, eax
test ax, ax
jne 0x43ebd6
test dx, dx
je 0x43ec45
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x804]
push eax
call edi
cmp eax, 0xffffffff
je 0x43ebc6
test al, 0x10
je 0x43ebc6
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp esi, ebx
jae 0x43ec45
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp word [esi], 0
jne 0x43ec3e
push 0
lea eax, [ebp - 0x804]
push eax
call edi
cmp eax, 1
jne 0x43ec5b
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp esi, ebx
jb 0x43ec20
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c360c
mov esp, ebp
pop ebp
ret
Function at 0x43edb0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x808]
push esi
push 0x51e1a0
push eax
call fcn.0040f7d0
add esp, 0xc
lea eax, [ebp - 0xa58]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43eeee
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x51e1b0
lea eax, [ebp - 0xa2c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43ee36
test dx, dx
je 0x43ee32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43ee36
add eax, 4
add ecx, 4
test dx, dx
jne 0x43ee10
xor eax, eax
jmp 0x43ee3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43eebe
mov eax, 0x51e1b4
lea ecx, [ebp - 0xa2c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43ee76
test dx, dx
je 0x43ee72
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43ee76
add ecx, 4
add eax, 4
test dx, dx
jne 0x43ee50
xor eax, eax
jmp 0x43ee7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43eebe
lea eax, [ebp - 0xa2c]
push eax
push esi
lea eax, [ebp - 0x808]
push 0x51703c
push eax
call fcn.0040f7d0
add esp, 0x10
test byte [ebp - 0xa58], 0x10
je 0x43eeb1
lea ecx, [ebp - 0x808]
call fcn.0043edb0
jmp 0x43eebe
lea eax, [ebp - 0x808]
push eax
call ebx
test eax, eax
je 0x43eed6
lea eax, [ebp - 0xa58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43ee02
jmp 0x43eedc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push esi
call sym.R2ClientInstall.exe_int___cdecl_FileOps::DeleteDirectory_wchar_t_const___bool_
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c360c
mov esp, ebp
pop ebp
ret

Function at 0x43efc0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2b8]
push edi
mov edi, dword [ebp + 0xc]
push 0x2b4
push 0
push eax
call fcn.004c5d00
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x400
push 0x2b4
push eax
push 0xc0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x43f022
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
lea eax, [ebp - 0xa4]
push eax
push edi
call fcn.004cd84b
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.004c360c
mov esp, ebp
pop ebp
ret
Function at 0x442490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4424bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e080
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4424dd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4424df
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x442563
jg 0x4424f4
test esi, esi
je 0x442563
test ecx, ecx
jl 0x44253d
jg 0x4424fe
test eax, eax
je 0x44253d
cmp edi, ecx
jg 0x442512
jl 0x442508
cmp esi, eax
jae 0x442512
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004c5e60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x442540
mov edx, dword [ebp + 8]
test edi, edi
jl 0x442563
jg 0x44254a
test esi, esi
je 0x442563
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x442563
push eax
push esi
push 1
push edx
call fcn.004d825c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x442580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4425ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e160
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4425cd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4425cf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x44266e
jg 0x4425ec
test esi, esi
je 0x44266e
test ecx, ecx
jl 0x442639
jg 0x4425f6
test eax, eax
je 0x442639
cmp ebx, ecx
jg 0x44260a
jl 0x442600
cmp esi, eax
jae 0x44260a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004c5e60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x442640
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x44266e
jg 0x44264a
test esi, esi
je 0x44266e
cmp dword [edi + 0x4c], 0
je 0x44266e
mov ecx, edi
call fcn.00443d00
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004d441a
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x442980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4429b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4429ec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4429ec
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x442ad1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x442a14
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x442a47
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004d6ff4
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x442ad1
cmp eax, 1
jle 0x442aa4
cmp eax, 3
jne 0x442ad1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0043fcb0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x442ac1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004d825c
add esp, 0x10
cmp edi, eax
jne 0x442ad1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4429d7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
Function at 0x443d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x443dd1
cmp byte [esi + 0x3d], 0
je 0x443dd1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x443d87
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x443d99
sub eax, 1
je 0x443d9d
sub eax, 2
je 0x443dd1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x443dba
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004d825c
add esp, 0x10
cmp edi, eax
jne 0x443d87
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004c360c
mov esp, ebp
pop ebp
ret
Function at 0x44f700
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x56b114]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push 0x100
push 0
push eax
mov dword [ebp - 0x130], 0
call fcn.004c5d00
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x130]
add esp, 0xc
mov byte [ebp - 0x129], 0
push eax
push 0
call ebx
cmp eax, 0x6f
jne 0x44f8c1
push dword [ebp - 0x130]
call fcn.004cdcdf
add esp, 4
mov edi, eax
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
test eax, eax
jne 0x44f8b8
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x110]
push str._02X:_02X:_02X:_02X:_02X:_02X
push eax
call fcn.00418410
add esp, 0x20
mov dword [ebp - 0x118], 0
xor eax, eax
mov dword [ebp - 0x114], 7
lea ecx, [ebp - 0x128]
mov word [ebp - 0x128], ax
push eax
push 0x516090
call fcn.0040e140
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0
push eax
sub esp, 0x18
lea ecx, [ebp - 0x110]
mov edx, esp
lea ebx, [ecx + 1]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44f833
sub ecx, ebx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, edx
call fcn.0040e340
call sym.R2ClientInstall.exe_public:_static_bool___cdecl_CCharacterConversion::AnsiToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
mov ebx, dword [ebp - 0x114]
add esp, 0x1c
mov edx, dword [ebp - 0x128]
test al, al
je 0x44f888
cmp ebx, 8
lea ecx, [ebp - 0x128]
cmovae ecx, edx
sub esi, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x44f871
mov byte [ebp - 0x129], 1
cmp ebx, 8
jb 0x44f8b8
lea ecx, [ebx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44f8ae
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44f8e3
push ecx
push edx
call fcn.004c3d01
add esp, 8
push edi
call fcn.004cdcc2
add esp, 4
mov al, byte [ebp - 0x129]
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.004c360c
mov esp, ebp
pop ebp
ret
call fcn.004cac9c
int3
Function at 0x44f8f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c5d00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44f994
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.HCILogger
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x44f994
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret

Function at 0x44f9b0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c5d00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44fa44
push esi
push str.HCILogger
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x44fa44
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
Function at 0x450910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x51fc84
push dword [ebp + 8]
xor bl, bl
mov dword [ebp - 8], ecx
mov byte [ebp - 1], bl
call fcn.004d40fe
mov edi, eax
add esp, 8
test edi, edi
je 0x4509e0
push 2
push 0
push edi
call fcn.004d4797
add esp, 0xc
push edi
call fcn.004d4e33
add esp, 4
mov ebx, eax
push 0
push 0
push edi
call fcn.004d4797
lea ecx, [ebx + 1]
add esp, 0xc
cmp ecx, 0x1000
jb 0x45098e
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004c3956
add esp, 4
test eax, eax
je 0x4509f5
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4509a1
test ecx, ecx
je 0x45099f
push ecx
call fcn.004c3956
add esp, 4
mov esi, eax
jmp 0x4509a1
xor esi, esi
push edi
push 1
push ebx
push esi
call fcn.004d441a
add esp, 0x10
cmp eax, 1
jne 0x4509c5
mov ecx, dword [ebp - 8]
push ebx
push esi
mov byte [esi + ebx], 0
call sym.R2ClientInstall.exe_public:_bool___thiscall_CMarkupXml::SetDoc_unsigned_char_const___unsigned_long_int_
mov bl, al
jmp 0x4509c8
mov bl, byte [ebp - 1]
push edi
call fcn.004d418c
add esp, 4
push 1
push esi
call fcn.004c3d01
add esp, 8
test bl, bl
jne 0x4509ea
mov ecx, dword [ebp - 8]
push 0
call sym.R2ClientInstall.exe_public:_bool___thiscall_CMarkupXml::SetDoc_wchar_t_const__
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004cac9c
int3

Function at 0x450a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x51e1bc
push dword [ebp + 8]
mov esi, ecx
mov byte [ebp - 1], 0
call fcn.004d40fe
mov ebx, eax
add esp, 8
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x450ac8
mov eax, dword [esi + 0x14]
add esi, 4
mov dword [ebp - 8], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x450a3e
mov ecx, dword [esi]
push edi
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 8], eax
inc eax
push eax
call fcn.004cdcdf
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 8
jb 0x450a6a
mov esi, dword [esi]
push 0
push 0
push dword [ebp + 8]
push edi
push dword [ebp - 8]
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov byte [edi + eax], 0
jne 0x450a91
mov bl, 1
jmp 0x450aac
push ebx
push 1
push eax
push edi
call fcn.004d825c
movzx ebx, byte [ebp - 1]
mov ecx, 1
add esp, 0x10
cmp eax, ecx
cmove ebx, ecx
push edi
call fcn.004c3d32
push dword [ebp - 0xc]
call fcn.004d418c
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x451a80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov dword [ebp - 8], edx
jne 0x451aa8
mov eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
inc eax
lea eax, [eax + eax*2]
mov esp, ebp
pop ebp
ret
cmp dword [eax + 0x14], 8
jb 0x451ab3
mov eax, dword [eax]
mov dword [ebp + 8], eax
push ebx
push esi
xor ecx, ecx
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ecx
push edi
test edx, edx
jle 0x451b88
xor edi, edi
xor eax, eax
nop dword [eax + eax]
cmp ecx, edx
jge 0x451b36
mov edx, dword [ebp + 8]
inc dword [ebp - 4]
movzx ecx, word [edx + ecx*2]
mov edx, ecx
cmp ecx, 0xd
je 0x451b29
cmp edx, 0xa
je 0x451b29
shl eax, 6
cmp edx, 0x60
jbe 0x451af9
add ecx, 0xffffffb9
or eax, ecx
jmp 0x451b28
cmp edx, 0x40
jbe 0x451b05
add ecx, 0xffffffbf
or eax, ecx
jmp 0x451b28
cmp edx, 0x3d
jne 0x451b0d
inc esi
jmp 0x451b28
cmp edx, 0x2f
jbe 0x451b19
add ecx, 4
or eax, ecx
jmp 0x451b28
jne 0x451b20
or eax, 0x3f
jmp 0x451b28
cmp edx, 0x2b
jne 0x451b28
or eax, 0x3e
inc edi
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp edi, 4
jne 0x451ad0
jmp 0x451b3b
cmp edi, 4
jne 0x451b80
lea edx, [ebx + 3]
mov ecx, edx
sub ecx, esi
cmp ecx, dword [ebp + 0x10]
jg 0x451b91
cmp edx, ebx
je 0x451b71
nop dword [eax + eax]
dec edx
test esi, esi
je 0x451b60
mov ecx, ebx
sub ecx, esi
add ecx, 3
cmp edx, ecx
jge 0x451b6a
mov edi, dword [ebp + 0xc]
movzx ecx, al
mov word [edi + edx*2], cx
shr eax, 8
cmp edx, ebx
jne 0x451b50
mov ecx, dword [ebp - 4]
mov eax, 3
mov edx, dword [ebp - 8]
sub eax, esi
add ebx, eax
cmp ecx, edx
jl 0x451ac7
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x455a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4230
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56b114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00455fd0
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.0040dc80
xorps xmm0, xmm0
mov eax, esi
movq qword [esi + 0x28], xmm0
mov dword [esi + 0x30], 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 0xc