joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d6d0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f9f90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x68da90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edx, str.UserData
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10]
call fcn.0049d5c0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x49d73c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test edi, edi
je 0x49d796
push edi
lea ecx, [ebp - 0x14]
call fcn.00404020
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.0049e180
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d77f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jmp 0x49d7be
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004042d0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [esi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d7c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49d7e0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f9fb8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x68da90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edx, str.Update
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
call fcn.0049d5c0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x49d849
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004042d0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [esi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d87b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49d8c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f9feb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x68da90]
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 dword [ebp - 0x244], edx
mov ebx, ecx
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x49d9c7
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x49d9c7
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.005c1b40
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x49d9c0
or edi, 0xffffffff
nop dword [eax]
mov edx, dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
call fcn.0049da20
lea edx, [ebp - 0x240]
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.0049e460
test eax, eax
je 0x49d98a
mov edx, ebx
lea ecx, [ebp - 0x240]
call fcn.0049e460
test eax, eax
jne 0x49d9e5
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d9ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x49d950
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
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.005a8a55
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x244]
test ecx, ecx
je 0x49d9f7
mov eax, dword [ebp - 0x234]
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x49da19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x49d9c9
Function at 0x49da20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa02b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x68da90]
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, edx
mov dword [ebp - 0x21c], edi
mov ebx, ecx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x22c], 0
call fcn.004039e0
mov ecx, eax
test ecx, ecx
jne 0x49da7d
push 0x80004005
call fcn.00404200
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005c1b40
add esp, 0xc
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x49db08
push dword [ebp - 0x21c]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x49db08
add esi, 0xfffffff0
mov ecx, esi
call fcn.004042d0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49dc03
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x49dc03
lea eax, [ebp - 0x228]
mov dword [ebp - 0x21c], 0
push eax
push 4
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 0
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x49db53
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x49db99
mov eax, dword [0x6ac8e0]
test eax, eax
jne 0x49db78
push str.QueryFullProcessImageNameW
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6ac8e0], eax
mov dword [ebp - 0x224], 0x104
test eax, eax
je 0x49db99
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push 0
push edi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49dbb0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00403f20
mov esi, dword [ebp - 0x220]
add esi, 0xfffffff0
mov ecx, esi
call fcn.004042d0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49dc03
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x49dc30
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x49dca0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x49dfc0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f56f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x68da90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x49e084
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x49e084
push edi
call esi
test eax, eax
je 0x49e084
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x49e024
push edi
call ebx
test eax, eax
jne 0x49e084
lea ecx, [ebp - 0x10]
call fcn.00403730
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push 0x662fec
push eax
call fcn.00409f70
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call ebx
push 1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push 4
push 0
push esi
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49e084
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49e560
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49e58f
push 0x662ffc
push eax
call fcn.005c1484
add esp, 8
test eax, eax
je 0x49e58f
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
je 0x49e5ba
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49e633
push 0x663004
push eax
call fcn.005c1484
add esp, 8
test eax, eax
je 0x49e633
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
jne 0x49e633
xorps xmm0, xmm0
lea eax, [ebp - 8]
push 3
push eax
mov ecx, esi
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0x1c], xmm0
call fcn.00447430
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 8]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x49e603
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x49e633
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x49e619
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
test edi, edi
je 0x49e628
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a1c20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa640
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x68da90]
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
lea eax, [edi + 0x9c]
push eax
lea edx, [edi + 0x6c]
lea ecx, [ebp - 0x28]
call fcn.004a3e50
push 0x6acf30
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004a3e00
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a1c91
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409d50
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
push 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
jne 0x4a1cd8
xor bl, bl
jmp 0x4a1d9c
push 0
push eax
mov byte [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4a1d7d
test bl, 0x1f
jne 0x4a1d7d
mov ecx, ebx
lea esi, [edi + 0xc4]
shr ecx, 5
push ecx
mov ecx, esi
call fcn.004a3a10
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push ebx
push dword [esi]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a1d34
cmp ebx, dword [ebp - 0x48]
je 0x4a1d34
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x4a1d64
mov eax, dword [esi + 4]
xor edx, edx
sub eax, dword [esi]
sar eax, 5
test eax, eax
je 0x4a1d64
xor ecx, ecx
mov eax, dword [esi]
lea ecx, [ecx + 0x20]
inc edx
mov dword [ecx + eax - 0x20], edi
mov eax, dword [esi]
mov dword [ecx + eax - 0x1c], 0
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 5
cmp edx, eax
jb 0x4a1d44
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [ebp - 0x44]
movzx ecx, cl
mov eax, dword [eax + 0xc]
cmp eax, dword [edi + 0x124]
cmovne ecx, edx
mov dword [ebp - 0x44], ecx
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi + 0xc8]
sub ebx, dword [edi + 0xc4]
and ebx, 0xffffffe0
neg ebx
sbb bl, bl
and bl, byte [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4a1db1
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00409d50
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.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x4a1dd0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa678
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x68da90]
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, ecx
mov eax, dword [esi + 0xc4]
cmp eax, dword [esi + 0xc8]
jne 0x4a1e12
xor al, al
jmp 0x4a1ee8
lea eax, [esi + 0x9c]
push eax
lea edx, [esi + 0x6c]
lea ecx, [ebp - 0x40]
call fcn.004a3e50
push 0x6acf30
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004a3e00
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, 8
jb 0x4a1e52
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409d50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a1ecf
mov edi, dword [esi + 0xc8]
lea eax, [ebp - 0x44]
sub edi, dword [esi + 0xc4]
push 0
push eax
and edi, 0xffffffe0
mov dword [ebp - 0x44], 0
push edi
push dword [esi + 0xc4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4a1eb9
cmp edi, dword [ebp - 0x44]
je 0x4a1ecf
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
jmp 0x4a1ed1
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4a1ee6
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409d50
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.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x4a2000
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa6ae
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x6acf30
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004a3e50
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x6acf48
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.004a3e50
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4a20a3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a2086
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409d50
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00410ec0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4a20b8
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409d50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a20df
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x4a2100
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x68da90]
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
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00409590
xor eax, eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
setne al
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4a2181
push 1
push 0x65960c
lea ecx, [ebp - 0x28]
call fcn.00410400
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], eax
push 1
push 3
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], 0x5c
call fcn.004753b0
mov esi, eax
cmp esi, 0xffffffff
je 0x4a2216
mov dword [ebp - 0x44], 0x5c
nop word [eax + eax]
push esi
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004a3b80
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00477b70
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4a21f4
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409d50
push 1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.004753b0
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a21c0
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x54]
mov eax, 0x2aaaaaab
sub ecx, ebx
xor edi, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x44], eax
je 0x4a226e
mov esi, ebx
cmp dword [esi + 0x14], 8
jb 0x4a223f
mov eax, dword [esi]
jmp 0x4a2241
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a2265
cmp dword [esi + 0x14], 8
jb 0x4a2256
mov eax, dword [esi]
jmp 0x4a2258
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4a22d6
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0x44]
jb 0x4a2235
mov esi, dword [ebp - 0x4c]
test ebx, ebx
je 0x4a22a3
push dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
push ecx
mov ecx, ebx
call fcn.004787b0
mov ecx, dword [ebp - 0x48]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
call fcn.004106a0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4a22b8
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409d50
mov eax, esi
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.005a8a55
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x4a2271
Function at 0x4a23b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa728
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ecx + 0x6c]
mov dword [ecx + 0xc8], eax
lea eax, [ecx + 0x9c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004a3e50
push 0x6acf30
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004a3e00
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, 8
jb 0x4a2425
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409d50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
cmp eax, 1
sete bl
cmp ecx, 8
jb 0x4a2452
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409d50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x4a2470
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa75b
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x830], edx
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x818], 0xf
movsd qword [ebp - 0x838], xmm0
mov dword [ebp - 0x81c], 0
mov byte [ebp - 0x82c], 0
lea edx, [ebp - 0x82c]
mov dword [ebp - 4], 0
call fcn.004a22e0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x83c], eax
call fcn.004b97a0
cmp dword [ebp - 0x818], 0x10
lea ecx, [ebp - 0x82c]
mov esi, eax
cmovae ecx, dword [ebp - 0x82c]
push ecx
push 0x2712
push esi
mov dword [ebp - 0x840], esi
call fcn.004b9800
push 1
push 0x2c
push esi
call fcn.004b9800
push 0x6631ac
push 0x2734
push esi
call fcn.004b9800
push 1
push 0x34
push esi
call fcn.004b9800
push 1
push 0x2a
push esi
call fcn.004b9800
push 0x14
push 0x44
push esi
call fcn.004b9800
add esp, 0x48
mov ecx, edi
push 5
push 0
push 0x663150
call fcn.004753b0
test eax, eax
jne 0x4a2583
push eax
push 0x40
push esi
call fcn.004b9800
push 0
push 0x51
push esi
call fcn.004b9800
add esp, 0x18
push 0x1e
push 0xd
push esi
call fcn.004b9800
push 0x1e
push 0x4e
push esi
call fcn.004b9800
push 0x1e
push 0x5c
push esi
call fcn.004b9800
push esi
call fcn.004b97e0
mov ebx, eax
add esp, 0x28
test ebx, ebx
jne 0x4a25db
lea eax, [ebp - 0x838]
push eax
push 0x30000f
push esi
call fcn.004b9780
push ebx
push 0x200002
push esi
call fcn.004b9780
movsd xmm1, qword [ebp - 0x838]
add esp, 0x18
jmp 0x4a25e6
xorps xmm1, xmm1
movsd qword [ebp - 0x838], xmm1
cmp dword [ebp - 0x830], 0
je 0x4a2693
movsd xmm0, qword [0x668928]
comisd xmm0, xmm1
jbe 0x4a2693
push 0x800
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.005c1b40
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4a2623
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x83c]
push eax
push 0
push ebx
push str.xd_getUrlFileSize_error:_d_http:_d_tic:_d_url:_s
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.00412290
add esp, 0x1c
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp word [ebp - 0x814], 0
jne 0x4a2668
xor ecx, ecx
jmp 0x4a2680
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2671
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x830]
lea eax, [ebp - 0x814]
push eax
call fcn.004090e0
push esi
call fcn.004b9760
add esp, 4
movsd xmm0, qword [ebp - 0x838]
mov eax, dword [ebp - 0x818]
movsd qword [ebp - 0x844], xmm0
cmp eax, 0x10
jb 0x4a26d2
inc eax
lea ecx, [ebp - 0x82c]
push eax
push dword [ebp - 0x82c]
call fcn.00405210
movsd xmm0, qword [ebp - 0x844]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret