joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a864
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
push edi
push dword [ebp + 8]
call ebx
test eax, eax
pop ecx
je 0x40a990
mov edx, 0x81
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x43e]
mov word [ebp - 0x440], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x440]
push 0x26
push eax
push esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x440]
push eax
push 0x420598
lea eax, [ebp - 0x238]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0x238]
push eax
call edi
test eax, eax
jne 0x40a940
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x422128
push 0x420514
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x238]
push eax
call edi
test eax, eax
jne 0x40a940
mov word [ebp - 0x238], si
lea eax, [ebp - 0x238]
push eax
call ebx
test eax, eax
pop ecx
jbe 0x40a972
push 0xa
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x238]
push eax
push 0x4177cc
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40aa0c
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x413600
push 0x15
push esi
push 0x4135f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40a994
xor eax, eax
jmp 0x40aa0f
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x40aa0c
lea edx, [ebp - 4]
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x94]
cmp dword [ebp - 4], esi
je 0x40a9c4
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x20]
mov edi, eax
push edx
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20]
mov word [ebp - 0x20], si
push edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x30]
mov word [ebp - 0x30], 8
mov dword [ebp - 0x28], edi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40aa16
Capabilities:
Check if file exists
Delete registry key
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [ebp + 8]
push esi
test eax, eax
push edi
mov dword [ecx + 0x430], eax
je 0x40aa4e
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edi, SysReAllocString
push 0x420638
push edi
call esi
push 0x41fcd0
push edi
call esi
jmp 0x40ab11
and word [ebp - 0x410], 0
mov esi, 0x81
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40e]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ab11
and word [ebp - 0x208], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
mov edi, 0x103
push eax
push 0x420624
lea eax, [ebp - 0x208]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40aadc
lea eax, [ebp - 0x208]
push eax
call fcn.0040bf1b
pop ecx
lea eax, [ebp - 0x208]
push eax
push 0x420608
lea eax, [ebp - 0x410]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
push 0x420604
push 0x4205f4
push 0x4205dc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret 4

