joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434fc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2f80
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x508164]
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 ebx, edx
mov dword [ebp - 0x38], ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x2c]
add eax, 0xa
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
je 0x4350ef
push eax
call fcn.0048d929
mov edi, eax
add esp, 4
test edi, edi
je 0x4350ef
xor esi, esi
cmp dword [ebp - 0x30], esi
jbe 0x4350e6
mov eax, dword [ebp - 0x2c]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4350dc
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0040e3a0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.00483400
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 1
call fcn.00484aa0
lea ecx, [ebp - 0x50]
call fcn.00483a60
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4350dc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4350d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43510b
push edx
push ecx
call fcn.0048d8eb
add esp, 8
inc esi
cmp esi, dword [ebp - 0x30]
jb 0x435042
push edi
call fcn.0048d8c3
add esp, 4
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.0048d8b2
mov esp, ebp
pop ebp
ret
call fcn.004b0023
int3
Function at 0x436050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x508164]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword fs:[0x2c]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov esi, ecx
mov eax, dword [0x50fe4c]
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, dword [ebx + 4]
jle 0x4360db
push 0x50fe4c
call fcn.0048de6a
add esp, 4
cmp dword [0x50fe4c], 0xffffffff
jne 0x4360db
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
call edi
cmp dword [esp + 0x20], 2
jne 0x4360c7
cmp dword [esp + 0x14], 5
jne 0x4360c7
cmp dword [esp + 0x18], 1
sete al
jmp 0x4360c9
xor al, al
push 0x50fe4c
mov byte [0x50fe50], al
call fcn.0048de20
add esp, 4
cmp byte [0x50fe50], 0
je 0x436105
mov edx, str.SoftwareMicrosoftSchedulingAgent
mov ecx, esi
call fcn.00435120
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x50fe54]
cmp eax, dword [ebx + 4]
jle 0x436163
push 0x50fe54
call fcn.0048de6a
add esp, 4
cmp dword [0x50fe54], 0xffffffff
jne 0x436163
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
call edi
cmp dword [esp + 0x20], 2
jne 0x43614f
cmp dword [esp + 0x14], 6
jne 0x43614f
cmp dword [esp + 0x18], 1
sete al
jmp 0x436151
xor al, al
push 0x50fe54
mov byte [0x50fe58], al
call fcn.0048de20
add esp, 4
cmp byte [0x50fe58], 0
je 0x436173
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSchedule
jmp 0x4361e8
mov eax, dword [0x50fe5c]
cmp eax, dword [ebx + 4]
jle 0x4361ca
push 0x50fe5c
call fcn.0048de6a
add esp, 4
cmp dword [0x50fe5c], 0xffffffff
jne 0x4361ca
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
call edi
cmp dword [esp + 0x20], 2
jne 0x4361b6
cmp dword [esp + 0x14], 6
setae al
jmp 0x4361b8
xor al, al
push 0x50fe5c
mov byte [0x50fe60], al
call fcn.0048de20
add esp, 4
cmp byte [0x50fe60], 0
je 0x4361f3
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionScheduleTaskCacheTree
push ecx
mov ecx, esi
call fcn.00435600
add esp, 8
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionScheduleTaskCacheTasks
push ecx
mov ecx, esi
call fcn.00435600
add esp, 8
call fcn.004363c0
test al, al
je 0x43621c
push str.SOFTWAREWOW6432NodeMicrosoftWindows_NTCurrentVersionScheduleTaskCacheTree
push ecx
mov ecx, esi
call fcn.00435600
add esp, 8
push str.SOFTWAREWOW6432NodeMicrosoftWindows_NTCurrentVersionScheduleTaskCacheTasks
push ecx
mov ecx, esi
call fcn.00435600
add esp, 8
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
Function at 0x437760
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d33a9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ebx, [edi + 0x30]
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], ebx
mov ecx, ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00412c10
mov dword [ebx], eax
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 2
call fcn.00437310
push 1
mov byte [ebp - 4], 3
lea ecx, [edi + 0x18]
push 0x4eb5fc
mov byte [edi + 0x38], 1
call fcn.0040e3a0
push 0xd
push str.14.215.177.39
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040e3a0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00443130
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x437870
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x437866
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4378f6
push edx
push ecx
call fcn.0048d8eb
add esp, 8
push 0xf
push str.124.237.176.248
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040e3a0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00443130
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4378d8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4378ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4378fb
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov eax, edi
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.0048d8b2
mov esp, ebp
pop ebp
ret
call fcn.004b0023
call fcn.004b0023
int3
Function at 0x438830
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x248
mov eax, dword [0x508164]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
lea eax, [esp + 0x10]
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call fcn.00437fd0
mov edi, eax
add esi, 0x78
cmp esi, edi
je 0x43888d
mov ecx, esi
call fcn.0040e540
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x4388c3
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4388b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438a44
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x88], 0
jne 0x438a30
push 0x104
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [esp + 0x140]
push 0x104
push 0
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [esp + 0x140]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.watchclient.ini
lea eax, [esp + 0x144]
push 0x104
push eax
call fcn.004b9939
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14c]
add esp, 0xc
push eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0x4ea2b7
push str.MyOnlyId
push str.SYSTEM
call edi
cmp eax, 0xffffffff
jne 0x438991
push 0x104
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [esp + 0x140]
push eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0x4ea2b7
push str.DeviceIdentifyEx
push str.SYSTEM
call edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xf
lea edx, [ecx + 1]
mov byte [esp + 0x10], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4389b0
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0040e3a0
lea eax, [esp + 0x10]
cmp esi, eax
je 0x4389fe
mov ecx, esi
call fcn.0040e540
movups xmm0, xmmword [esp + 0x10]
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [esi + 0x10], xmm0
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x438a30
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438a26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438a49
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
call fcn.004b0023
call fcn.004b0023
int3
Function at 0x43fff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4128
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x508164]
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 + 0xc]
mov eax, esi
mov ebx, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x44002b
mov eax, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x440081
cmp dword [esi + 0x14], 8
jb 0x440053
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CreateFile___s__Err__d_
push 0x434
push 0x4edca8
push 1
call fcn.00407ee0
push eax
call fcn.00407c80
add esp, 0x1c
xor al, al
jmp 0x440166
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea ecx, [ebp - 0x70]
call fcn.00411840
mov esi, eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004096c0
mov ecx, esi
call fcn.0040eec0
add esi, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x4400b9
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4400d0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040e3a0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x70]
push eax
call fcn.0048dbcc
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x74]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x74], 0
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
push edi
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x440164
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x44015a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440184
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 8
call fcn.004b0023
int3
Function at 0x440190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4160
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x508164]
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 + 0xc]
mov eax, esi
mov ebx, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x4401cb
mov eax, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x440221
cmp dword [esi + 0x14], 8
jb 0x4401f3
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CreateFile___s__Err__d_
push 0x444
push 0x4edca8
push 1
call fcn.00407ee0
push eax
call fcn.00407c80
add esp, 0x1c
xor al, al
jmp 0x440303
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004872c0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.00411840
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004096c0
mov ecx, esi
call fcn.0040eec0
add esi, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x44026b
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x440270
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040e3a0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x70]
push eax
call fcn.0048dbcc
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x74]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x74], 0
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
push edi
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x440301
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4402f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440321
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 8
call fcn.004b0023
int3

