joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aa55
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and byte [ebp - 0x50], 0
push ebx
push esi
push edi
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x50]
push 0x40
push eax
push dword [ebp + 0xc]
call fcn.0043a3ca
push eax
call fcn.00439674
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x43aa95
push 0x1b03
push 0xc
jmp 0x43aac1
mov ecx, dword [ebp + 0x14]
call fcn.0043abc1
mov edi, eax
mov eax, dword [esi]
sub edi, dword [ebp + 0x14]
mov ecx, esi
push edi
call dword [eax + 8]
push eax
mov dword [ebp - 4], eax
call fcn.005ed45a
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x43aacf
push 0x1b0d
push 0x21
call fcn.004399ac
pop ecx
xor eax, eax
pop ecx
jmp 0x43abbc
push dword [ebp - 4]
push 0
push ebx
call fcn.00466010
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, dword [esi]
and dword [ebp - 8], 0
push eax
and dword [ebp + 0xc], 0
push dword [ebp - 4]
lea eax, [ebp - 0x50]
mov dword [ebp - 0xc], edx
push ebx
push edi
push dword [ebp + 0x14]
push eax
call fcn.00467290
pop ecx
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x43ab9b
mov esi, dword [ebp + 0x10]
mov edi, dword [esi + 0x378]
mov eax, dword [esi + 0x37c]
test edi, edi
mov dword [ebp + 0x14], eax
jne 0x43ab3e
test eax, eax
jne 0x43ab3e
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp + 0x14]
push 0
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x10]
push 0
push eax
and dword [ebp - 0x10], 0
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43aba4
mov eax, dword [ebp + 0x14]
push dword [ebp - 4]
mov dword [esi + 0x37c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esi + 0x378], edi
mov dword [esi + 0x380], eax
call fcn.00453a8f
pop ecx
mov dword [esi + 0x384], eax
pop ecx
mov dword [ebp - 8], 1
jmp 0x43abb2
push 0x1b19
push 0x11
jmp 0x43abab
push 0x1b28
push 0xe
call fcn.004399ac
pop ecx
pop ecx
push ebx
call fcn.005ed483
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c0f5
Capabilities:
Delete file
Set file attributes

