joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493001
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.005482e0
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1010], 0x588914
cmp dword [edi + 0x2484], ebx
je 0x493040
mov dword [ebp - 0x1010], str.POST
xor eax, eax
push 0xffe
mov word [ebp - 0x1008], ax
lea eax, [ebp - 0x1006]
push ebx
push eax
mov dword [ebp - 0x100c], ebx
mov dword [ebp - 0x1020], 0x588928
mov dword [ebp - 0x101c], ebx
call fcn.00537010
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [eax + 0x1048]
push ecx
add eax, 0x48
push eax
push 0x58002c
lea eax, [ebp - 0x1008]
push 0x7ff
push eax
call fcn.00532a01
add esp, 0x14
mov eax, 0x8400c300
cmp dword [edi + 0x62ee4], ebx
je 0x4930ad
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x4930bb
or eax, 0x803000
push esi
push eax
lea eax, [ebp - 0x1020]
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1010]
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x4931c7
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x1010]
push ecx
push 2
push eax
mov dword [ebp - 0x1010], 0x3a98
call edi
push 4
lea eax, [ebp - 0x1018]
push eax
push 0x41
push dword [esi + 0x1c]
mov dword [ebp - 0x1018], 1
call edi
push 0xa
mov dword [ebp - 0x100c], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
xor ecx, ecx
push 2
pop edx
mov eax, 0x5168
mul edx
seto cl
mov dword [ebp - 0x1048], 0x28
neg ecx
or ecx, eax
push ecx
call fcn.0052f69b
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4931a2
push 0xa2d0
push ebx
push edi
call fcn.00537010
mov ecx, dword [ebp - 0x1014]
add esp, 0xc
push dword [ebp - 0x100c]
mov edx, esi
push edi
call fcn.004932b0
mov eax, edi
mov dword [ebp - 0x1040], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x49318e
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x103c], eax
push esi
push 1
push ebx
lea eax, [ebp - 0x1048]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov dword [ebp - 0x100c], eax
cmp edi, ebx
je 0x4931c7
push edi
call fcn.00530cbd
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x100c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret
Function at 0x493bac
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 8], esi
je 0x493bd0
xor eax, eax
inc eax
jmp 0x493d37
lea ebx, [edi + 0x5d148]
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
push 0x5c
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
push esi
mov word [ebp - 6], ax
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x493d35
mov ecx, dword [edi + 0x5d128]
mov eax, dword [edi + 0x5d12c]
cmp ecx, 0xffffffff
jne 0x493c2b
cmp eax, ecx
je 0x493c4a
mov edx, dword [ebp - 0x14]
cmp edx, eax
ja 0x493c4a
jb 0x493c3b
mov eax, dword [ebp - 0x18]
cmp eax, ecx
ja 0x493c4a
mov dword [edi + 0x2470], 2
jmp 0x493d35
push esi
push 0x20
push 4
push esi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x493d1f
cmp dword [edi + 0x271c], esi
je 0x493bc8
lea ebx, [edi + 0x2704]
mov eax, ebx
call fcn.00495384
call fcn.00493fd6
test eax, eax
jne 0x493bc8
lea eax, [edi + 0x2468]
cmp dword [eax], esi
ja 0x493ca0
mov dword [eax], 5
push 0xa
pop ecx
cmp dword [eax], ecx
jbe 0x493ca9
mov dword [eax], ecx
mov eax, dword [edi + 0x5d128]
mov ecx, dword [edi + 0x5d12c]
add eax, 0xffffffff
mov dword [edi + 0x5cff0], eax
lea eax, [edi + 0x5cfe0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
adc ecx, 0xffffffff
push eax
mov eax, ebx
mov dword [edi + 0x5cfe8], esi
mov dword [edi + 0x5cfec], esi
mov dword [edi + 0x5cff4], ecx
call fcn.004953e8
mov eax, dword [edi + 0x5d128]
mov edx, dword [edi + 0x5d12c]
mov cl, 0x20
call fcn.00539220
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x5d128]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x493bc8
mov dword [edi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2474], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret
Function at 0x493df0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call fcn.00537010
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffff4a
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x210]
push eax
mov ebx, 0xb6
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x210], ebx
jne 0x493ef3
mov edx, str._JZSTART_1E222D06_2CB2_4220_AF52_E0B7E800F5C1_CBA04DEF_39E0_45e4_854F_B3EA272DE745_JZEND_
lea eax, [ebp - 0x20c]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x493e9f
test cx, cx
je 0x493e9b
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x493e9f
add eax, 4
add edx, 4
test cx, cx
jne 0x493e79
xor eax, eax
jmp 0x493ea4
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
cmp eax, ebx
jne 0x493ef3
push 1
push ebx
push 0xffffff46
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x210]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
push 1
add eax, ecx
push ebx
neg eax
push eax
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret

Function at 0x493f01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 2
xor ebx, ebx
lea esi, [edi + 0x2704]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push ebx
push ebx
push dword [edi + 8]
sar eax, 2
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 8], ebx
je 0x493fc6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [edi + 8]
call ebx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
and dword [ebp - 4], 0
sar eax, 2
mov dword [ebp - 0x10], 4
test eax, eax
jbe 0x493f9a
mov edi, dword [ebp - 4]
call fcn.004264b0
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x20
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call ebx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
add dword [ebp - 0x10], 0x20
inc dword [ebp - 4]
sar eax, 2
cmp dword [ebp - 4], eax
jb 0x493f68
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [edi + 8]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 0xb6
push str._JZSTART_1E222D06_2CB2_4220_AF52_E0B7E800F5C1_CBA04DEF_39E0_45e4_854F_B3EA272DE745_JZEND_
push dword [edi + 8]
call ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x493fd6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x218], ebx
call fcn.00537010
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffff4a
push dword [edi + 8]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
push 0xb6
lea eax, [ebp - 0x210]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x214], 0xb6
jne 0x4941cb
mov edx, str._JZSTART_1E222D06_2CB2_4220_AF52_E0B7E800F5C1_CBA04DEF_39E0_45e4_854F_B3EA272DE745_JZEND_
lea eax, [ebp - 0x210]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x49409a
cmp cx, bx
je 0x494096
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x49409a
add eax, 4
add edx, 4
cmp cx, bx
jne 0x494074
xor eax, eax
jmp 0x49409f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4941cb
push 1
push ebx
push 0xffffff46
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x22c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x214]
push 1
add eax, ecx
push ebx
neg eax
push eax
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x21c], ebx
cmp dword [ebp - 0x218], ebx
jbe 0x494195
lea esi, [edi + 0x5cff8]
push ebx
lea ecx, [ebp - 0x214]
push ecx
push 0x20
lea eax, [esi - 0x18]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
add dword [esi - 0x10], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi - 4]
adc dword [esi - 0xc], eax
mov eax, dword [esi - 8]
sub eax, dword [esi - 0x10]
mov dword [esi - 0x18], ebx
sbb ecx, dword [esi - 0xc]
add eax, 1
adc ecx, ebx
add dword [ebp - 0x228], eax
lea eax, [esi - 0x18]
mov dword [ebp - 0x230], eax
adc dword [ebp - 0x224], ecx
lea eax, [ebp - 0x230]
push eax
lea eax, [edi + 0x2704]
mov dword [esi - 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.004953e8
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
add esi, 0x20
cmp eax, dword [ebp - 0x218]
jb 0x494119
mov ecx, dword [edi + 0x5d128]
sub ecx, dword [ebp - 0x228]
mov edx, dword [edi + 0x5d12c]
sbb edx, dword [ebp - 0x224]
lea eax, [edi + 0x5d140]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, edx
mov dword [edi + 0x5d13c], eax
xor eax, eax
mov dword [edi + 0x5d138], ecx
inc eax
jmp 0x4941cd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret
Function at 0x4941db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, eax
mov eax, dword [ebx + 0x805c]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
push edi
jne 0x4941fc
mov eax, dword [ebx]
mov dword [ebp - 4], eax
xor edi, edi
cmp dword [esi + 0x271c], edi
je 0x49429c
call fcn.00493df0
mov edi, dword [ebx + 0x8040]
mov ecx, dword [edi + 8]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0xc]
adc eax, dword [edi + 0x1c]
push 0
mov edx, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ecx
push dword [esi + 8]
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49424c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4942d6
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebx + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4942d6
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x4942d6
add dword [edi + 0x18], eax
lea eax, [esi + 0x5d138]
adc dword [edi + 0x1c], 0
mov ecx, dword [ebp - 8]
add dword [eax], ecx
push ecx
push esi
adc dword [eax + 4], 0
mov ecx, ebx
call fcn.004942dc
push esi
call fcn.00493f01
xor eax, eax
inc eax
jmp 0x4942d8
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebx + 0x40]
push eax
push dword [esi + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4942d6
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jne 0x4942d6
lea eax, [esi + 0x5d138]
add dword [eax], ecx
push ecx
push esi
adc dword [eax + 4], edi
mov ecx, ebx
call fcn.004942dc
jmp 0x494297
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4962f9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push 0x260
mov eax, 0x55fc72
call fcn.00539a44
mov eax, dword [0x5beb28]
mov ebx, dword [ebp + 8]
mov esi, 0x5beb28
mov ecx, esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x264], edi
and dword [ebp - 4], 0
mov eax, dword [0x5beb28]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
push ebx
lea eax, [ebp - 0x268]
push eax
mov byte [ebp - 4], 1
call fcn.004082ed
push 0x588c88
lea eax, [ebp - 0x268]
push eax
call fcn.0041a591
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
jne 0x49639a
xor esi, esi
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00407d09
lea eax, [edi - 0x10]
call fcn.00407d09
mov eax, esi
call fcn.00539ac7
ret
push 4
pop esi
mov ecx, 0x583f04
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4963cc
test dx, dx
je 0x4963c8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4963cc
add eax, esi
add ecx, esi
test dx, dx
jne 0x4963a8
xor eax, eax
jmp 0x4963d1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4964d3
mov ecx, 0x583f08
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x496408
test dx, dx
je 0x496404
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x496408
add eax, esi
add ecx, esi
test dx, dx
jne 0x4963e4
xor eax, eax
jmp 0x49640d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4964d3
cmp dword [ebp + 0xc], 0
jne 0x496436
lea eax, [ebp - 0x234]
push str.desktop.ini
push eax
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
je 0x4964d3
push ebx
lea eax, [ebp - 0x264]
push eax
call fcn.004082ed
push 0x5c
lea eax, [ebp - 0x264]
call fcn.00432561
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0041a591
mov edi, dword [ebp - 0x264]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x49647f
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x260], 0x10
je 0x4964a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004962f9
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4964d3
cmp dword [ebp + 0x10], 0
je 0x4964cc
lea eax, [ebp - 0x234]
push str.index.dat
push eax
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
jne 0x4964cc
lea eax, [ebp - 0x234]
push eax
mov ecx, ebx
call fcn.00496502
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49639d
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x49637c
Function at 0x496502
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fc34
mov eax, dword fs:[0]
push eax
mov eax, 0x2720
call fcn.005482e0
mov eax, dword [0x5afee0]
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 eax, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x2724], eax
mov eax, dword [0x5beb28]
mov ecx, 0x5beb28
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2728], eax
mov esi, 0x2710
xor edi, edi
push esi
lea eax, [ebp - 0x2720]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00537010
add esp, 0xc
push ebx
lea eax, [ebp - 0x2728]
push eax
call fcn.004082ed
push 0x5c
lea eax, [ebp - 0x2728]
call fcn.00432561
push dword [ebp - 0x2724]
lea eax, [ebp - 0x2728]
push eax
call fcn.0041a591
push edi
push 0x80
push 3
push edi
push 3
push 0x40000000
push dword [ebp - 0x2728]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2724], eax
cmp eax, 0xffffffff
jne 0x4965ed
mov eax, dword [ebp - 0x2728]
add eax, 0xfffffff0
call fcn.00407d09
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.0052f7d0
leave
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push 0x40
push dword [ebp - 0x2724]
mov ebx, eax
sub ebx, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, edi
jbe 0x496642
lea eax, [ebp - 0x272c]
push edi
push eax
lea eax, [ebp - 0x2720]
cmp ebx, esi
jbe 0x496634
push esi
push eax
push dword [ebp - 0x2724]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, esi
jne 0x49660e
jmp 0x496642
push ebx
push eax
push dword [ebp - 0x2724]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x2724]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
jmp 0x4965c3
Function at 0x49699b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x4969c1
xor eax, eax
inc eax
jmp 0x496a94
and dword [ebp - 0x214], 0
mov eax, ebx
push esi
mov esi, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4969d0
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x4969ec
xor eax, eax
jmp 0x496a93
xor eax, eax
push edi
cmp ax, word [ebx]
je 0x496a8c
push 0x57c664
push esi
call fcn.0053314a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x496a1e
push 0x57f5c8
push esi
call fcn.0053314a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x496a8c
mov esi, edi
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x496a7e
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00537010
push esi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00533226
add esp, 0x18
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x496a78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], 1
cmp eax, 0xb7
je 0x496a7e
mov dword [ebp - 0x214], esi
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x4969f8
mov eax, dword [ebp - 0x214]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052f7d0
leave
ret

Function at 0x496aa0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, ecx
push ebx
mov dword [ebp - 0x214], ebx
call esi
test eax, eax
jne 0x496ad7
inc eax
jmp 0x496b97
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push ebx
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
je 0x496b02
mov dword [ebp - 0x210], 1
jmp 0x496b90
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00537010
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push str._s.tmp
push 0x103
push eax
call fcn.00532a01
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x496b60
push 0x80
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call esi
test eax, eax
je 0x496b90
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], edi
call esi
mov eax, dword [ebp - 0x210]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret
Function at 0x496ba5
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x41c], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x418], ebx
test eax, eax
je 0x496d0c
test ebx, ebx
je 0x496d0c
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00537010
push ebx
push 0x57cb68
mov edi, 0x103
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00532a01
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x496c5f
lea ebx, [ebp - 0x414]
call fcn.0049699b
test eax, eax
je 0x496d02
mov ebx, dword [ebp - 0x418]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00537010
push ebx
push str._s.old.bak
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00532a01
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x496ca8
lea ecx, [ebp - 0x20c]
call fcn.00496aa0
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
push ebx
mov dword [ebp - 0x418], eax
call esi
test eax, eax
jne 0x496cd9
push eax
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x418], 0
je 0x496d02
cmp dword [ebp - 0x41c], 0
jne 0x496cf7
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
jmp 0x496d02
lea ecx, [ebp - 0x20c]
call fcn.00496aa0
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
jmp 0x496d0e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret

Function at 0x496d1b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x57c6dc
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
call fcn.00532206
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp edi, ebx
je 0x496dc3
push esi
push 2
push ebx
push edi
call fcn.00530734
push edi
call fcn.005327b7
push ebx
push ebx
push edi
mov esi, eax
call fcn.00530734
lea ebx, [esi + 1]
push ebx
call fcn.0052f69b
mov edi, eax
add esp, 0x20
test edi, edi
je 0x496db9
push ebx
push 0
push edi
call fcn.00537010
push dword [ebp - 4]
push esi
push 1
push edi
call fcn.005325fd
push 0x57fd5c
push dword [ebp + 0xc]
call fcn.00532206
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x496db2
push ebx
push esi
xor esi, esi
inc esi
push esi
push edi
call fcn.005303c1
push ebx
call fcn.0052fd5d
add esp, 0x14
mov dword [ebp - 8], esi
push edi
call fcn.00530cbd
pop ecx
push dword [ebp - 4]
call fcn.0052fd5d
pop ecx
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret