joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d006
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [0x429898], 0xffffffff
push esi
jne 0x40d1af
push edi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
mov dword [ebp - 0x114], 0x114
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [0x429898], 0xfffffc18
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x40d1af
push 2
pop ecx
cmp dword [ebp - 0x104], ecx
jne 0x40d1af
mov eax, dword [ebp - 0x110]
cmp eax, 5
jne 0x40d11f
cmp dword [ebp - 0x10c], 0
jne 0x40d08b
mov dword [0x429898], 1
jmp 0x40d1af
cmp dword [ebp - 0x10c], 1
jne 0x40d104
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_1
call esi
add esp, 0xc
test eax, eax
jne 0x40d0c0
mov dword [0x429898], 3
jmp 0x40d1af
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
test eax, eax
jne 0x40d0e6
mov dword [0x429898], 4
jmp 0x40d1af
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_3
call esi
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 5
jmp 0x40d171
cmp dword [ebp - 0x10c], ecx
jne 0x40d1af
mov dword [0x429898], 6
jmp 0x40d1af
cmp eax, 6
jne 0x40d199
mov eax, dword [ebp - 0x10c]
test eax, eax
jne 0x40d178
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_1
call esi
add esp, 0xc
test eax, eax
jne 0x40d157
mov dword [0x429898], 8
jmp 0x40d1af
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
neg eax
sbb eax, eax
add eax, 8
mov dword [0x429898], eax
jmp 0x40d1af
cmp eax, 1
jne 0x40d189
mov dword [0x429898], 9
jmp 0x40d1af
cmp eax, ecx
jne 0x40d1a3
mov dword [0x429898], 0xa
jmp 0x40d1af
cmp eax, 7
je 0x40d17d
cmp eax, 8
jmp 0x40d18b
jbe 0x40d1af
mov dword [0x429898], 0x3e8
mov eax, dword [0x429898]
pop esi
leave
ret
Function at 0x40d1b7
Capabilities:
Check if file exists
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x41a944
call fcn.00414890
mov eax, 0x122c
call fcn.00414800
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40d33b
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d33b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1238]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40d209
or eax, 0xffffffff
jmp 0x40d33d
mov edx, dword [ebp - 0x28]
mov al, byte [ebp + 0xb]
push esi
push edi
shr edx, 2
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push 0
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
je 0x40d329
lea esi, [ebp - 0x1238]
mov edi, edx
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40d2c2
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push 4
push ecx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40d2b9
lea eax, [ebp - 0x238]
push 0x104
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp + 8]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x40d2b9
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x24]
push eax
call fcn.0040d86b
jmp 0x40d2c2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x40d24b
cmp dword [ebp - 0x20], ebx
je 0x40d329
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
je 0x40d329
mov eax, esi
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40d312
xor eax, eax
cmp esi, ebx
jbe 0x40d2fe
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x40d2f0
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
call fcn.0040cc20
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x40d329
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x40d318
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00412842
pop edi
xor eax, eax
pop esi
jmp 0x40d33d
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d34a
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x41a960
call fcn.00414890
mov eax, 0x1438
call fcn.00414800
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x40d371
or eax, 0xffffffff
jmp 0x40d53a
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
push esi
jne 0x40d3a2
push 0x429924
jmp 0x40d3a7
push str._s
lea eax, [ebp - 0x238]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040da4c
push 0x5c
push 0x2f
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040da94
lea eax, [ebp - 0x2c]
or esi, 0xffffffff
push eax
lea eax, [ebp - 0x1444]
push 0x1000
push eax
mov dword [ebp - 0x14], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40d52b
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp + 0xb]
shr edx, 2
mov byte [ebp - 0x28], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push 0
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x442]
mov word [ebp - 0x444], bx
mov byte [ebp - 4], 1
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
je 0x40d51d
lea esi, [ebp - 0x1444]
mov edi, edx
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40d4b3
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
push 4
push ecx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40d4aa
lea eax, [ebp - 0x444]
push 0x104
push eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp - 0x10]
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x40d4aa
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040d86b
jmp 0x40d4b3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x40d43e
cmp dword [ebp - 0x24], ebx
je 0x40d51d
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x24]
sar esi, 2
je 0x40d51d
mov eax, esi
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40d506
xor eax, eax
cmp esi, ebx
jbe 0x40d4ef
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x40d4e1
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
mov dword [ebp - 0x14], eax
call fcn.0040cc20
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x40d51d
mov eax, dword [ebp - 0x24]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x40d50c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00412842
mov esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040dadd
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d548
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x41a974
call fcn.00414890
mov eax, 0x1428
call fcn.00414800
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x10], ebx
jne 0x40d571
xor eax, eax
jmp 0x40d69c
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
mov word [ebp - 0x228], bx
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
push esi
jne 0x40d5a2
push 0x429924
jmp 0x40d5a7
push str._s
lea eax, [ebp - 0x228]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x228]
lea ecx, [ebp + 8]
push eax
call fcn.0040da4c
push 0x5c
push 0x2f
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040da94
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1434]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40d5fa
xor esi, esi
jmp 0x40d68d
mov edx, dword [ebp - 0x1c]
push 0
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x432]
mov word [ebp - 0x434], bx
shr edx, 2
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
je 0x40d68a
lea edi, [ebp - 0x1434]
mov dword [ebp - 0x18], edx
push dword [edi]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40d682
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40d67b
lea eax, [ebp - 0x434]
push 0x104
push eax
push dword [ebp - 0x14]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp + 8]
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x40d67b
inc dword [ebp - 0x10]
jmp 0x40d682
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
dec dword [ebp - 0x18]
jne 0x40d625
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040dadd
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d6aa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
xor esi, esi
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x28], 0x81
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d739
cmp dword [ebp + 0x10], esi
jbe 0x40d70b
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x40d726
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40d726
mov dword [edi], 1
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push 1
pop esi
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40d73f
Capabilities:
Delete registry key
Set registry value

