joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cc70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
push esi
push edi
mov esi, eax
mov byte [esp + 0x10], 0
jl 0x43cca9
mov edi, dword [esi + 4]
test edi, edi
jne 0x43cc8d
xor eax, eax
jmp 0x43cca5
mov ecx, dword [esi + 8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jl 0x43ccb1
pop edi
pop esi
xor al, al
pop ebp
ret 0xc
cmp dword [esp + 0x14], 0
je 0x43cca9
test edi, edi
je 0x43ccd8
mov ecx, dword [esi + 8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x43ccdd
call fcn.004f9d7d
mov eax, dword [esi + 4]
mov edi, ebp
imul edi, edi, 0x70
test eax, eax
push ebx
mov ebx, dword [edi + eax + 0x68]
je 0x43cd0a
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x43cd0f
call fcn.004f9d7d
mov eax, dword [esi + 4]
mov edi, dword [eax + edi + 0x6c]
cmp dword [esp + 0x1c], edi
je 0x43cd25
pop ebx
pop edi
pop esi
xor al, al
pop ebp
ret 0xc
cmp dword [esi + 0x28], 8
jb 0x43cd30
mov esi, dword [esi + 0x14]
jmp 0x43cd33
add esi, 0x14
push 0
push 0x80
push 3
push 0
push 1
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43cd96
push 0
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43cd8f
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
push edx
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43cd8f
cmp edi, dword [esp + 0x1c]
jne 0x43cd8f
mov byte [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43cdb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
mov dword [esp + 0x14], esi
jne 0x43cdf2
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43cdf7
sub eax, edx
sar eax, 1
push eax
push edi
add esi, 0x10
call fcn.00405250
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43cddb
push ebx
lea eax, [esp + 0x14]
push eax
push 0x200
lea ecx, [esp + 0x94]
push ecx
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43cf51
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x10], 0x200
jne 0x43cf51
push 0x64
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x20]
push 0x65
push eax
call fcn.004fb3bd
add esp, 0x10
mov esi, 0xb
lea ecx, [esp + 0x104]
xor edx, edx
lea ecx, [ecx]
mov al, byte [ecx]
cmp al, 0x30
jl 0x43ceb1
cmp al, 0x37
jg 0x43ceb1
movsx eax, al
lea edx, [eax + edx*8 - 0x30]
add ecx, 1
sub esi, 1
jne 0x43cea0
test edx, edx
mov dword [esp + 0x84], edx
mov byte [esp + 0x7c], 0
je 0x43cf1b
push 1
push esi
push esi
push edi
call ebx
cmp eax, 0xffffffff
je 0x43cf51
mov ecx, dword [esp + 0x84]
push 1
push esi
push ecx
push edi
mov dword [esp + 0x90], eax
call ebx
cmp eax, 0xffffffff
je 0x43cf51
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
call fcn.0043f0c0
mov ecx, dword [esp + 0x84]
and ecx, 0x1ff
mov eax, 0x200
sub eax, ecx
je 0x43cf1b
push 1
push 0
push eax
push edi
call ebx
xor eax, eax
push eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
push 0x200
lea eax, [esp + 0x94]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ce68
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x43eb80
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x23
push 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x43ecc0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Samsung
lea edx, [esp + 0x20]
push edx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
je 0x43ec00
lea ecx, [esp + 0x1c]
push ecx
call ebp
test eax, eax
jne 0x43ec2b
push 0
lea edx, [esp + 0x20]
push edx
call ebx
test eax, eax
jne 0x43ec2b
lea eax, [esp + 0x1c]
push eax
push str.Fail_to_create_directory_:___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
xor eax, eax
jmp 0x43ecc4
push str.Printer
lea ecx, [esp + 0x20]
push ecx
call esi
lea edx, [esp + 0x1c]
push edx
call edi
test eax, eax
je 0x43ec4d
lea eax, [esp + 0x1c]
push eax
call ebp
test eax, eax
jne 0x43ec75
push 0
lea ecx, [esp + 0x20]
push ecx
call ebx
test eax, eax
jne 0x43ec75
lea edx, [esp + 0x1c]
push edx
push str.Fail_to_create_directory_:___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
xor eax, eax
jmp 0x43ecc4
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ec80
sub eax, edx
sar eax, 1
je 0x43ecc0
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x400
push esi
call fcn.004fa94e
push esi
push str.The_application_data_directory_:___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x14
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fa103
add esp, 0x218
ret 4
Function at 0x43ed90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ae90
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43edd0
sub eax, edx
sar eax, 1
jne 0x43ee07
push str.Fail_____Invalid_Parameter_in_CDellLicenseDlg::OpenUrl____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0
push esi
push str.IEXPLORE.EXE
push str.open
push 0
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
call edi
cmp eax, 0x20
jbe 0x43ee3c
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
push str.Fail___Open_IEXPLORE_in_CDellLicenseDlg::OpenUrl____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push 1
push 0
push 0
push esi
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x43ee25
push esi
push str.Fail___Open___s__in_CDellLicenseDlg::OpenUrl____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441550
Capabilities:
Create pipe

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x529cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, edx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x4415b8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4415a7
sub eax, edx
sar eax, 1
jne 0x4415bd
mov ebx, str.INSTALL
push 0x200
push edi
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str..pipeCI3_Flow_Pipe_d
push 0x54adbc
lea edx, [ebp]
call fcn.00418d80
add esp, 0xc
push 0x1000
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x441629
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
push str.Create_Flow_Pipe
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov eax, esi
jmp 0x4416c5
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x4b6dc], eax
mov dword [esi + 0x3fa14], eax
lea edi, [esi + 0x4b4c0]
lea eax, [esi + 0x47a80]
mov dword [edi], eax
lea ecx, [esi + 0x5ef4]
mov dword [esi + 0x4b4c8], ecx
mov edx, 2
call fcn.0047f9f0
mov dword [esi + 0x4b4c4], eax
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x4b6cc], ecx
push 0xff
push ebx
push pe_nt_image_headers32
lea edx, [esi + 0x4b4cc]
push edx
call fcn.004fa71b
add esp, 0x10
push 0
push 0
push 0
push 0
push edi
push 0x441710
call fcn.004e5814
mov dword [esi + 0x4b4bc], eax
test eax, eax
jne 0x4416bb
push str.Init_Flow_Thread_fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x204
mov esp, ebp
pop ebp
ret
Function at 0x4424f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x522218
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
push 0x535a4c
lea ecx, [ebp - 0x18]
call fcn.00405c00
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call fcn.004290f0
mov esi, dword [eax]
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.InstallingComponents
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4426ee
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push ebx
push ebx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4425a9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406150
xor al, al
jmp 0x442703
xor edi, edi
mov dword [ebp - 0x28], edi
cmp edi, dword [ebp - 0x24]
jge 0x4426ee
push 0x200
push ebx
lea eax, [ebp]
push eax
call fcn.004fd670
push 0x200
push ebx
lea ecx, [ebp + 0x200]
push ecx
call fcn.004fd670
add esp, 0x18
mov dword [ebp - 0x1c], pe_nt_image_headers32
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp]
push eax
push edi
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4426e6
push str.InstallOrder
lea edx, [ebp]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4426e6
push 0x535a4c
lea ecx, [ebp - 0x18]
call fcn.00405ec0
lea eax, [ebp]
push eax
push str.InstallingComponents
push 0x535a74
lea ecx, [ebp - 0x18]
push ecx
call fcn.004081a0
mov dword [ebp - 0x1c], ebx
push 4
push 4
lea edx, [ebp - 0x1c]
push edx
push str.InstallStatus
push esi
mov edx, dword [ebp - 0x18]
call fcn.004920e0
add esp, 0x24
test eax, eax
jne 0x4426e6
push 1
push 0x200
lea eax, [ebp + 0x200]
push eax
push str.Install_Only
push esi
mov edx, dword [ebp - 0x18]
call fcn.004920e0
add esp, 0x14
test eax, eax
je 0x4426b5
push 0x200
push ebx
lea ecx, [ebp + 0x200]
push ecx
call fcn.004fd670
push 0xff
push str.FALSE
push pe_nt_image_headers32
lea edx, [ebp + 0x200]
push edx
call fcn.004fa71b
add esp, 0x1c
cmp dword [ebp - 0x1c], 1
jne 0x4426e6
push str.FALSE
lea eax, [ebp + 0x200]
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x4426e6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406150
mov al, 1
jmp 0x442703
add edi, 1
jmp 0x4425ab
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406150
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x404
mov esp, ebp
pop ebp
ret
Function at 0x445fa0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a0
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x29c], eax
push ebx
push esi
lea eax, [esp + 8]
push eax
push 0x101
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44602b
push 0x104
lea ecx, [esp + 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x446025
lea edx, [esp + 0x198]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x446025
mov eax, dword [eax + 0xc]
cmp dword [eax], esi
je 0x446025
mov eax, dword [eax]
mov eax, dword [eax]
xor ecx, ecx
mov ch, al
mov edx, eax
shr edx, 0x10
xor ebx, ebx
mov bh, dl
mov cl, ah
shr eax, 0x18
movzx edx, bx
shl ecx, 0x10
or ecx, edx
or ecx, eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x2a4]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x44c200
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52207b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5a4aa8]
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 dword [ebp - 0x10], esp
mov esi, ecx
push 0x535a4c
lea ecx, [ebp - 0x228]
call fcn.00405c00
xor edi, edi
mov dword [ebp - 4], edi
push 0x208
push edi
lea eax, [ebp - 0x220]
push eax
call fcn.004fd670
add esp, 0xc
mov byte [ebp - 4], 1
cmp esi, edi
je 0x44c2dc
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x44c270
sub eax, edx
sar eax, 1
je 0x44c2dc
push 0x103
push esi
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call fcn.004fa71b
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x44c302
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x234]
shrd eax, ecx, 0x14
mov dword [ebp - 0x224], eax
shr ecx, 0x14
jmp 0x44c308
lea ecx, [ebp - 0x220]
call fcn.0044c380
test eax, eax
je 0x44c29b
mov dword [ebp - 0x22c], edi
push 0x5815cc
lea edx, [ebp - 0x22c]
push edx
call fcn.004fd5a3
mov dword [ebp - 0x224], edi
mov dword [ebp - 4], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.00406150
mov eax, dword [ebp - 0x224]
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.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x44c380
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x522048
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
push 0x535a4c
lea ecx, [ebp - 0x1c]
call fcn.00405c00
mov dword [ebp - 4], edi
push 0x535a4c
lea ecx, [ebp - 0x18]
call fcn.00405c00
mov byte [ebp - 4], 1
push 0x208
push edi
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
mov ebx, 2
mov byte [ebp - 4], bl
cmp esi, edi
je 0x44c50b
mov eax, esi
lea edx, [eax + 2]
jmp 0x44c410
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x44c410
sub eax, edx
sar eax, 1
je 0x44c50b
push 0x104
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x44c44e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x5814b0
lea edx, [ebp - 0x28]
push edx
call fcn.004fd5a3
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x44c454
sub eax, edx
sar eax, 1
jne 0x44c479
mov dword [ebp - 0x24], 0xc
push 0x581634
lea eax, [ebp - 0x24]
push eax
call fcn.004fd5a3
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00405ec0
push ebx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x18]
call fcn.00416140
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.004199f0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00406150
push 0x103
mov eax, dword [ebp - 0x1c]
push eax
push 0x104
push esi
call fcn.004fa71b
add esp, 0x10
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00406150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00406150
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x2c], 0x57
push 0x581634
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004fd5a3
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 1
mov eax, 0x44c533
ret
Function at 0x44c560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519c20
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x44c61e
lea eax, [ebp - 0x18]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x44c5d5
mov dword [ebp - 0x20], eax
push 0x5814b0
lea ecx, [ebp - 0x20]
push ecx
call fcn.004fd5a3
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea edx, [ebp - 0x1c]
push edx
push esi
lea eax, [ebp - 0x24]
push eax
push edi
push str.Version
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], 0x57
push 0x5814b0
lea eax, [ebp - 0x28]
push eax
call fcn.004fd5a3
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x44c646
ret
Function at 0x450f00
Capabilities:
Resume thread

Disassembly:
push ecx
mov eax, dword [esi + 0xc]
push ebx
push edi
xor bl, bl
xor edi, edi
test eax, eax
je 0x450f11
mov edi, dword [eax + 0x2c]
lea edx, [esi + 4]
mov ecx, str.SCP_SCRIPT
call fcn.00452250
lea edx, [esi + 8]
mov ecx, str.SCP_SETUP
call fcn.00452250
test edi, edi
je 0x450f7b
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x450f6a
cmp dword [esp + 8], 0x103
jne 0x450f6a
push edi
push str.CSCPManager::DownloadFiles:__Download_already_in_progress_in_thread__p._New_download_request_is_rejected____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
pop edi
mov al, bl
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
mov dword [esi + 0xc], 0
push 0
push 4
push 0
push 0
push esi
push 0x450ff0
call fcn.004e5814
test eax, eax
mov dword [esi + 0xc], eax
je 0x450fca
mov bl, 1
mov byte [esi + 0x14], bl
mov dword [eax + 0x28], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0xc]
push eax
push str.CSCPManager::DownloadFiles:__Downloading_SCP_files_has_begun_in_thread__p____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
pop edi
mov al, bl
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSCPManager::DownloadFiles:_Thread_Execution_Failed_with_error____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
pop edi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x451250
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x3054]
mov eax, 0x3054
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51fb1a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x3050], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov edi, edx
mov dword [ebp - 0x24], edi
xor ebx, ebx
mov byte [ebp - 0x11], bl
lea eax, [ebp]
push eax
call fcn.00487b00
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x451437
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4512c0
sub eax, edx
sar eax, 1
je 0x451437
cmp edi, ebx
je 0x451437
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4512e2
sub eax, edx
sar eax, 1
je 0x451437
push 0x1000
push ebx
lea ecx, [ebp + 0x2050]
push ecx
call fcn.004fd670
add esp, 0xc
call fcn.00429150
lea esi, [ebp - 0x1c]
mov edi, eax
call fcn.004bddd0
jmp 0x451320
call fcn.00429150
lea esi, [ebp - 0x34]
mov edi, eax
call fcn.00419830
mov esi, eax
lea edi, [ebp - 0x1c]
call fcn.004166c0
test al, al
je 0x45138a
mov edx, dword [ebp - 0x20]
push edx
mov esi, edi
call fcn.00416670
add eax, 0x402
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x451380
call fcn.00416670
add eax, 0x2002
push 0x7ff
push eax
push 0x800
lea eax, [ebp + 0x2050]
push eax
call fcn.004fa71b
add esp, 0x10
jmp 0x45138e
lea edi, [ebp - 0x2c]
call fcn.00416690
jmp 0x451320
cmp bl, bl
je 0x4513e6
mov esi, dword [ebp - 0x24]
push esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x4513aa
push 1
mov ecx, esi
call fcn.0049c660
add esp, 4
push 0x1e
mov edx, esi
lea ecx, [ebp + 0x2050]
call fcn.004becd0
test eax, eax
jne 0x4513ca
push esi
call edi
test eax, eax
je 0x4513ca
mov byte [ebp - 0x11], 1
jmp 0x4513fc
push esi
lea ecx, [ebp + 0x2050]
push ecx
push str.CSCPManager::DownloadWebItemType:Failed:_Could_not_download_configuration_file:_from_url__s_to_path__s
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
jmp 0x4513fc
mov edx, dword [ebp - 0x20]
push edx
push str.CSCPManager::DownloadWebItemType:Failed:_Could_not_find_webitemtype__s
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
push ecx
call fcn.00487b80
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3050]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x3054
mov esp, ebp
pop ebp
ret
push str.CSCPManager::DownloadWebItemType:Failed:_WebItemType_Not_Valid
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp]
push eax
call fcn.00487b80
xor al, al
jmp 0x451412