Function at 0x4403d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov dword [ebp + 0xc], 0
jb 0x4403f2
mov eax, dword [esi]
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [esi + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x440418
cmp edi, 0xa
jg 0x440418
push 0x7d0
inc edi
call ebx
jmp 0x4403e1
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x440f20
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 0x440f4b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00446f10
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 0x440f6d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x440f6f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x440ff3
jg 0x440f84
test esi, esi
je 0x440ff3
test ecx, ecx
jl 0x440fcd
jg 0x440f8e
test eax, eax
je 0x440fcd
cmp edi, ecx
jg 0x440fa2
jl 0x440f98
cmp esi, eax
jae 0x440fa2
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.004a5400
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 0x440fd0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x440ff3
jg 0x440fda
test esi, esi
je 0x440ff3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x440ff3
push eax
push esi
push 1
push edx
call fcn.004afac3
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 0x441010
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 0x44103b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00446e10
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 0x44105d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x44105f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x4410fe
jg 0x44107c
test esi, esi
je 0x4410fe
test ecx, ecx
jl 0x4410c9
jg 0x441086
test eax, eax
je 0x4410c9
cmp ebx, ecx
jg 0x44109a
jl 0x441090
cmp esi, eax
jae 0x44109a
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.004a5400
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 0x4410d0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x4410fe
jg 0x4410da
test esi, esi
je 0x4410fe
cmp dword [edi + 0x4c], 0
je 0x4410fe
mov ecx, edi
call fcn.00441b30
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004afce7
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 0x441410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x441440
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x44147c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x44147c
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.0048d8b2
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x441563
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4414a4
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 0x4414d7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004b9835
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.0048d8b2
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], 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 - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x441563
cmp eax, 1
jle 0x441536
cmp eax, 3
jne 0x441563
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004b9835
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.0048d8b2
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x441553
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004afac3
add esp, 0x10
cmp edi, eax
jne 0x441563
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x441467
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 4
Function at 0x441b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x441c01
cmp byte [esi + 0x3d], 0
je 0x441c01
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x441bb7
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 0x441bc9
sub eax, 1
je 0x441bcd
sub eax, 2
je 0x441c01
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x441bea
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004afac3
add esp, 0x10
cmp edi, eax
jne 0x441bb7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
Function at 0x4421e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4308
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push 0x4ee6a4
push edx
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
call fcn.004af49e
mov eax, dword [ebp - 0x30]
add esp, 0xc
test eax, eax
jne 0x4422ae
push eax
mov dword [esi + 0x10], eax
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x4ea2b7
mov byte [esi], al
call fcn.0040e3a0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x44233c
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x44229f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44235c
push edx
push ecx
call fcn.0048d8eb
add esp, 8
jmp 0x44233c
push 2
push 0
push eax
call fcn.004b3438
push dword [ebp - 0x30]
call fcn.004b3a31
push 0
push 0
push dword [ebp - 0x30]
mov edi, eax
call fcn.004b3438
mov ecx, dword [ebp - 0x1c]
add esp, 0x1c
cmp edi, ecx
ja 0x4422ec
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + edi], 0
jmp 0x4422fb
mov eax, edi
sub eax, ecx
lea ecx, [ebp - 0x2c]
push 0
push eax
call fcn.0040cf90
push dword [ebp - 0x30]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push edi
cmovae eax, dword [ebp - 0x2c]
push 1
push eax
call fcn.004afce7
push dword [ebp - 0x30]
call fcn.004af74b
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x10], 0
add esp, 0x14
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004b0023
int3