Function at 0x40ab17
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
and word [ebp - 0x414], 0
push ebx
push esi
mov edx, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
mov ebx, 0x103
stosw word es:[edi], ax
lea eax, [edx + 0x210]
mov dword [ebp - 4], eax
push eax
push 0x420678
lea eax, [ebp - 0x414]
push ebx
push eax
call esi
and word [ebp - 0x20c], 0
push dword [ebp - 4]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
push 0x420660
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
test eax, eax
pop ebx
je 0x40abbc
push 0
push 0xbb8
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0040b723
add esp, 0x10
leave
ret
Function at 0x40abbe
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 4
pop eax
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x42075c
push 0x420714
push SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, 0x81
xor eax, eax
cmp dword [ebp - 4], ebx
lea edi, [ebp - 0x212]
mov word [ebp - 0x214], bx
lea ebx, [esi + 0x210]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
jne 0x40ac26
push 0x4206e0
jmp 0x40ac2b
push 0x4206a8
mov esi, 0x103
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
and word [ebp - 0x41c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
push ebx
push 0x420660
lea eax, [ebp - 0x41c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
test eax, eax
pop ebx
je 0x40ac9d
push 0
push 0xbb8
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0040b723
add esp, 0x10
leave
ret
Function at 0x40b07f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [0x42077c], 0xffffffff
push esi
jne 0x40b228
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 [0x42077c], 0xfffffc18
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x40b228
push 2
pop ecx
cmp dword [ebp - 0x104], ecx
jne 0x40b228
mov eax, dword [ebp - 0x110]
cmp eax, 5
jne 0x40b198
cmp dword [ebp - 0x10c], 0
jne 0x40b104
mov dword [0x42077c], 1
jmp 0x40b228
cmp dword [ebp - 0x10c], 1
jne 0x40b17d
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x4207dc
call esi
add esp, 0xc
test eax, eax
jne 0x40b139
mov dword [0x42077c], 3
jmp 0x40b228
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x4207bc
call esi
add esp, 0xc
test eax, eax
jne 0x40b15f
mov dword [0x42077c], 4
jmp 0x40b228
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x42079c
call esi
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 5
jmp 0x40b1ea
cmp dword [ebp - 0x10c], ecx
jne 0x40b228
mov dword [0x42077c], 6
jmp 0x40b228
cmp eax, 6
jne 0x40b212
mov eax, dword [ebp - 0x10c]
test eax, eax
jne 0x40b1f1
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x4207dc
call esi
add esp, 0xc
test eax, eax
jne 0x40b1d0
mov dword [0x42077c], 8
jmp 0x40b228
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x4207bc
call esi
add esp, 0xc
neg eax
sbb eax, eax
add eax, 8
mov dword [0x42077c], eax
jmp 0x40b228
cmp eax, 1
jne 0x40b202
mov dword [0x42077c], 9
jmp 0x40b228
cmp eax, ecx
jne 0x40b21c
mov dword [0x42077c], 0xa
jmp 0x40b228
cmp eax, 7
je 0x40b1f6
cmp eax, 8
jmp 0x40b204
jbe 0x40b228
mov dword [0x42077c], 0x3e8
mov eax, dword [0x42077c]
pop esi
leave
ret
Function at 0x40b5c1
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x412900
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x1428
call fcn.00412450
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x10], ebx
jne 0x40b5ea
xor eax, eax
jmp 0x40b715
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 0x40b61b
push 0x420808
jmp 0x40b620
push 0x4207fc
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.0040b9d1
push 0x5c
push 0x2f
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040ba19
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1434]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40b673
xor esi, esi
jmp 0x40b706
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 0x40b703
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 0x40b6fb
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 0x40b6f4
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 0x40b6f4
inc dword [ebp - 0x10]
jmp 0x40b6fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
dec dword [ebp - 0x18]
jne 0x40b69e
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040ba62
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40b723
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 0x40b7b2
cmp dword [ebp + 0x10], esi
jbe 0x40b784
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x40b79f
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40b79f
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 0x40b7b8
Capabilities:
Delete registry key
Set registry value

Disassembly:
push esi
push edi
push 2
mov edi, 0x420810
push dword [0x420780]
mov esi, SysReAllocString
push 4
push 0x422128
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x40b7eb
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov al, 1
jmp 0x40b7ed
xor al, al
pop edi
pop esi
ret
Function at 0x40bf9f
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 [0x422128]
mov ecx, 0x81
mov word [ebp - 0x86c], ax
xor eax, eax
lea edi, [ebp - 0x86a]
push 0x420878
push dword [ebp + 8]
mov ebx, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x417590
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 0x40c027
xor eax, eax
jmp 0x40c124
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x420874
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x40c0ef
lea eax, [ebp - 0x228]
push 0x42086c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x40c0ef
test byte [ebp - 0x254], 0x10
mov ax, word [0x422128]
je 0x40c0ae
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 0x417590
push ebx
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.0040bf9f
add esp, 0x18
jmp 0x40c0ef
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 0x417590
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 0x40c027
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 0x40c129
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 [0x422128]
mov ecx, 0x81
mov word [ebp - 0x86c], ax
xor eax, eax
lea edi, [ebp - 0x86a]
push 0x420878
push dword [ebp + 8]
mov ebx, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x417590
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 0x40c316
cmp eax, 0xffffffff
je 0x40c316
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x420874
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x40c2df
lea eax, [ebp - 0x228]
push 0x42086c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x40c2df
test byte [ebp - 0x254], 0x10
je 0x40c261
mov ax, word [0x422128]
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 0x417590
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 0x40c2df
push dword [ebp + 0x14]
lea eax, [ebp - 0x664]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0040c129
add esp, 0x10
jmp 0x40c2df
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 0x417590
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 0x40c2df
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 0x40c2df
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 0x40c1b6
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 0x40c318
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ca6f
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], pe_nt_image_headers32
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 0x40cb46
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x40cb22
cmp eax, 4
je 0x40cb22
cmp eax, 1
jne 0x40cb46
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 0x40cb48
xor eax, eax
pop esi
leave
ret

Function at 0x40cb4b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0
jne 0x40cb9e
push ebx
mov ebx, 0x420f60
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 0x40cb92
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.004100d7
test eax, eax
pop ebx
jne 0x40cba2
xor eax, eax
jmp 0x40cbe2
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 0x40cbdf
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push esi
push 0x40cc25
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
Function at 0x40e7a9
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.00412450
push ebx
mov ebx, ecx
xor eax, eax
push esi
cmp dword [ebx + 0x2480], eax
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0x420fe8
je 0x40e7d6
mov dword [ebp - 4], 0x420fdc
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov ax, word [0x422128]
mov esi, dword [ebp + 8]
mov word [ebp - 0x103c], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x103a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x14], 0x420fd4
lea ecx, [eax + 0x1048]
add eax, 0x48
push ecx
push eax
push 0x420880
lea eax, [ebp - 0x103c]
push 0x7ff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
cmp dword [ebx + 0x62ab4], 0
mov eax, 0x8400c300
je 0x40e83f
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x40e84d
or eax, 0x803000
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x103c]
push 0x420fc0
push eax
push dword [ebp - 4]
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x40e919
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp + 8]
push 4
push ecx
push 2
push eax
mov dword [ebp + 8], 0x3a98
call edi
lea eax, [ebp - 4]
push 4
push eax
push 0x41
push dword [esi + 0x1c]
mov dword [ebp - 4], 1
call edi
push 0x28
mov dword [ebp - 8], eax
pop edi
lea eax, [ebp - 0x3c]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x3c], edi
mov edi, 0xa2d0
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40e8f9
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
push 0xa2cf
push ebx
push esi
call fcn.0040e9f0
push ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov dword [ebp - 0x30], eax
push esi
push 1
lea eax, [ebp - 0x3c]
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test ebx, ebx
mov dword [ebp - 8], eax
je 0x40e919
push ebx
call fcn.0040ac9f
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f1f1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov ax, word [0x422128]
push ebx
push esi
mov esi, ecx
push edi
mov word [ebp - 0x210], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 0x42119c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
shl ebx, 1
pop ecx
mov eax, ebx
push 2
push 0
neg eax
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp - 4]
jne 0x40f2be
lea eax, [ebp - 0x210]
push 0x42119c
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x40f2be
xor ebx, ebx
push 1
push ebx
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 4]
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add eax, ecx
push 1
neg eax
push ebx
push eax
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f2c3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov eax, dword [esi + 0x26f0]
cmp eax, ebx
jne 0x40f2e1
mov dword [ebp - 4], ebx
jmp 0x40f2ef
mov ecx, dword [esi + 0x26f4]
sub ecx, eax
sar ecx, 2
mov dword [ebp - 4], ecx
push 2
push ebx
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 4], ebx
je 0x40f38d
push edi
lea eax, [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push eax
lea eax, [ebp - 4]
push 4
push eax
push dword [esi + 8]
call edi
mov dword [ebp - 0xc], 4
mov eax, dword [esi + 0x26f0]
test eax, eax
je 0x40f359
mov ecx, dword [esi + 0x26f4]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x40f359
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [esi + 0x26f0]
push 0x20
push dword [eax + ebx*4]
push dword [esi + 8]
call edi
add dword [ebp - 0xc], 0x20
inc ebx
jmp 0x40f323
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push 4
push eax
push dword [esi + 8]
call edi
mov ebx, 0x42119c
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea ecx, [ebp - 8]
push 0
shl eax, 1
push ecx
push eax
push ebx
push dword [esi + 8]
call edi
pop edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
leave
ret