joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d64a
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x190
lea ebp, [esp - 4]
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp + 0x190], eax
push 0x10
mov eax, 0x50c77d
call fcn.004d0cf3
mov dword [ebp - 0x1c], edx
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x48d69e
xor al, al
jmp 0x48d7b0
mov edi, dword [esi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x48d6b1
lea edi, [edi + eax*2]
add edi, 0xffffff62
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc8
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x48d6df
cmp dword [ebp - 0x18], 0xc8
jbe 0x48d7a0
call fcn.00406cde
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x48d741
push 0
mov ecx, esi
call fcn.0046e610
push 0x22
pop ecx
cmp ax, cx
je 0x48d741
push 0
push 0x20
mov ecx, esi
call fcn.004506c2
cmp eax, 0xffffffff
je 0x48d741
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0046e5b0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004072c9
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0046e5b0
jmp 0x48d74a
push esi
lea ecx, [ebp - 0x10]
call fcn.0044369a
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x48d76c
push 0
mov ecx, ebx
call fcn.0046e610
push 0x20
pop ecx
cmp ax, cx
je 0x48d76c
push ecx
lea ecx, [ebp - 0x10]
call fcn.0046e5b0
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004072c9
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.004d014c
lea esp, [ebp + 0x194]
pop ebp
ret
Function at 0x48d890
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0xf003f
xor edi, edi
mov esi, ecx
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x48d8be
xor al, al
jmp 0x48d916
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
jle 0x48d8d1
lea esi, [esi + eax*2]
add esi, 0xffffff62
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x48d8fa
cmp edi, 0xea
jne 0x48d906
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48defc
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x50c833
call fcn.004d0cf3
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x48df1d
xor eax, eax
jmp 0x48dfd2
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push 2
pop esi
cmp edi, 0xffffffff
je 0x48dfc5
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
mov ebx, dword [ebp + 0x10]
add ecx, esi
and dword [ebp - 0x20], 0
sub ebx, esi
push 0
push eax
push ecx
push edi
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x48dfc5
mov eax, ebx
lea ecx, [ebp + 8]
shr eax, 1
push eax
push 0x78
call fcn.004436e5
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x48df8e
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406931
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48dfb6
cmp dword [ebp - 0x14], 0
je 0x48dfb6
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
call fcn.0048da67
movzx esi, al
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
test edi, edi
je 0x48dfd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.004d0cbc
ret 0xc
Function at 0x48f607
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0xa8
lea ebp, [esp - 4]
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push 8
mov eax, 0x50cc5f
call fcn.004d0cf3
mov esi, edx
mov edi, ecx
mov dword [ebp + 0x9c], str.http:__www.google.com
mov dword [ebp + 0xa0], 0x534480
mov dword [ebp + 0xa4], str.http:__www.example.com
call fcn.00406cde
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push str.tin9999.tmp
call fcn.004093f6
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00470b60
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push esi
push edi
lea ecx, [ebp]
call fcn.004976c1
xor ebx, ebx
mov dword [ebp + 0x78], ebx
mov edi, ebx
push dword [ebp + edi*4 + 0x9c]
lea ecx, [ebp - 0x10]
call fcn.004093f6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00497c34
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406dd3
test esi, esi
je 0x48f6d3
inc edi
cmp edi, 3
jl 0x48f697
jmp 0x48f6d5
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp]
call fcn.0047cc2a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00406dd3
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 + 0xa8]
xor ecx, ebp
call fcn.004d014c
lea esp, [ebp + 0xac]
pop ebp
ret

Function at 0x48fa18
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x50cd0f
call fcn.004d0cf3
mov esi, ecx
call fcn.00406cde
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ecx, esi
push eax
push edi
call fcn.0048fbb5
test eax, eax
jne 0x48fa50
push 3
pop esi
jmp 0x48fa7b
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push 1
push esi
push dword [edi]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406dd3
mov eax, esi
call fcn.004d0cbc
ret 8
Function at 0x48fbb5
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 4]
push eax
push dword [ecx + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x48fc72
push ebx
push ebp
push esi
mov esi, 0x104
push edi
push esi
mov dword [esp + 0x14], esi
call fcn.004d0681
mov ebp, dword [esp + 0x2c]
mov ebx, eax
pop ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebx
push eax
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x24], esi
push eax
xor edi, edi
push edi
push dword [ebp]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x48fc69
lea ecx, [esp + 0x1c]
call fcn.00476750
mov esi, dword [esp + 0x10]
push esi
call fcn.004d0681
pop ecx
mov ebx, eax
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebx
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push edi
push dword [ebp]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x2c]
push ebx
call fcn.00472b90
lea ecx, [esp + 0x1c]
call fcn.00476750
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
jmp 0x48fc75
test eax, eax
je 0x48fc4e
xor edi, edi
inc edi
jmp 0x48fc58
xor eax, eax
inc eax
add esp, 0x14
ret 8
Function at 0x49087c
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push 0x430
mov eax, 0x50cef2
call fcn.004d0d27
mov dword [ebp - 0x438], ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x434], eax
test eax, eax
je 0x490a3e
lea eax, [ebp - 0x21c]
xor edi, edi
push eax
push edi
push 0x53206c
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x490a3e
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x428]
call fcn.004093f6
push str..url
lea ecx, [ebp - 0x428]
call fcn.004072a1
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x490a21
call fcn.00406cde
push eax
lea ecx, [ebp - 0x42c]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
push dword [esi]
call fcn.00451be5
push dword [ebp - 0x430]
lea eax, [ebp - 0x42c]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.00451ee1
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x434]
add esp, 0xc
push edi
push eax
push dword [esi - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test ebx, ebx
je 0x490991
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test edi, edi
je 0x4909ae
push 5
push 0
push 0
push dword [ebp - 0x428]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x5c
push dword [ebp - 0x428]
call fcn.004d3931
pop ecx
pop ecx
test eax, eax
jne 0x4909c6
or eax, 0xffffffff
jmp 0x4909ce
sub eax, dword [ebp - 0x428]
sar eax, 1
mov edi, dword [ebp - 0x438]
lea ecx, [ebp - 0x428]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.004450c5
lea edx, [edi + 0x18]
mov ecx, eax
call fcn.00470d60
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x43c]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x430]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
test ebx, ebx
je 0x490a2c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
call fcn.004d0cd1
ret 4
Function at 0x491908
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x50d089
call fcn.004d0cf3
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ebx, [esi + 4]
mov ecx, dword [ebx]
call fcn.0046c390
push ecx
mov ecx, ebx
call fcn.00421253
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [eax]
push dword [ebx]
call edi
call fcn.00406cde
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push 0xdc
call fcn.00409267
push 0x40a
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [ebp - 0x10]
push esi
push eax
call edi
mov edi, dword [ebp - 0x14]
push dword [ebx]
lea ecx, [edi + 0x40]
call fcn.0049b3fa
lea eax, [ebp - 0x18]
xor ecx, ecx
push eax
push ecx
lea eax, [edi + 0x30]
push eax
push 0x4919ab
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x38], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
xor eax, eax
call fcn.004d0cbc
ret 0x10

Function at 0x4927cc
Capabilities:
Hide graphical window

Disassembly:
push edi
test ecx, ecx
je 0x4927d6
lea edi, [ecx - 0x68]
jmp 0x4927d8
xor edi, edi
cmp byte [ecx + 0x1c], 0
je 0x49280e
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x4927fe
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x492815
cmp dword [esp + 0xc], 0
jne 0x49280e
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x49282c
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x68]
push eax
call fcn.00492998
xor eax, eax
pop edi
ret 0x10

Function at 0x492f2f
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov dword [esi], fcn.00492f8b
je 0x492f86
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 8], 0xffffffff
je 0x492f7d
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x492f7d
cmp dword [ebp - 4], 0x103
jne 0x492f7d
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x492f8b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push esi
push 0x493056
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x492fc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x492fe4
cmp byte [ebp + 0x10], 0
je 0x492fe2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp + 0x10]
jmp 0x492fe4
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x494294
Capabilities:
Hide graphical window

Disassembly:
push edi
test ecx, ecx
je 0x49429e
lea edi, [ecx - 0x20]
jmp 0x4942a0
xor edi, edi
cmp byte [ecx + 0x1c], 0
je 0x4942d6
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x4942c6
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4942dd
cmp dword [esp + 0xc], 0
jne 0x4942d6
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x4942fb
mov edx, dword [esp + 0x10]
lea ecx, [edi + 0x20]
mov eax, edx
shr eax, 0x10
cwde
push eax
movsx eax, dx
push eax
call fcn.0049399a
mov ecx, edi
call fcn.004931e5
xor eax, eax
pop edi
ret 0x10

Function at 0x494301
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x50d1b5
call fcn.004d0cf3
mov edi, ecx
cmp dword [edi], 0
jne 0x49431b
xor al, al
jmp 0x4943b6
call fcn.00406cde
push eax
lea ecx, [ebp - 0x18]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x18]
push 0x534878
push eax
call fcn.004575ca
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push eax
push esi
push dword [edi]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
jne 0x49439d
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x49439d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x494392
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x14]
call fcn.004944ca
mov bl, al
cmp dword [ebp - 0x14], 0
je 0x49439d
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x10], 0
je 0x4943a8
push dword [ebp - 0x10]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
mov al, bl
call fcn.004d0cbc
ret 8
Function at 0x4947c6
Capabilities:
Get disk size

