joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fb70
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, eax
test ebx, ebx
push esi
push edi
jne 0x43fb84
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xor eax, eax
push eax
push 4
xor edi, edi
mov dword [esp + 0x14], 0x1c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x43fbd6
cmp ebx, dword [esp + 0x18]
je 0x43fbdf
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x43fbc1
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4402b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov ecx, str.QTService
xor ebp, ebp
call fcn.0040df40
mov eax, dword [esp + 0x10]
call fcn.00440d80
test eax, eax
je 0x440348
cmp dword [0x474f04], ebp
je 0x440341
mov edx, dword [0x473cfc]
mov eax, dword [edx + 0xc]
mov ecx, 0x473cfc
call eax
push ebp
add eax, 0x10
push 0xd
push str._QTSvcStat__idx___lu__value___lu
lea edi, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.004073c0
mov esi, dword [esp + 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44032e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x474f04]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0
push 0xd
push 0x41
call eax
mov ebp, 1
jmp 0x4403be
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x474f04], ebp
mov ebx, eax
je 0x4403bd
mov edx, dword [0x473cfc]
mov eax, dword [edx + 0xc]
mov ecx, 0x473cfc
call eax
push ebx
add eax, 0x10
push 0xd
push str._QTSvcStat__idx___lu__value___lu
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.004073c0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4403ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x474f04]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push ebx
push 0xd
push 0x41
call eax
pop ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4403de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x4403f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
xor esi, esi
push 0x206
lea eax, [esp + 0xe]
push esi
push eax
mov edi, ecx
mov word [esp + 0x14], si
call fcn.00446fa0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
push esi
push 0x29
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x44048b
push str.svchost.exe
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x44048b
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44048b
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x44048b
lea edx, [esp + 8]
call fcn.0040dff0
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004414cc
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004414cc
add esp, 0x20c
ret
Function at 0x440680
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x45aba8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor edi, edi
cmp ebp, edi
mov esi, ecx
je 0x4407d5
cmp esi, edi
je 0x4407d5
lea eax, [esp + 0x18]
push eax
push 2
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4407d5
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x60], edi
call fcn.0040df40
mov ebx, eax
lea esi, [esp + 0x20]
mov byte [esp + 0x5c], 1
call fcn.004293a0
xor ebx, ebx
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
lea esi, [esp + 0x30]
lea eax, [esp + 0x20]
mov byte [esp + 0x5c], 2
call fcn.004404b0
test eax, eax
mov esi, 8
je 0x440799
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x44077a
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x44]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [esp + 0x20]
push 7
push ebx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x440799
lea edi, [eax + 1]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x48], esi
mov dword [esp + 0x18], ebx
jb 0x4407bb
mov edx, dword [esp + 0x34]
push edx
call fcn.004415cb
add esp, 4
lea esi, [esp + 0x20]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
call fcn.0043f3b0
mov eax, edi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004414cc
add esp, 0x4c
ret
Function at 0x440800
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x459e00
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
xor eax, eax
cmp esi, ebp
mov ebx, edx
mov dword [esp + 0x1c], eax
je 0x44097c
cmp ebx, ebp
je 0x44097c
mov eax, dword [0x473cfc]
mov edx, dword [eax + 0xc]
mov ecx, 0x473cfc
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
push esi
push str.SYSTEMCurrentControlSet_services_s
lea edi, [esp + 0x28]
mov dword [esp + 0x58], ebp
call fcn.004073c0
mov edi, dword [esp + 0x28]
add esp, 8
lea eax, [esp + 0x14]
push eax
push 4
push ebp
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x440954
mov ecx, dword [esp + 0x14]
push str.Parameters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
push 2
push ebp
push ebp
push ebp
push str.Parameters
push ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x440949
mov edx, ebx
lea eax, [esp + 0x28]
call fcn.00406ad0
mov eax, 1
push ebp
lea ebx, [esp + 0x2c]
mov byte [esp + 0x54], al
call fcn.00428170
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x44090d
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x3c]
lea ecx, [edx + edx]
mov edx, dword [esp + 0x18]
push ecx
push eax
push 2
push ebp
push str.ServiceDll
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebp
jne 0x440935
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ebp
call fcn.00406b10
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov dword [esp + 0x14], ebp
lea eax, [edi - 0x10]
mov dword [esp + 0x50], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440978
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004414cc
add esp, 0x40
ret
Function at 0x440a20
Capabilities:
Modify service

Disassembly:
sub esp, 8
xor eax, eax
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], eax
je 0x440ace
test ebp, ebp
je 0x440ace
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440a43
sub eax, edx
push esi
sar eax, 1
push edi
lea edi, [eax + 0xa]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
push 0x472efd
neg ecx
or ecx, eax
push ecx
call fcn.004440db
mov esi, eax
add esp, 8
test esi, esi
je 0x440ac8
push edi
push ebp
push esi
call fcn.00441e56
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 1
push ebx
mov word [esi + edi*2 - 2], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
mov edi, 1
jne 0x440ab6
mov edi, dword [esp + 0xc]
push esi
call fcn.0044245d
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 8
ret

