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

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x4fb2f0
cmp word [eax], bx
je 0x4fb2f0
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x4fb2ec
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x4fb2e1
push edi
push dword [esp + 0x20]
call fcn.004fb64a
mov edi, eax
test edi, edi
je 0x4fb2e0
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x4fb1c0
push 2
jmp 0x4fb1c4
push dword [esp + 0x20]
push ebx
call fcn.004fbad9
mov esi, eax
test esi, esi
je 0x4fb2d9
cmp ebx, 0xffffffff
jne 0x4fb1db
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x72a684]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x4fb21c
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x4fb22a
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.005490a0
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x4fb2d5
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x4fb255
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.00548a30
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x4fb2c7
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x4fb299
push eax
push dword [esp + 0x1c]
call fcn.004fb6f5
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x4fb2a1
push 1
jmp 0x4fb2a3
push 0
push eax
push edi
call fcn.00548d00
add esp, 0xc
test eax, eax
je 0x4fb2bb
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x4fb246
jmp 0x4fb2d5
push edi
call fcn.00548ce0
pop ecx
mov dword [esi + 0x18], eax
jmp 0x4fb2ce
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.004fb7af
and dword [esi + 0x2c], 0
push edi
call fcn.00548e40
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x4fb2f2
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x4fbc99
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x4fbd31
push edi
push 0x7310c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x72b5a0]
test edi, edi
je 0x4fbd05
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4fbcfe
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x72b5a0
call fcn.0054212a
pop ecx
pop ecx
jmp 0x4fbd00
mov edi, dword [edi]
test edi, edi
jne 0x4fbcd5
pop ebx
mov eax, dword [0x725f28]
mov esi, eax
inc eax
push 0x10
push 0x72b5a0
mov dword [0x725f28], eax
call fcn.0054216a
pop ecx
pop ecx
push 0x7310c8
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x4fbd39
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004fbc4d
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x7310c8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x72b5a0]
jmp 0x4fbd6a
cmp dword [esi + 0xc], edi
je 0x4fbd70
mov esi, dword [esi]
test esi, esi
jne 0x4fbd63
jmp 0x4fbd88
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x72b5a0
call fcn.0054212a
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x4fc2b1
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x4fc3ac
push edi
push dword [esp + 0x1c]
push dword [0x7310e8]
call fcn.00541e01
mov edi, eax
test edi, edi
je 0x4fc3ab
mov eax, dword [edi + 4]
push ebx
mov ebx, dword [esp + 0x24]
push esi
imul esi, ebx, 0x24
cmp dword [eax + esi], 2
jne 0x4fc2fe
mov eax, dword [eax + esi + 0x18]
test eax, eax
je 0x4fc2fe
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 4]
mov eax, dword [eax + esi + 0x20]
test eax, eax
je 0x4fc317
push eax
call fcn.0053b8b7
mov eax, dword [edi + 4]
and dword [eax + esi + 0x20], 0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x30]
push ebp
mov dword [esi + eax], 1
mov eax, dword [edi + 4]
mov dword [eax + esi + 8], ecx
mov eax, dword [edi + 4]
mov dword [eax + esi + 0x1c], ebp
call fcn.0053b9a8
test eax, eax
je 0x4fc350
push 0
push 0
push ebp
call fcn.0053b51d
mov ecx, dword [edi + 4]
mov dword [ecx + esi + 0x20], eax
jmp 0x4fc358
mov eax, dword [edi + 4]
and dword [eax + esi + 0x20], 0
mov eax, dword [esp + 0x30]
test al, 1
je 0x4fc368
or ebx, 0x200
jmp 0x4fc372
test al, 2
je 0x4fc372
or ebx, 0x100
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, ebx
push 0
or eax, 0x1000
push eax
push 0x40b
push dword [edi]
call esi
lea eax, [esp + 0x10]
push eax
push ebx
push 0x40a
push dword [edi]
call esi
push 1
lea eax, [esp + 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10
ret 0x10

Function at 0x502ab4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x502b3a
push edi
push dword [ebp + 8]
push dword [0x7310ec]
call fcn.00541e01
mov edi, eax
test edi, edi
je 0x502b39
cmp dword [ebp + 0x10], 0x19
jne 0x502afa
push 0
lea eax, [ebp - 4]
push eax
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
add eax, eax
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x502b39
cmp dword [ebp + 0x10], 2
push esi
jne 0x502b08
call fcn.005e2a20
jmp 0x502b0d
call fcn.005e2c00
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 2
push esi
jne 0x502b34
call fcn.005e2a10
jmp 0x502b39
call fcn.005e2bf0
pop edi
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x503368
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x5033bd
push dword [esp + 0x10]
push 0x5032e7
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x72b800]
test esi, esi
je 0x503416
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x5033b5
cmp byte [esi + 0x10], 0
je 0x5033b5
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x503391
jmp 0x503416
mov esi, dword [0x72b800]
test esi, esi
je 0x503416
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x50340f
cmp byte [esi + 0x11], 0
je 0x5033eb
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x503402
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x72b800
call fcn.0054212a
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x5033ca
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x51e91f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x51e981
cmp word [esi], di
je 0x51e981
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00567550
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.00567800
add esp, 0x10
test eax, eax
jne 0x51e980
push 0x24
push 8
push dword [0x72a684]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x522224
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x522173
push 0x10
push 0x2c
call fcn.00541ed4
push 0
push 0
push 8
mov dword [0x72bb68], eax
call fcn.0054182c
cmp word [0x72bb60], 0
mov dword [0x7311a4], eax
jne 0x522309
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x52227c
mov word [0x72bb60], di
jmp 0x522284
xor eax, eax
mov word [0x72bb60], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x72bb7c], eax
test eax, eax
je 0x522308
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x600efc
push eax
call esi
push 0x600f08
push dword [0x72bb7c]
mov dword [0x72bb6c], eax
call esi
push str.getnameinfo
push dword [0x72bb7c]
mov dword [0x72bb70], eax
call esi
push str.WSAStringToAddressA
push dword [0x72bb7c]
mov dword [0x72bb74], eax
call esi
cmp dword [0x72bb6c], 0
mov dword [0x72bb78], eax
pop esi
je 0x522308
cmp dword [0x72bb70], 0
je 0x522308
cmp dword [0x72bb74], 0
je 0x522308
test eax, eax
je 0x522308
mov dword [0x72bb64], edi
pop edi
add esp, 0x190
ret