Disassembly:
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call fcn.004399ca
mov edi, dword [esp + 0x1c]
pop ecx
cmp edi, ebx
je 0x43c266
cmp word [edi], bx
je 0x43c266
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x43c266
cmp word [esi], bx
je 0x43c266
cmp dword [0x69e3b4], ebx
jne 0x43c141
push 0x1fc2
push 2
jmp 0x43c26d
push ebx
push ebx
push ebx
push edi
call fcn.0043b540
add esp, 0x10
cmp eax, 4
je 0x43c173
cmp eax, 3
jne 0x43c167
push ebx
push esi
push edi
call fcn.004416c5
add esp, 0xc
jmp 0x43c276
push 0x1fd2
push 0x23
jmp 0x43c26d
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocStringLen
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
call edi
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x43c217
push ebp
push ebx
push 0x80
push 4
push ebx
mov ebp, 0xc0000000
push ebx
push ebp
push esi
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x43c1ec
push dword [esp + 0x20]
call fcn.004529c4
cmp eax, esi
pop ecx
je 0x43c227
test al, 1
je 0x43c227
and al, 0xfe
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x80
push 3
push ebx
push 1
push ebp
push dword [esp + 0x38]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x43c227
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
mov dword [esp + 0x18], 1
push dword [esp + 0x14]
call fcn.0043c27c
pop ecx
mov dword [esp + 0x20], eax
pop ecx
jmp 0x43c235
push 0x1fea
push 3
call fcn.004399ac
pop ecx
pop ecx
jmp 0x43c260
push 0x200c
push 4
call fcn.004399ac
pop ecx
pop ecx
push dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp esi, 0xffffffff
pop ebp
je 0x43c24a
push esi
call edi
cmp dword [esp + 0x18], ebx
jne 0x43c260
cmp dword [esp + 0x10], ebx
je 0x43c260
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
jmp 0x43c276
push 0x1fbc
push 1
call fcn.004399ac
pop ecx
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x43ca63
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0xf
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x53]
mov byte [ebp - 0x54], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x54]
push eax
movzx eax, word [ebp + 0xc]
push eax
call fcn.0043a3ca
push eax
call fcn.00439674
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x43caa6
push 0x21dc
push 0xc
jmp 0x43cac7
mov eax, dword [esi]
push dword [ebp + 0x18]
mov ecx, esi
call dword [eax + 8]
mov edi, eax
push edi
call fcn.005ed45a
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
jne 0x43cad5
push 0x21e5
push 0x21
call fcn.004399ac
pop ecx
xor eax, eax
pop ecx
jmp 0x43cb9a
push edi
push ebx
push eax
call fcn.00466010
add esp, 0xc
lea eax, [ebp - 4]
mov edx, dword [esi]
mov dword [ebp - 8], ebx
push eax
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
mov dword [ebp - 4], ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov dword [ebp + 0x14], edx
push eax
call fcn.00467290
pop ecx
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x43cb77
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push 1
stosd dword es:[edi], eax
pop edi
lea eax, [ebp - 0x10]
push edi
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push ebx
mov dword [ebp - 0xc], ebx
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43cb80
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
push eax
mov dword [esi + 8], eax
push dword [ebp + 0xc]
call fcn.00453a8f
pop ecx
mov dword [esi + 0xc], eax
pop ecx
mov dword [ebp - 8], edi
jmp 0x43cb8e
push 0x21f1
push 0x15
jmp 0x43cb87
push 0x21fd
push 0xe
call fcn.004399ac
pop ecx
pop ecx
push dword [ebp + 0xc]
call fcn.005ed483
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43cb9f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [eax]
push edi
cmp eax, dword [esi + 0x10]
jae 0x43cbbe
push 0x2218
push 1
jmp 0x43cbd6
push dword [esi + 8]
call fcn.005ed45a
mov ebx, eax
xor edi, edi
cmp ebx, edi
pop ecx
jne 0x43cbe4
push 0x221f
push 0x21
call fcn.004399ac
pop ecx
xor eax, eax
pop ecx
jmp 0x43ccd8
push dword [esi + 8]
mov dword [ebp - 8], edi
push edi
push ebx
call fcn.00466010
add esp, 0xc
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push edi
push eax
push dword [esi + 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43ccc0
mov eax, dword [esi + 8]
cmp dword [ebp + 0x10], eax
jb 0x43ccc0
push dword [esi + 0xc]
push eax
push ebx
call fcn.00453a6b
add esp, 0xc
test eax, eax
je 0x43cca5
and byte [ebp - 0x48], 0
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x47]
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x48]
push eax
movzx eax, word [ebp + 0xc]
push eax
call fcn.0043a3ca
push eax
call fcn.00439674
mov edi, eax
add esp, 0x10
test edi, edi
je 0x43ccae
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
mov eax, dword [ebp + 0x18]
mov edx, dword [edi]
push dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], edx
push dword [eax]
lea eax, [ebp - 0x48]
push dword [esi + 8]
push ebx
push eax
call fcn.00467290
pop ecx
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp + 8]
mov ecx, edi
call dword [eax + 0x14]
test eax, eax
je 0x43ccb7
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], 1
mov dword [ecx], eax
jmp 0x43ccce
push 0x2234
push 0x1c
jmp 0x43ccc7
push 0x223f
push 0xc
jmp 0x43ccc7
push 0x2247
push 0x12
jmp 0x43ccc7
push 0x222d
push 0xd
call fcn.004399ac
pop ecx
pop ecx
push ebx
call fcn.005ed483
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43d2ae
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x388
push edi
push 0
call fcn.004399ca
and byte [ebp - 0x388], 0
mov ecx, 0xe1
xor eax, eax
lea edi, [ebp - 0x387]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x388]
push eax
push dword [ebp + 8]
call fcn.0043d385
add esp, 0xc
test eax, eax
pop edi
jne 0x43d2fd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
leave
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43d30c
mov ecx, dword [ebp - 0x36c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x370]
leave
ret
Function at 0x43d94a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0xffffffff
push esi
je 0x43d9a7
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x43d9a7
cmp dword [ebp + 0x10], esi
je 0x43d9a7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x43d9b5
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call fcn.00466010
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43d9a2
push 0x253f
push 0xd
jmp 0x43d9ae
push 1
pop eax
jmp 0x43d9b7
push 0x2532
push 1
call fcn.004399ac
pop ecx
pop ecx
xor eax, eax
pop esi
leave
ret
Function at 0x442d4f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
xor ebx, ebx
cmp dword [0x69ea68], ebx
push esi
push edi
je 0x442eb2
cmp dword [ebp + 8], ebx
je 0x442eb2
mov esi, 0x69ea6c
push esi
call fcn.00465c4f
test eax, eax
pop ecx
je 0x442eb2
xor eax, eax
lea edi, [ebp - 0x16]
mov word [ebp - 0x18], bx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x216]
mov word [ebp - 0x218], bx
push dword [0x69ea64]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
lea eax, [ebp - 0x218]
push str.__04d__02d__02d__02d:_02d:_02d____d_
push eax
call fcn.00466dce
add esp, 0x24
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x442eb2
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x442e3a
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 8]
push 2
push eax
push edi
mov dword [ebp - 8], 0xfeff
call esi
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00465c4f
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call esi
push dword [ebp + 8]
call fcn.00465c4f
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x442ea6
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 8]
call fcn.00465c4f
pop ecx
shl eax, 1
push eax
push dword [ebp + 8]
push edi
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp word [eax + ecx*2 - 2], 0xa
je 0x442ea6
push ebx
lea eax, [ebp - 4]
mov ebx, 0x66bd38
push eax
push ebx
call fcn.00465c4f
pop ecx
shl eax, 1
push eax
push ebx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x442eb4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x442ef2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor edx, edx
cmp dword [ebp + 0xc], edx
je 0x442f58
cmp dword [ebp + 0x10], edx
je 0x442f58
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x23
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
pop edi
je 0x442f58
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
push str._sIpgV3FatalError__d.log
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004674a3
add esp, 0x14
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x444eab
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x607c84
call fcn.00465b38
sub esp, 0x204
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
fldz
push eax
push 0x101
fstp qword [esi]
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x444ee0
xor eax, eax
jmp 0x444f43
push edi
lea ecx, [ebp - 0x48]
call fcn.00455237
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], ebx
call fcn.00444f52
mov edi, 0x672588
lea eax, [ebp - 0x80]
push 0x7b
push eax
lea ecx, [ebp - 0x48]
push dword [edi]
call fcn.00455263
test eax, eax
jne 0x444f1a
add edi, 0x10
cmp edi, 0x672648
jl 0x444ef9
jmp 0x444f3a
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x70]
push eax
call fcn.00454f5c
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
call fcn.0045bdc7
fld qword [ebp - 0x18]
push 1
fstp qword [esi]
pop ebx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4479c5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
push edi
mov esi, 0x673c00
lea edi, [ebp - 0xc]
xor eax, eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 9]
mov esi, str.TSD_VOLUME_X:
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [ebp - 0x5c]
push 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x4e]
and byte [ebp - 0x160], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x15f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
and dword [ebp - 4], 0
mov edi, 0x104
lea eax, [ebp - 0x160]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x447a4f
lea eax, [ebp - 0x160]
push edi
push eax
lea eax, [ebp - 0x5c]
push eax
call esi
test eax, eax
jne 0x447a4f
mov dword [ebp - 4], 0x58
jmp 0x447a9c
mov bl, 0x5a
movsx eax, bl
push eax
lea eax, [ebp - 0x5c]
push str.TSD_VOLUME__c:
push eax
mov byte [ebp - 0xc], bl
call fcn.00467451
add esp, 0xc
lea eax, [ebp - 0x160]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x447a8d
lea eax, [ebp - 0x160]
push edi
push eax
lea eax, [ebp - 0x5c]
push eax
call esi
test eax, eax
je 0x447a96
dec bl
cmp bl, 0x41
jg 0x447a51
jmp 0x447a9c
movsx eax, bl
mov dword [ebp - 4], eax
cmp dword [0x6a3388], 0
pop edi
pop esi
pop ebx
je 0x447ac4
push dword [ebp - 4]
push str.COEADMgr::ClacMountVolume____Volume__c:_
push str.OEADisk
push 4
push 0x6a2af4
call fcn.004cdcb0
add esp, 0x14
mov eax, dword [ebp - 4]
leave
ret
Function at 0x447de0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x608090
call fcn.00465b38
sub esp, 0x44
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x447e0b
push 0x84
push 1
call fcn.004498cb
pop ecx
xor eax, eax
pop ecx
jmp 0x447f60
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.00442f5c
push dword [ebp + 0x30]
lea eax, [ebp - 0x50]
xor ebx, ebx
push dword [ebp + 0x2c]
mov dword [ebp - 4], ebx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00447f6d
add esp, 0x2c
test eax, eax
jne 0x447e5d
push 0x8d
push 1
call fcn.004498cb
pop ecx
xor esi, esi
pop ecx
jmp 0x447f50
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x50]
push eax
call fcn.0044301e
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp dword [eax - 8], ebx
jne 0x447e7d
push 1
pop esi
jmp 0x447f45
cmp dword [0x6a3388], ebx
je 0x447e9f
push eax
push str.Put_In_OeaFile_XML__n_s_
push str.OeaWaterMask
push 0xffffffffffffffff
push 0x6a2af4
call fcn.004cdcb0
add esp, 0x14
lea ecx, [ebp + 8]
call fcn.004a8620
mov ecx, dword [ebp - 0x18]
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx - 8]
lea eax, [eax + eax + 2]
push eax
push ecx
call fcn.0044973d
add esp, 0xc
test eax, eax
jne 0x447ed9
push 0x9c
push 0x11
call fcn.004498cb
pop ecx
xor esi, esi
pop ecx
jmp 0x447f39
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push edi
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x10], ebx
call fcn.004495f7
add esp, 0xc
test eax, eax
je 0x447f16
cmp dword [ebp - 0x14], ebx
jne 0x447f0b
cmp dword [ebp - 0x10], ebx
je 0x447f16
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 0x14]
push edi
call esi
lea eax, [ebp - 0x1c]
push ebx
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], ebx
call fcn.004a87f0
push eax
lea ecx, [ebp + 8]
call fcn.004a8f20
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004a8750
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00480a70
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00442fd3
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x4495f7
Capabilities:
Get file size