Function at 0x440b70
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push esi
xor esi, esi
cmp ebx, esi
mov dword [esp + 8], esi
je 0x440c5f
push ebp
push edi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call edi
test ebp, ebp
je 0x440c67
push 0x10020
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
call edi
xor eax, eax
cmp esi, eax
je 0x440c0d
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
call edi
test ebx, ebx
je 0x440c02
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [esp + 0x34]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x10], 0
je 0x440c55
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x34]
push ecx
mov eax, ebx
mov dword [esp + 0x38], 0
call fcn.004409a0
add esp, 4
test eax, eax
je 0x440c55
cmp dword [esp + 0x34], 0
jne 0x440c55
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x20
ret
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x440c80
Capabilities:
Create service

Disassembly:
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp esi, edi
mov ebx, eax
mov dword [esp + 0x10], edi
je 0x440d71
cmp dword [esp + 0x18], edi
je 0x440d71
cmp dword [esp + 0x1c], edi
je 0x440d71
cmp ebx, edi
je 0x440d71
lea eax, [esp + 0xc]
push eax
mov eax, esi
mov dword [esp + 0x10], edi
call fcn.004409a0
add esp, 4
test eax, eax
je 0x440d71
cmp dword [esp + 0xc], edi
je 0x440cde
push esi
call fcn.00440b70
add esp, 4
lea ecx, [esp + 0xc]
push ecx
mov eax, esi
mov dword [esp + 0x10], edi
call fcn.004409a0
add esp, 4
test eax, eax
je 0x440d71
cmp dword [esp + 0xc], edi
jne 0x440d71
push ebp
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebp
test edi, edi
je 0x440d70
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 3
push 0x20
push 0xf01ff
push edx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
call ebp
test ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x440d6d
mov eax, dword [esp + 0x20]
push eax
call fcn.00440a20
add esp, 4
test eax, eax
je 0x440d6a
call fcn.00440ae0
test eax, eax
je 0x440d6a
mov dword [esp + 0x14], 1
push ebx
call esi
push edi
call esi
pop ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x440d80
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x3c
push ebx
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
mov dword [esp + 8], ebx
je 0x440e76
push ebp
push edi
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call edi
test ebp, ebp
je 0x440e6c
push 0x24
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
call edi
xor eax, eax
cmp esi, eax
je 0x440e65
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x30]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
call edi
test ebx, ebx
je 0x440e4b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, eax
call edi
test ebx, ebx
je 0x440e5a
mov eax, 1
cmp dword [esp + 0x18], eax
jne 0x440e5a
mov dword [esp + 0x10], eax
jmp 0x440e5a
cmp eax, 0x426
jne 0x440e5a
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [esp + 0x10]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x3c
ret
pop esi
mov eax, ebx
pop ebx
add esp, 0x3c
ret
Function at 0x440ec0
Capabilities:
Link many functions at runtime

Disassembly:
push dword [esp + 4]
mov dword [esi], vtable.CDataReport.0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 4], eax
je 0x440fa4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitializeDataReport
push eax
call edi
push str.UninitalizeDataReport
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push str.SetClientVersion
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push str.SetClientUin
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.ReportString
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push str.ReportBinary
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push str.ReportFile
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
push str.ReportSystemInfo
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
push str.ArraySetValueDW
push dword [esi + 4]
mov dword [esi + 0x24], eax
call edi
push str.ArraySetValueDB
push dword [esi + 4]
mov dword [esi + 0x28], eax
call edi
push str.ArrayIncValueDW
push dword [esi + 4]
mov dword [esi + 0x2c], eax
call edi
push str.ArrayIncValueDB
push dword [esi + 4]
mov dword [esi + 0x30], eax
call edi
push str.ArrayDecValueDW
push dword [esi + 4]
mov dword [esi + 0x34], eax
call edi
push str.ArrayDecValueDB
push dword [esi + 4]
mov dword [esi + 0x38], eax
call edi
push str.Flush
push dword [esi + 4]
mov dword [esi + 0x3c], eax
call edi
mov dword [esi + 0x40], eax
pop edi
mov eax, esi
ret 4