Disassembly:
push esi
push edi
push 2
mov edi, str.CLSID1A893393_71A8_4a50_95A1_2B89DE87B24C
push dword [0x42989c]
mov esi, SysReAllocString
push 4
push 0x42bc4c
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x40d772
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov al, 1
jmp 0x40d774
xor al, al
pop edi
pop esi
ret

Function at 0x40d777
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x121c
call fcn.00414800
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0xc], esi
je 0x40d7a8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x121c]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40d7af
xor eax, eax
jmp 0x40d868
push ebx
push edi
mov ebx, dword [ebp - 0x10]
push 0
mov ecx, 0x81
pop eax
lea edi, [ebp - 0x21a]
mov word [ebp - 0x21c], si
rep stosd dword es:[edi], eax
shr ebx, 2
stosw word es:[edi], ax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x40d863
lea edi, [ebp - 0x121c]
jmp 0x40d7e6
xor esi, esi
push dword [edi]
push esi
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40d848
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40d841
lea eax, [ebp - 0x21c]
push 0x103
push eax
push dword [ebp - 8]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40d841
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40d855
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
add edi, 4
cmp dword [ebp - 4], ebx
jb 0x40d7e4
jmp 0x40d863
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40dbb2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
movzx edi, word [ebp + 0xc]
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x40dc99
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x40dc99
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x40dc99
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x40dc99
push ebx
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40dc99
push esi
push dword [ebp + 0xc]
call fcn.0040dcea
pop ecx
mov edi, eax
mov eax, dword [ebp + 0xc]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, esi
je 0x40dc99
mov eax, dword [edi + 8]
mov dword [edi + 8], esi
cmp eax, esi
jne 0x40dc91
lea eax, [ebp - 0xc]
push esi
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, esi
je 0x40dc91
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push dword [ebp - 8]
call sub.gdiplus.dll_GdiplusShutdown
cmp dword [ebp - 4], esi
pop edi
pop esi
pop ebx
je 0x40dcb2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x40dcd0
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x40dcb7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x40dd8f
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40de23
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x40de23
push esi
push edi
mov byte [ebp - 1], bl
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40de15
push esi
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40de15
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x4290e0
push esi
mov dword [ebp + 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40de15
push 0x34
lea eax, [ebp - 0x40]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x40], 0xfeef04bd
sete byte [ebp - 1]
push esi
call dword [sym.imp.MSVCRT.dll_free]
cmp byte [ebp - 1], bl
pop ecx
pop esi
jne 0x40de27
xor al, al
jmp 0x40de51
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
shr eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
movzx eax, word [ebp - 0x38]
mov dword [ecx], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x14]
shr eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
movzx eax, word [ebp - 0x34]
mov dword [ecx], eax
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x40dfb4
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
and dword [ebp - 0x254], 0
push ebx
push esi
push edi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x250]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
mov ax, word [0x42bc4c]
mov ecx, 0x81
mov word [ebp - 0x86c], ax
xor eax, eax
lea edi, [ebp - 0x86a]
push 0x429994
push dword [ebp + 8]
mov ebx, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._s_s
lea eax, [ebp - 0x86c]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40e03c
xor eax, eax
jmp 0x40e139
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x429990
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x40e104
lea eax, [ebp - 0x228]
push 0x429988
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x40e104
test byte [ebp - 0x254], 0x10
mov ax, word [0x42bc4c]
je 0x40e0c3
mov word [ebp - 0x45c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x45a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push str._s_s
push ebx
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.0040dfb4
add esp, 0x18
jmp 0x40e104
mov word [ebp - 0x664], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x662]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push dword [ebp + 8]
push str._s_s
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e03c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e13e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
and dword [ebp - 0x254], 0
push ebx
push esi
push edi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x250]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
mov ax, word [0x42bc4c]
mov ecx, 0x81
mov word [ebp - 0x86c], ax
xor eax, eax
lea edi, [ebp - 0x86a]
push 0x429994
push dword [ebp + 8]
mov ebx, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._s_s
lea eax, [ebp - 0x86c]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
mov dword [ebp - 4], eax
je 0x40e32b
cmp eax, 0xffffffff
je 0x40e32b
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x429990
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x40e2f4
lea eax, [ebp - 0x228]
push 0x429988
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x40e2f4
test byte [ebp - 0x254], 0x10
je 0x40e276
mov ax, word [0x42bc4c]
mov ecx, 0x81
mov word [ebp - 0x664], ax
xor eax, eax
lea edi, [ebp - 0x662]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push dword [ebp + 8]
push str._s_s
push ebx
push eax
call esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x1c
test eax, eax
je 0x40e2f4
push dword [ebp + 0x14]
lea eax, [ebp - 0x664]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0040e13e
add esp, 0x10
jmp 0x40e2f4
and word [ebp - 0x45c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x45a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push str._s_s
push ebx
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x1c
test eax, eax
je 0x40e2f4
push dword [ebp + 0x10]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x40e2f4
lea eax, [ebp - 0x45c]
push 0xa0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e1cb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40e32d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e332
Capabilities:
Create directory

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x40e357
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e357
push 1
pop eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x40efe6
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 0xc]
push 0x2454
push 0
push esi
call sub.MSVCRT.dll_memset
lea eax, [esi + 8]
add esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x2148]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2348]
lea ecx, [esi + 0x1048]
mov dword [ebp - 0x20], eax
mov eax, 0x80
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 8], ecx
push eax
lea ecx, [esi + 0x2048]
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40f0bd
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x40f099
cmp eax, 4
je 0x40f099
cmp eax, 1
jne 0x40f0bd
mov cx, word [ebp - 0x24]
and dword [esi + 0x2448], 0
and dword [esi + 0x244c], 0
or dword [esi + 0x2450], 0xffffffff
push 1
mov dword [esi + 4], eax
mov word [esi], cx
pop eax
jmp 0x40f0bf
xor eax, eax
pop esi
leave
ret

Function at 0x40f0c2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0
jne 0x40f115
push ebx
mov ebx, str.MetalinkFile
lea eax, [esi + 0x5d538]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40f109
and word [edi], 0
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
lea edi, [edi + eax*2]
push edi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [esi + 0x2694], eax
pop ecx
mov ecx, esi
call fcn.00412670
test eax, eax
pop ebx
jne 0x40f119
xor eax, eax
jmp 0x40f159
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x2464], eax
je 0x40f156
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push esi
push 0x40f19c
push edi
push edi
mov dword [esi + 0x5d100], 8
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc], eax
push 1
pop eax
pop edi
pop esi
leave
ret