Disassembly:
sub esp, 0x424
mov eax, dword [0x56a078]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
test ecx, ecx
jne 0x4947e9
xor al, al
jmp 0x4948ec
movzx edx, word [ecx]
lea esi, [esp + 0x28]
push 2
pop ebp
test dx, dx
je 0x49480c
mov eax, esi
sub ecx, eax
mov word [esi], dx
add esi, ebp
movzx eax, word [ecx + esi]
mov edx, eax
test ax, ax
jne 0x4947fc
xor eax, eax
xor cl, cl
mov word [esi], ax
sub esi, ebp
push 0x5c
xor al, al
pop edx
mov byte [esp + 0x17], al
cmp word [esp + 0x28], dx
jne 0x49483c
cmp word [esp + 0x2a], dx
jne 0x49483c
xor ebx, ebx
inc ebx
mov byte [esp + 0x17], bl
cmp word [esi], dx
je 0x494848
mov cl, bl
jmp 0x494848
xor ebx, ebx
movzx eax, al
inc ebx
cmp word [esi], dx
cmove eax, ebx
lea edi, [esp + 0x2c]
cmp word [esp + 0x2c], dx
je 0x49485a
add edi, ebp
cmp word [edi], dx
jne 0x494853
test cl, cl
jne 0x494864
test al, al
je 0x494872
jmp 0x49486b
add esi, ebp
mov word [esi], dx
add esi, ebp
xor eax, eax
mov word [esi], ax
sub esi, ebp
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
lea eax, [esp + 0x20]
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4948cc
push 0x5c
pop ecx
cmp word [esi], cx
jne 0x4948a6
jmp 0x4948a4
cmp word [esi], cx
je 0x4948ae
sub esi, ebp
lea eax, [esp + 0x28]
cmp esi, eax
ja 0x49489f
cmp esi, edi
jb 0x4947e2
cmp byte [esp + 0x17], 0
jne 0x4948c1
cmp esi, edi
jne 0x4948c3
add esi, ebp
xor eax, eax
mov word [esi], ax
sub esi, ebp
jmp 0x49487b
mov eax, dword [esp + 0x43c]
cmp eax, dword [esp + 0x1c]
ja 0x4948e8
jb 0x4948ea
mov eax, dword [esp + 0x438]
cmp eax, dword [esp + 0x18]
jb 0x4948ea
xor ebx, ebx
mov al, bl
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d014c
add esp, 0x424
ret

Function at 0x49492f
Capabilities:
Create pipe

Disassembly:
push 0
mov eax, 0x50a759
call fcn.004d0cf3
mov edi, ecx
cmp byte [edi], 0
je 0x494949
mov al, 1
jmp 0x4949d8
mov al, byte [ebp + 8]
lea ecx, [edi + 4]
push dword [ebp + 0xc]
mov byte [edi], 1
mov byte [edi + 1], al
call fcn.0044369a
push 0x5348f8
lea ecx, [ebp + 8]
call fcn.004093f6
mov eax, dword [edi + 4]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
push eax
call fcn.004072c9
xor esi, esi
cmp byte [edi + 1], 0
je 0x4949a9
push esi
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp byte [edi + 1], 0
mov dword [edi + 8], eax
jne 0x4949c0
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00406dd3
mov al, bl
call fcn.004d0cbc
ret 8
Function at 0x494c5c
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push 8
mov eax, 0x50a9b7
call fcn.004d0cf3
mov esi, ecx
cmp byte [ebp + 0x10], 0
jne 0x494c98
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x494c98
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
add eax, 1
jne 0x494c98
cmp byte [esi + 0x11], al
je 0x494cee
push 0
lea eax, [ebp + 0x10]
push eax
push 0x7f90
push dword [esi + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [esi + 0xc]
shr ecx, 1
mov word [edx + ecx*2], di
test eax, eax
je 0x494cee
cmp dword [ebp + 0x10], edi
je 0x494cee
push dword [esi + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004093f6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004073ac
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406dd3
jmp 0x494cf6
mov ecx, dword [ebp + 8]
call fcn.00406df5
mov eax, dword [ebp + 8]
call fcn.004d0cbc
ret 0xc

Function at 0x494d01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x494d17
mov ecx, dword [ebp + 8]
call fcn.00406df5
jmp 0x494d45
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x10]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x494d0d
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00494c5c
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc
Function at 0x4951f5
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x88
mov eax, dword [0x56a078]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov eax, edx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push ecx
mov dword [esp + 0x38], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x495306
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x495306
cmp edi, dword [esp + 0x9c]
jbe 0x495306
sub edi, dword [esp + 0x9c]
lea ecx, [esp + 0x14]
push 0x10000
mov dword [esp + 0x18], ebx
call fcn.0044ec3e
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4952ff
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x13], bl
call fcn.004cbaf0
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x10000
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4952e7
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4952e7
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx]
cmp eax, edi
jbe 0x4952ca
mov ecx, edi
mov byte [esp + 0x13], 1
sub ecx, edx
mov dword [esp + 0x18], ecx
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.004cb8f0
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp byte [esp + 0x13], bl
je 0x495293
lea ecx, [esp + 0x20]
call fcn.004cb9c0
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.004cba90
mov bl, al
push esi
call fcn.004d0771
pop ecx
test ebp, ebp
je 0x495311
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x94]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d014c
add esp, 0x88
ret