Function at 0x4414cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4713c0]
jne 0x4414d6
repz ret
jmp fcn.00445827
Function at 0x442e14
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x442e51
cmp dword [ebp + 0x14], edi
je 0x442e51
cmp ecx, edi
jne 0x442e58
call fcn.00444369
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00441e22
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x442e6c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x442e8d
cmp ebx, 0xffffffff
je 0x442e7c
push ebx
push edi
push ecx
call fcn.00446fa0
add esp, 0xc
cmp esi, edi
je 0x442e39
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x442e39
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x442ea9
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x442eb0
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x442fa1
test word [esi + 0xc], 0x10c
je 0x442f04
mov eax, dword [esi + 4]
test eax, eax
je 0x442f04
jl 0x443002
cmp ebx, eax
mov edi, ebx
jb 0x442ed5
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x442fa9
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044193a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x442f99
cmp ebx, dword [ebp - 0xc]
jb 0x442f71
cmp dword [ebp - 0xc], 0
je 0x442f2e
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x442f23
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x442f2a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x442f39
mov eax, SysReAllocString
cmp ebx, eax
ja 0x442f39
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x442fd5
push eax
push dword [ebp - 8]
push esi
call fcn.0044a1e1
pop ecx
push eax
call fcn.0044b38e
add esp, 0xc
test eax, eax
je 0x443014
cmp eax, 0xffffffff
je 0x443002
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x442f99
push esi
call fcn.0044acad
cmp eax, 0xffffffff
pop ecx
je 0x443006
cmp dword [ebp - 4], 0
je 0x442fd5
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x442eb8
mov eax, dword [ebp + 0x14]
jmp 0x442e53
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x442fc0
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00446fa0
add esp, 0xc
call fcn.00444369
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x442e49
cmp dword [ebp + 0xc], 0xffffffff
je 0x442feb
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00446fa0
add esp, 0xc
call fcn.00444369
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x442e49
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x442e53
or dword [esi + 0xc], 0x10
jmp 0x443006
Function at 0x445622
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x471308]
je 0x44563d
inc edi
cmp edi, 0x17
jb 0x44562e
cmp edi, 0x17
jae 0x4457bd
push ebp
push 3
call fcn.0044ebff
cmp eax, 1
pop ecx
je 0x445789
push 3
call fcn.0044ebff
test eax, eax
pop ecx
jne 0x445671
cmp dword [0x471064], 1
je 0x445789
cmp ebx, 0xfc
je 0x4457bc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4730b0
push ebp
call fcn.00446775
add esp, 0xc
test eax, eax
je 0x4456a7
push esi
push esi
push esi
push esi
push esi
call fcn.00441d26
add esp, 0x14
push 0x104
mov esi, 0x4730c9
push esi
push 0
mov byte [0x4731cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4456eb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00446775
add esp, 0xc
test eax, eax
je 0x4456eb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00441d26
add esp, 0x14
push esi
call fcn.004467e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x445730
push esi
call fcn.004467e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4733c4
push 0x45fbcc
sub ecx, eax
push ecx
push eax
call fcn.0044eb4c
add esp, 0x14
test eax, eax
je 0x445730
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00441d26
add esp, 0x14
jmp 0x445732
xor esi, esi
push 0x45fbc8
push ebx
push ebp
call fcn.0044eadb
add esp, 0xc
test eax, eax
je 0x445752
push esi
push esi
push esi
push esi
push esi
call fcn.00441d26
add esp, 0x14
push dword [edi*8 + 0x47130c]
push ebx
push ebp
call fcn.0044eadb
add esp, 0xc
test eax, eax
je 0x445774
push esi
push esi
push esi
push esi
push esi
call fcn.00441d26
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044e91e
add esp, 0xc
jmp 0x4457bc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4457bc
cmp ebp, 0xffffffff
je 0x4457bc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x47130c]
push dword [esi]
call fcn.004467e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44e91e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00446945
xor ebx, ebx
cmp dword [0x4739b0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44e9f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44ead4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44ead4
push eax
call fcn.004468d7
mov dword [esp], 0x45ff74
push edi
mov dword [0x4739b0], eax
call esi
push eax
call fcn.004468d7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4739b4], eax
call esi
push eax
call fcn.004468d7
mov dword [0x4739b8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004453af
test eax, eax
pop ecx
pop ecx
je 0x44e9c2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00441d26
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44e9f4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004468d7
cmp eax, ebx
pop ecx
mov dword [0x4739c0], eax
je 0x44e9f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004468d7
pop ecx
mov dword [0x4739bc], eax
mov eax, dword [0x4739bc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44ea79
cmp dword [0x4739c0], ecx
je 0x44ea79
push eax
call fcn.0044694e
push dword [0x4739c0]
mov esi, eax
call fcn.0044694e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44ea79
cmp edi, ebx
je 0x44ea79
call esi
cmp eax, ebx
je 0x44ea46
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44ea46
test byte [ebp - 0x18], 1
jne 0x44ea79
lea eax, [ebp - 0x10]
push eax
call fcn.004453e6
test eax, eax
pop ecx
je 0x44ea61
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00441d26
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44ea70
or dword [ebp + 0x10], 0x200000
jmp 0x44eab4
or dword [ebp + 0x10], 0x40000
jmp 0x44eab4
mov eax, dword [0x4739b4]
cmp eax, dword [ebp - 8]
je 0x44eab4
push eax
call fcn.0044694e
cmp eax, ebx
pop ecx
je 0x44eab4
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44eab4
mov eax, dword [0x4739b8]
cmp eax, dword [ebp - 8]
je 0x44eab4
push eax
call fcn.0044694e
cmp eax, ebx
pop ecx
je 0x44eab4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4739b0]
call fcn.0044694e
cmp eax, ebx
pop ecx
je 0x44ead4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44ead6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret