joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4749d0
Capabilities:
Check os version
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dace8
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x66a9c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
or edi, 0xffffffff
mov dword [ebp - 4], 0
test dl, dl
jne 0x474a1e
sub esp, 8
call fcn.00496500
test al, al
jne 0x474a1e
xor esi, esi
jmp 0x474b59
push ecx
mov esi, esp
mov dword [ebp - 0x134], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004073a0
add eax, 0x10
mov ecx, reloc.WS2_32.dll_accept
mov dword [esi], eax
call fcn.004734b0
mov dword [ebp - 0x134], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004073a0
add eax, 0x10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.004734b0
add esp, 4
lea eax, [ebp - 0x130]
push 0x11c
push 0
push eax
call fcn.005a7400
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x12c], 0xa
je 0x474af0
call fcn.00474c20
test eax, eax
jne 0x474af0
call fcn.00474ba0
test eax, eax
je 0x474b40
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
lea ecx, [ebp - 0x134]
call fcn.00406540
push dword [ebp - 0x134]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x134]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474b40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x474b40
push ecx
mov esi, esp
mov dword [ebp - 0x134], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004073a0
add eax, 0x10
mov ecx, reloc.WS2_32.dll_accept
mov dword [esi], eax
call fcn.00473a80
mov dword [ebp - 0x134], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004073a0
add eax, 0x10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.00473a80
add esp, 4
mov edx, str.MasterPDF
call fcn.00474560
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x474b78
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058e39a
mov esp, ebp
pop ebp
ret

Function at 0x474ba0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x66a9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.005a7400
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jne 0x474c05
cmp dword [ebp - 0x118], 1
jne 0x474c05
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058e39a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0058e39a
mov esp, ebp
pop ebp
ret
Function at 0x474c20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x66a9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.005a7400
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jne 0x474c8c
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x474c79
cmp eax, 3
jne 0x474c8c
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058e39a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0058e39a
mov esp, ebp
pop ebp
ret

Function at 0x475b70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5daf00
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x66a9c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.005a7400
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x104
push eax
push 0x64677c
push dword [ebp + 0xc]
push 0x63afd8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x475c1a
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x475bf5
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00407470
mov edi, 1
jmp 0x475c1c
xor edi, edi
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x475c3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x475c5c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058e39a
mov esp, ebp
pop ebp
ret

Function at 0x477670
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4776a1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x477690
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x47e210
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5c10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x66a9c4]
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.MasterPDFData
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10]
call fcn.00481830
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47e27c
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 0x47e2d6
push edi
lea ecx, [ebp - 0x14]
call fcn.00406540
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.0046e170
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 0x47e2bf
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 0x47e2fe
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004073a0
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 0x47e308
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 0x47e320
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5c10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x66a9c4]
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.0047e210
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47e38c
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 0x47e3e6
push edi
lea ecx, [ebp - 0x14]
call fcn.00406540
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.0046e170
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 0x47e3cf
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 0x47e40e
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004073a0
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 0x47e418
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 0x47e430
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db698
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x66a9c4]
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.0047e210
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47e499
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.004073a0
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 0x47e4cb
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 0x47ec30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db700
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x66a9c4]
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.00481160
push 0x685784
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00481110
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x47eca1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408200
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 SysReAllocStringLen
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
jne 0x47ece8
xor bl, bl
jmp 0x47edac
push 0
push eax
mov byte [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47ed8d
test bl, 0x1f
jne 0x47ed8d
mov ecx, ebx
lea esi, [edi + 0xc4]
shr ecx, 5
push ecx
mov ecx, esi
call fcn.00480b00
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 0x47ed44
cmp ebx, dword [ebp - 0x48]
je 0x47ed44
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x47ed74
mov eax, dword [esi + 4]
xor edx, edx
sub eax, dword [esi]
sar eax, 5
test eax, eax
je 0x47ed74
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 0x47ed54
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 0x47edc1
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00408200
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.0058e39a
mov esp, ebp
pop ebp
ret
Function at 0x47ede0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db738
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x66a9c4]
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 0x47ee22
xor al, al
jmp 0x47eef8
lea eax, [esi + 0x9c]
push eax
lea edx, [esi + 0x6c]
lea ecx, [ebp - 0x40]
call fcn.00481160
push 0x685784
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00481110
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, 8
jb 0x47ee62
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408200
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 0x47eedf
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 0x47eec9
cmp edi, dword [ebp - 0x44]
je 0x47eedf
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 0x47eee1
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x47eef6
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00408200
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.0058e39a
mov esp, ebp
pop ebp
ret
Function at 0x47f010
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db76e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x66a9c4]
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 0x685784
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00481160
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 0x68579c
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00481160
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x47f0b3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x47f096
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408200
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.0040ee70
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47f0c8
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408200
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 0x47f0ef
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058e39a
mov esp, ebp
pop ebp
ret
Function at 0x47f110
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x66a9c4]
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.004075f0
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 0x47f191
push 1
push 0x639e58
lea ecx, [ebp - 0x28]
call fcn.0040e000
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.00480db0
mov esi, eax
cmp esi, 0xffffffff
je 0x47f226
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.00480c70
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00480a60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47f204
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408200
push 1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.00480db0
mov esi, eax
cmp esi, 0xffffffff
jne 0x47f1d0
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 0x47f27e
mov esi, ebx
cmp dword [esi + 0x14], 8
jb 0x47f24f
mov eax, dword [esi]
jmp 0x47f251
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47f275
cmp dword [esi + 0x14], 8
jb 0x47f266
mov eax, dword [esi]
jmp 0x47f268
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x47f2e6
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0x44]
jb 0x47f245
mov esi, dword [ebp - 0x4c]
test ebx, ebx
je 0x47f2b3
push dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
push ecx
mov ecx, ebx
call fcn.00481270
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.0040e2a0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x47f2c8
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00408200
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.0058e39a
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x47f281
Function at 0x47f3c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x66a9c4]
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.00481160
push 0x685784
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00481110
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, 8
jb 0x47f435
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408200
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 0x47f462
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00408200
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.0058e39a
mov esp, ebp
pop ebp
ret
Function at 0x47f480
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db81b
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x66a9c4]
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.0047f2f0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x83c], eax
call fcn.004a4110
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.004a4170
push 1
push 0x2c
push esi
call fcn.004a4170
push 0x646dc8
push 0x2734
push esi
call fcn.004a4170
push 1
push 0x34
push esi
call fcn.004a4170
push 1
push 0x2a
push esi
call fcn.004a4170
push 0x14
push 0x44
push esi
call fcn.004a4170
add esp, 0x48
mov ecx, edi
push 5
push 0
push str.https
call fcn.00480db0
test eax, eax
jne 0x47f593
push eax
push 0x40
push esi
call fcn.004a4170
push 0
push 0x51
push esi
call fcn.004a4170
add esp, 0x18
push 0x1e
push 0xd
push esi
call fcn.004a4170
push 0x1e
push 0x4e
push esi
call fcn.004a4170
push 0x1e
push 0x5c
push esi
call fcn.004a4170
push esi
call fcn.004a4150
mov ebx, eax
add esp, 0x28
test ebx, ebx
jne 0x47f5eb
lea eax, [ebp - 0x838]
push eax
push 0x30000f
push esi
call fcn.004a40f0
push ebx
push 0x200002
push esi
call fcn.004a40f0
movsd xmm1, qword [ebp - 0x838]
add esp, 0x18
jmp 0x47f5f6
xorps xmm1, xmm1
movsd qword [ebp - 0x838], xmm1
cmp dword [ebp - 0x830], 0
je 0x47f6a3
movsd xmm0, qword [0x647f48]
comisd xmm0, xmm1
jbe 0x47f6a3
push 0x800
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.005a7400
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x47f633
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.00408890
add esp, 0x1c
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp word [ebp - 0x814], 0
jne 0x47f678
xor ecx, ecx
jmp 0x47f690
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f681
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x830]
lea eax, [ebp - 0x814]
push eax
call fcn.00406d90
push esi
call fcn.004a40d0
add esp, 4
movsd xmm0, qword [ebp - 0x838]
mov eax, dword [ebp - 0x818]
movsd qword [ebp - 0x844], xmm0
cmp eax, 0x10
jb 0x47f6e2
inc eax
lea ecx, [ebp - 0x82c]
push eax
push dword [ebp - 0x82c]
call fcn.00407520
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.0058e39a
mov esp, ebp
pop ebp
ret