Disassembly:
mov eax, 0x608158
call fcn.00465b38
sub esp, 0x390
cmp dword [ebp + 8], 0xffffffff
jne 0x449622
push 0x420
push 1
call fcn.004498cb
pop ecx
xor eax, eax
pop ecx
jmp 0x449731
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push 1
push eax
push ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
call esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
mov dword [ebp - 0x2c], eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x10]
push 1
push eax
push edi
push dword [ebp + 8]
call esi
cmp eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
jne 0x44967f
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x20]
je 0x449711
mov ecx, 0xdb
xor eax, eax
lea edi, [ebp - 0x39b]
mov byte [ebp - 0x39c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x18]
stosb byte es:[edi], al
call fcn.004a8620
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004a8620
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x39c]
push eax
push dword [ebp + 8]
call fcn.0043c6ac
add esp, 0x10
test eax, eax
je 0x4496f7
mov eax, dword [ebp - 0x370]
mov edi, dword [ebp - 0x374]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
call fcn.004a8750
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004a8750
jmp 0x44965f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004a8750
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004a8750
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
push dword [ebp + 8]
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x449d51
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x6082e0
call fcn.00465b38
sub esp, 0x2c
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00449ad0
pop ecx
push dword [eax]
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.005ece05
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00480a70
push str.OEATemp
lea ecx, [ebp - 0x10]
call fcn.005ed182
cmp dword [ebp + 8], esi
je 0x449dae
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.005ecf28
push 0x66b0e4
lea ecx, [ebp - 0x10]
call fcn.005e21dc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.005ecafe
push 0x67158c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.005ed182
lea ecx, [ebp - 0x38]
call fcn.0045db3e
push esi
lea ecx, [ebp - 0x38]
push dword [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0045dc03
cmp eax, esi
je 0x449e54
push edi
lea ecx, [ebp - 0x38]
call fcn.0045de29
lea ecx, [ebp - 0x38]
mov edi, eax
call fcn.0045ddec
test eax, eax
jne 0x449e4f
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x38]
push eax
call fcn.0045def8
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call dword [eax + 0x38]
push dword [ebp - 0x14]
cmp eax, esi
je 0x449e28
call fcn.00449d51
pop ecx
jmp 0x449e43
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.005ecd91
cmp edi, esi
jne 0x449de8
pop edi
lea ecx, [ebp - 0x38]
call fcn.0045dbb9
cmp dword [ebp + 8], esi
je 0x449e6e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x449e71
push 1
pop esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0045db7d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.005ecd91
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005ecd91
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x44a4b6
Capabilities:
Create directory
Get file attributes

Disassembly:
mov eax, 0x60837c
call fcn.00465b38
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x44a5b1
push ebx
call fcn.00465c4f
test eax, eax
pop ecx
je 0x44a5b1
push ebx
lea ecx, [ebp + 8]
call fcn.005ece05
and dword [ebp - 4], 0
push 3
push 0x5c
lea ecx, [ebp + 8]
call fcn.005ed2db
mov edi, 0x66bcd8
push 4
push edi
push ebx
mov esi, eax
call fcn.00465b57
add esp, 0xc
test eax, eax
jne 0x44a524
push edi
call fcn.00465c4f
pop ecx
push eax
push 0x5c
lea ecx, [ebp + 8]
call fcn.005ed2db
inc eax
push eax
jmp 0x44a53a
push 2
push 0x66a238
push ebx
call fcn.00465b57
add esp, 0xc
test eax, eax
jne 0x44a546
inc esi
push esi
push 0x5c
lea ecx, [ebp + 8]
call fcn.005ed2db
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x44a5c2
lea eax, [ebp - 0x10]
push esi
push eax
lea ecx, [ebp + 8]
call fcn.005e1c4f
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
jne 0x44a57a
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x44a57c
test al, 0x10
je 0x44a59a
inc esi
lea ecx, [ebp + 8]
push esi
push 0x5c
call fcn.005ed2db
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.005ecd91
jmp 0x44a549
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.005ecd91
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.005ecd91
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.005ecd91
push 1
pop eax
jmp 0x44a5b3