joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41174d
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xa30
push ebx
mov ebx, dword [esp + 0xa38]
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
push ebp
push esi
push edi
test ebx, ebx
je 0x411949
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push ebp
push SysReAllocStringLen
push ebx
mov dword [esp + 0x30], ebp
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x411949
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4117b8
cmp dword [esp + 0x24], ebp
jne 0x411800
cmp dword [esp + 0x20], 0x10000000
ja 0x411800
push 0x4bb57c
push dword [0x4ba2a8]
lea eax, [esp + 0x40]
push dword [0x4ba090]
push 0x472e18
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401ea4
add esp, 0x1c
lea eax, [esp + 0x38]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41180c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411949
push 2
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
push ebp
push edi
movlpd qword [esp + 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x50000
push eax
push edi
call ebp
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x14]
jne 0x41184b
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call ebp
push ebx
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.004244ac
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push 0x4698c0
lea edx, [eax + eax]
call fcn.0044d77a
add esp, 0x10
lea eax, [esp + 0x10]
xor ebx, ebx
push ebx
push eax
mov eax, dword [esp + 0x20]
add eax, eax
push eax
lea eax, [esp + 0x44]
push eax
push edi
call ebp
push ebx
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
jmp 0x41191f
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x41193d
xor eax, eax
mov ecx, eax
test edx, edx
je 0x41190b
mov eax, ebx
and eax, 0xf
mov al, byte [eax*4 + 0x472e30]
add al, byte [esp + 0x14]
xor byte [esp + ecx + 0x240], al
inc ebx
movsx eax, byte [esp + ecx + 0x240]
inc ecx
mov dword [esp + 0x14], eax
cmp ecx, edx
jb 0x4118e0
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push edx
lea eax, [esp + 0x24c]
push eax
push edi
call ebp
xor eax, eax
push eax
lea eax, [esp + 0x20]
push eax
push 0x800
lea eax, [esp + 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4118d0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa30
ret 4
Function at 0x4129e6
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x4129f6
push 0xd
pop eax
jmp 0x412a3b
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x18], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x412a08
sub ecx, ebp
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x412a03
push esi
push edx
push 7
xor eax, eax
push eax
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x412f99
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
push ebx
mov ebx, ecx
lea ecx, [esp + 8]
push ebp
push esi
xor ebp, ebp
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0x10], ebp
push eax
push dword [esp + 0x230]
mov dword [esp + 0x1c], ebp
push dword [ebx]
mov dword [esp + 0x24], ebp
call fcn.00412f3d
mov esi, eax
test esi, esi
jne 0x413068
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x41303d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00412f99
mov esi, eax
test esi, esi
jne 0x413068
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call ebp
test eax, eax
je 0x413002
jmp 0x41303f
xor esi, esi
cmp dword [esp + 0x10], 0
je 0x413054
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
push dword [esp + 0x22c]
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.00413125
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x413079
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 4
Function at 0x413992
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xor ebp, ebp
push edi
push 0x60
push ebp
push dword [esp + 0x428]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call esi
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x4139e2
push eax
push ebp
push dword [esp + 0x428]
call esi
mov edi, eax
test edi, edi
jne 0x4139e2
call fcn.0041250d
mov esi, eax
jmp 0x413aa7
push dword [esp + 0x428]
push dword [esp + 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x413a07
call fcn.0041250d
jmp 0x413a9a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4139fd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x413a2d
mov esi, 0x8007000e
jmp 0x413a9c
push 2
pop ecx
mul ecx
cmp edx, ebp
ja 0x413ac9
jb 0x413a45
cmp eax, 0xffffffff
ja 0x413ac9
cmp eax, 0x400
jbe 0x413a58
push eax
lea ecx, [esp + 0x1c]
call fcn.004124eb
jmp 0x413a60
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x413a26
push esi
push dword [esp + 0x1c]
push esi
push ebx
push ebp
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4139fd
mov eax, dword [esp + 0x18]
xor edx, edx
push dword [esp + 0x42c]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
call fcn.00413870
mov esi, eax
test edi, edi
je 0x413aa7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x413aba
lea ecx, [esp + 0x18]
call fcn.004124e2
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 0x10
push 0x80070216
call fcn.00412df1
int3
Function at 0x414840
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov byte [ebp - 1], 1
push esi
push edi
mov ecx, dword [ebx + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x41488d
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [ebx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.USER32.dll_GetParent]
push dword [ebx + 4]
mov esi, eax
call edi
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x4e
jmp 0x4148b4
shr ecx, 2
test cl, 1
je 0x4148bd
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov edi, dword [ebx + 4]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push edi
movzx eax, ax
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4148eb
push 1
xor esi, esi
push esi
push esi
push dword [ebx + 0x28]
push 0x46cf84
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
jbe 0x4148eb
or byte [ebx + 0x58], 2
push 1
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4154fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
xor ebx, ebx
mov dword [esp + 0x10], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
movzx eax, word [esp + 0x18]
push 0x473420
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x415631
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, 0x10
jbe 0x415630
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x415630
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x415630
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x415629
push esi
push edi
push eax
call fcn.0041d880
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
push ebx
push ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x415629
mov ecx, dword [esp + 0x1c]
call fcn.00415674
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
je 0x415629
push dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push 0xfc
push 0x1e0
mov dword [esp + 0x1c], ebx
call fcn.00415802
test al, al
je 0x415621
push dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x4155fa
mov dword [edi + 8], eax
jmp 0x415621
mov esi, dword [esp + 0x10]
test esi, esi
je 0x415621
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test esi, esi
je 0x41561f
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov bl, 1
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebp
mov al, bl
pop ebx
pop ecx
pop ecx
ret 0x10

Function at 0x416d6f
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
mov esi, ecx
call fcn.00416df0
xor ebx, ebx
test ebp, ebp
je 0x416de5
cmp word [ebp], bx
je 0x416de5
push edi
push 0x44
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.0041de00
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 8
push ebx
push ebx
push ebx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x416de5
mov eax, dword [esp + 0xc]
mov bl, 1
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x54
ret 0x14
Function at 0x416f91
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x4170a1
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4170a1
lea ecx, [ebp - 0x240]
call fcn.00403624
push edi
push ebx
mov eax, ecx
push str._sFonts_s
push eax
call fcn.004011fb
add esp, 0x10
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4170a1
cmp byte [ebx + 0x3ab8], 0
jne 0x4170a1
lea ecx, [ebp - 0x458]
call fcn.00403624
push edi
mov eax, ecx
push str.https:__download.mql5.com_cdn_web_components__s
push eax
call fcn.004011fb
lea esi, [ebx + 0x210]
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x454]
call dword [eax + 0x3c]
cmp eax, 0xc8
jne 0x4170a1
lea ecx, [ebp - 0x28]
call fcn.00403ab1
mov eax, ecx
lea ecx, [ebx + 0x3a88]
push eax
call fcn.0040350e
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x417056
cmp dword [ebp - 0x20], 0x4e20
jbe 0x417099
push ecx
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x28]
call fcn.004042e0
test al, al
je 0x417099
push ecx
push edi
push ecx
push dword [ebp + 8]
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403d74
push edi
push str.value_sunitfile
push str.Install_Component
push esi
push esi
push 0x4b40c0
call fcn.004402d9
add esp, 0x28
lea ecx, [ebp - 0x28]
call fcn.00403ad4
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4170a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
cmp dword [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
je 0x41719d
lea ecx, [ebp - 0x240]
call fcn.00403624
push dword [ebp + 0xc]
mov eax, ecx
push edi
push 0x470ff8
push eax
call fcn.004011fb
add esp, 0x10
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41719d
cmp byte [edi + 0x3ab8], 0
jne 0x41719d
lea ecx, [ebp - 0x458]
call fcn.00403624
push dword [ebp + 8]
mov eax, ecx
push str.https:__download.mql5.com_cdn_web_components__s
push eax
call fcn.004011fb
lea esi, [edi + 0x210]
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x454]
call dword [eax + 0x3c]
cmp eax, 0xc8
jne 0x41719d
lea ecx, [ebp - 0x28]
call fcn.00403ab1
mov eax, ecx
lea ecx, [edi + 0x3a88]
push eax
call fcn.0040350e
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x417165
cmp dword [ebp - 0x20], 0x186a0
jbe 0x417195
push ecx
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x28]
call fcn.004042e0
test al, al
je 0x417195
push dword [ebp + 8]
push str.value_sunitfile
push str.Install_Component
push esi
push esi
push 0x4b40c0
call fcn.004402d9
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.00403ad4
pop edi
pop esi
leave
ret 8
Function at 0x41723e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x493450]
sub esp, 0x11c
push esi
push edi
xor edi, edi
mov esi, ecx
test eax, eax
jg 0x4172a7
push pe_nt_image_headers32
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.0041de00
add esp, 0xc
mov dword [ebp - 0x11c], 0x11c
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x417316
imul eax, dword [ebp - 0x118], 0x64
add eax, dword [ebp - 0x114]
mov dword [0x493454], eax
mov eax, dword [ebp - 0x110]
mov dword [0x493450], eax
cmp eax, 0x1db1
jl 0x417316
push esi
push edi
push edi
push 0x24
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x417316
push ebx
mov ecx, esi
call fcn.00416ec8
push str.oledlg.dll
mov bl, al
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4172e5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esi + 0x3ab9], 1
cmp byte [esi + 0x3ab9], 0
je 0x4172f2
test bl, bl
je 0x417315
lea edi, [esi + 0x208]
mov ecx, edi
call fcn.00403c08
test al, al
jne 0x417315
push 0x400000
push esi
push 0x41720c
mov ecx, edi
call fcn.00403ba7
pop ebx
pop edi
pop esi
leave
ret
Function at 0x418239
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
lea ecx, [esp + 0x268]
mov dword [esp + 0x14], edi
call fcn.0040491d
cmp dword [ebp + 0xc], 0x80
mov bl, 1
ja 0x4183f2
mov ecx, esi
call fcn.00401b89
test al, al
jne 0x4183f2
cmp dword [esi + 8], 3
jbe 0x4183f2
push dword [edi + 4]
lea eax, [esp + 0x26c]
push dword [esi + 4]
push 0x470ff8
push eax
call fcn.004011fb
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4183f4
test byte [esp + 0x18], 0x10
je 0x418370
mov edx, 0x46fe84
lea ecx, [esp + 0x44]
call fcn.00415c1f
test eax, eax
je 0x4183d5
mov edx, 0x470ff0
lea ecx, [esp + 0x44]
call fcn.00415c1f
test eax, eax
je 0x4183d5
lea eax, [esp + 0x44]
push eax
push dword [esi + 4]
lea eax, [esp + 0x270]
push 0x470ff8
push eax
call fcn.004011fb
and dword [esp + 0x20], 0
lea ecx, [esp + 0x278]
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x24]
inc eax
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00418239
add esp, 0x18
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41839e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4183d3
push 0x80
push dword [esp + 0x270]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4183cf
lea eax, [esp + 0x44]
push eax
push dword [esi + 4]
lea eax, [esp + 0x270]
push 0x470ff8
push eax
call fcn.004011fb
add esp, 0x10
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4183a5
mov eax, dword [ebp + 8]
inc dword [eax]
jmp 0x4183d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4183d3
push 0x80
push dword [esp + 0x270]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4183d5
xor bl, bl
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4182bc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4183f4
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418425
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 0x4654d8
push edi
mov dword [esp + 0x14], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x1c], 0x10
xor edi, edi
mov word [esp + 0x20], ax
push 0x476ca4
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edi
call fcn.00403488
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0x476ca0
push edi
push eax
lea edx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov ecx, esi
call fcn.00418239
pop ecx
pop ecx
test al, al
je 0x4184c0
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
test eax, eax
jne 0x4184bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4184c0
push 0x80
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 4]
call edi
test eax, eax
setne al
jmp 0x4184c2
mov al, 1
jmp 0x4184c2
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418fe8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
test edx, edx
je 0x41903a
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20119
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41903a
push ebx
push ebx
push ebx
push ebx
push str.EnableCertPaddingCheck
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor ecx, ecx
movzx ebx, bl
inc ecx
test eax, eax
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x41903c
xor al, al
pop ebx
leave
ret
Function at 0x41ab80
Capabilities:
Create thread

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x34]
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
movlpd qword [esp + 0x28], xmm0
xor esi, esi
push esi
mov ebx, dword [edi + 0x5560]
push ebx
push ebp
push dword [esp + 0x44]
call fcn.00439b80
mov ecx, eax
mov dword [esp + 0x1c], eax
and ecx, 0xf
mov dword [esp + 0x20], edx
or ecx, esi
je 0x41abc6
and eax, 0xfffffff0
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
lea esi, [edi + 0x820]
test ebx, ebx
je 0x41acae
mov eax, dword [esp + 0x2c]
mov ebx, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
push dword [esp + 0x34]
or dword [ebx], 0xffffffff
lea ecx, [ebx + 8]
and dword [ebx + 4], 0
mov edx, 0xff
mov dword [ebx + 0x218], edi
call fcn.00403ead
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x208], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x210], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [ebx + 0x20c], edx
mov dword [ebx + 0x214], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x5560]
jne 0x41ac67
mov ecx, dword [esp + 0x38]
mov eax, ebp
sub ecx, dword [esp + 0x14]
mov dword [ebx + 0x210], ecx
sbb eax, edx
mov dword [esp + 0x24], eax
mov dword [ebx + 0x214], eax
jmp 0x41ac6b
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add eax, ecx
mov ecx, edi
mov dword [esp + 0x14], eax
adc edx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
call fcn.0041b42c
mov dword [ebx + 0x21c], eax
test eax, eax
je 0x41ad3d
mov eax, dword [esp + 0x18]
add ebx, 0x268
cmp eax, dword [edi + 0x5560]
jb 0x41abea
mov ebx, dword [edi + 0x5560]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
shrd eax, ebp, 0xa
shr ebp, 0xa
push ebp
push eax
call fcn.0045e710
mulsd xmm0, qword [0x478260]
push ecx
push ecx
movsd qword [esp], xmm0
push dword [esp + 0x44]
push ebx
push str._u_threads_for__s__ping__.2lf_ms__size__I64u_kb
push str.Parallel
push 0x4b9590
call fcn.004465e5
xor ebx, ebx
add esp, 0x24
cmp dword [edi + 0x5560], ebx
jbe 0x41ad31
lea eax, [esi + 4]
push eax
push 0x10000
push esi
push 0x41ab3f
push 0x40000
push 0
call fcn.0042bafc
add esp, 0x18
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41ad3d
inc ebx
add esi, 0x268
cmp ebx, dword [edi + 0x5560]
jb 0x41acfd
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14
xor al, al
jmp 0x41ad33

Function at 0x41ad41
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov bl, 1
cmp dword [esi], 0xffffffff
je 0x41ad71
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41ad66
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor bl, bl
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
mov eax, dword [esi + 0x21c]
test eax, eax
je 0x41ad87
mov dword [eax + 0x438], 0
jmp 0x41ad89
xor bl, bl
pop esi
mov al, bl
pop ebx
ret