Function at 0x522524
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
xor eax, eax
inc eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
cmp dword [edi], eax
jne 0x5225a7
mov esi, dword [edi + 8]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], esi
push eax
lea eax, [esi + 1]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x52259e
je 0x5225a3
lea eax, [ebp - 0x120]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5225a3
lea eax, [ebp + 8]
push eax
push 0x4004667f
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x52259e
cmp dword [ebp + 8], ebx
je 0x52259e
push 2
jmp 0x5225a0
push 4
pop esi
jmp 0x522601
mov esi, ebx
jmp 0x522601
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x800
lea eax, [ebp - 0x920]
push eax
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp + 8], eax
test eax, eax
jle 0x522601
push 2
pop esi
push eax
push ebx
push dword [0x72a684]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
push ecx
mov dword [edi + 0x30], ecx
lea ecx, [ebp - 0x920]
push ecx
push eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x34], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x52260c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi], 1
jne 0x522632
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
jmp 0x52266f
cmp dword [esi + 0x2c], ebx
je 0x52266f
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x30]
jle 0x522642
mov edi, dword [esi + 0x30]
push edi
push dword [esi + 0x34]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x30], edi
add esp, 0xc
add dword [esi + 0x34], edi
cmp dword [esi + 0x30], ebx
jne 0x52266f
push dword [esi + 0x2c]
push ebx
push dword [0x72a684]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x2c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x5226c6
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0xff
push eax
mov dword [0x7311a8], esi
mov dword [0x7311b8], esi
mov dword [0x7311bc], edi
mov dword [0x7311c0], esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x522772
cmp edi, 0x10000000
jne 0x52274e
cmp dword [0x72bb64], esi
je 0x522772
mov eax, dword [0x72bb80]
test eax, eax
je 0x52272a
push eax
call dword [0x72bb70]
mov dword [0x72bb80], esi
push 0x72bb80
push esi
push esi
lea eax, [ebp - 0x100]
push eax
call dword [0x72bb6c]
test eax, eax
jne 0x522772
mov eax, dword [0x72bb80]
mov dword [0x7311c0], eax
jmp 0x52276f
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x522772
push 0x10
push eax
push 0x7311ac
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x522fa2
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x5230ea
xor ecx, ecx
cmp word [eax], cx
je 0x5230ea
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x522ffb
cmp eax, 3
jne 0x523035
cmp word [esp + 0xa], 0x3a
jne 0x523035
cmp eax, 2
jne 0x523019
lea eax, [esp + 8]
push 0x600f88
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5230ea
push 0xfffffffffffffffe
pop edi
jmp 0x5230ea
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x52304a
cmp ax, bx
jne 0x523054
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x52303d
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x523093
test byte [esp + 0x21c], 0x10
je 0x52307a
push 0xfffffffffffffffe
pop edi
jmp 0x52308a
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x5230e8
cmp word [esp + 0x10], bp
jne 0x5230a1
cmp word [esp + 0x12], bp
je 0x5230c0
cmp word [esp + 0x10], bx
jne 0x5230af
cmp word [esp + 0x12], bx
je 0x5230c0
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x5230e8
cmp word [esp + 0x12], ax
jne 0x5230e8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x5230d5
test al, 0x10
je 0x5230e8
jmp 0x5230e5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5230e8
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x5230f9
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x523119
cmp dword [esp + 8], 0
je 0x523119
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x52311b
xor eax, eax
ret 8

Function at 0x52311e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x523147
test byte [esp + 8], 2
je 0x52313b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x523149
xor eax, eax
ret 8
Function at 0x5232cb
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x5233a0
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x52339f
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00536670
push esi
mov word [ebp - 0x20], ax
call fcn.0053662d
push esi
mov word [ebp - 0x1e], ax
call fcn.005365ca
push esi
mov word [ebp - 0x1c], ax
call fcn.0053664f
push esi
mov word [ebp - 0x1a], ax
call fcn.005365eb
push esi
mov word [ebp - 0x18], ax
call fcn.0053660c
push esi
mov word [ebp - 0x16], ax
call fcn.005360a9
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x52337e
lea eax, [ebp - 8]
jmp 0x52338c
cmp dword [ebp + 0xc], 2
jne 0x523389
lea ecx, [ebp - 8]
jmp 0x52338c
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x52341b
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x72bb90]
push esi
test eax, eax
jne 0x523440
push fcn.00523548
push 0x10
push 0x258
call fcn.00541ed4
mov dword [0x72bb90], eax
push dword [esp + 0xc]
push eax
call fcn.00541e40
mov esi, eax
test esi, esi
je 0x523541
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x523462
mov edi, 0x5ecbe8
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x523472
xor eax, eax
cmp word [ebx], ax
jne 0x523477
mov ebx, 0x600f8c
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x72a684]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x523528
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x5234d8
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x5234dc
push 0x600f88
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x5234dc
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x523500
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x523516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x523514
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x72a684]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x52353f
cmp dword [esp + 0x14], 0xffffffff
je 0x523533
mov esi, dword [esp + 0x14]
push esi
push dword [0x72bb90]
call fcn.00541db2
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x5235be
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x5235cc
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x5235cf
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x523647
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x523628
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x523625
cmp ecx, 0x5c
je 0x523625
cmp ecx, 0x2f
jne 0x523632
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x523612
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x523649
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x523a70
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x523aac
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x523f30
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push ebx
push dword [0x7311c4]
mov dword [esp + 0x10], 0
call fcn.00541e01
mov ebp, eax
test ebp, ebp
je 0x52408c
push esi
push edi
push ebx
call fcn.005248d0
cmp dword [ebp + 4], 0
mov esi, eax
mov edi, edx
je 0x523f7c
push 4
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00524940
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x523f97
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, 2
jl 0x523fc5
lea edx, [esp + 0x18]
mov eax, 0xfeff
cmp word [edx], ax
jne 0x523fc5
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
pop ecx
ret 4
cmp ecx, 3
jl 0x523ff6
lea edx, [esp + 0x18]
cmp word [edx], 0xbbef
jne 0x523ff6
cmp byte [edx + 2], 0xbf
jne 0x523ff6
add esi, 3
adc edi, 0
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret 4
cmp ecx, 2
jl 0x524024
lea edx, [esp + 0x18]
mov eax, 0xfffe
cmp word [edx], ax
jne 0x524024
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret 4
cmp ecx, 4
jl 0x524077
lea eax, [esp + 0x18]
cmp dword [eax], 0xfeff
jne 0x524050
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
cmp dword [eax], 0xfffe0000
jne 0x524077
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret 4
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4

Function at 0x5241d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x7311c4]
call fcn.00541e01
mov esi, eax
test esi, esi
je 0x52424f
cmp dword [esi + 4], 0
je 0x524220
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00524940
test eax, eax
je 0x524214
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x52425a
cmp dword [esp + 8], 0
je 0x52425a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4