joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414185
Capabilities:
Check if file exists
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x41eda0
call fcn.0041e600
mov eax, 0x122c
call fcn.0041e510
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x414309
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414309
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1238]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4141d7
or eax, 0xffffffff
jmp 0x41430b
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 0x4142f7
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 0x414290
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 0x414287
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 0x414287
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.00414810
jmp 0x414290
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x414219
cmp dword [ebp - 0x20], ebx
je 0x4142f7
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
je 0x4142f7
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 0x4142e0
xor eax, eax
cmp esi, ebx
jbe 0x4142cc
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x4142be
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
call fcn.0041e4ea
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x4142f7
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x4142e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004147f0
pop edi
xor eax, eax
pop esi
jmp 0x41430b
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x414318
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x41edb4
call fcn.0041e600
mov eax, 0x1434
call fcn.0041e510
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x41439f
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x232]
mov word [ebp - 0x234], bx
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
push esi
jne 0x414368
push 0x429754
jmp 0x41436d
push 0x429748
lea eax, [ebp - 0x234]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
or dword [ebp - 0x10], 0xffffffff
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1440]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4143a7
or eax, 0xffffffff
jmp 0x4144d9
mov edx, dword [ebp - 0x28]
mov al, byte [ebp + 0xb]
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 - 0x43e]
mov word [ebp - 0x440], bx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
je 0x4144ca
lea esi, [ebp - 0x1440]
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 0x414460
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 0x414457
lea eax, [ebp - 0x440]
push 0x104
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x414457
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
call fcn.00414810
jmp 0x414460
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x4143e7
cmp dword [ebp - 0x20], ebx
je 0x4144ca
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
je 0x4144ca
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 0x4144b3
xor eax, eax
cmp esi, ebx
jbe 0x41449c
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x41448e
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
mov dword [ebp - 0x10], eax
call fcn.0041e4ea
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x4144ca
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x4144b9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004147f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x414608
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 0x414680
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebp + 0x10], esi
je 0x41467b
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41467b
push 1
pop esi
push dword [ebp - 0x10]
call edi
mov eax, esi
pop edi
pop esi
leave
ret

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

Disassembly:
push esi
push edi
push 2
mov edi, str.CLSID1A893393_71A8_4a50_95A1_2B89DE87B24C
push dword [0x429724]
mov esi, SysReAllocString
push 4
push 0x42b2ec
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x4146b9
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov al, 1
jmp 0x4146bb
xor al, al
pop edi
pop esi
ret
Function at 0x4146be
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.0041e510
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], edi
je 0x4147eb
cmp dword [ebp + 8], edi
je 0x4147eb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1224]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4147eb
mov eax, dword [ebp - 0x14]
push ebx
shr eax, 2
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
je 0x4147e4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1224]
mov dword [ebp - 4], eax
jmp 0x41472a
xor edi, edi
mov eax, dword [ebp - 4]
push dword [eax]
push edi
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x4147c8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4147c5
mov word [ebp - 0x224], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x224]
push 0x104
push eax
push dword [ebp - 0xc]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4147c5
push dword [ebp + 0xc]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x4147c5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x4147c5
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
jne 0x4147dd
push esi
call ebx
inc dword [ebp - 8]
add dword [ebp - 4], 4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jb 0x414728
jmp 0x4147e4
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
jmp 0x4147ed
xor eax, eax
pop edi
leave
ret
Function at 0x4149f1
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 0x414a85
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 0x414a85
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 0x414a77
push esi
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x414a77
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x426cb4
push esi
mov dword [ebp + 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414a77
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 0x414a89
xor al, al
jmp 0x414ab3
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 0x414cab
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x414d24
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push str._s_d.tmp
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x208]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
pop edi
jne 0x414d28
xor al, al
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
leave
ret
Function at 0x414d40
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 [0x42b2ec]
mov ecx, 0x81
mov word [ebp - 0x86c], ax
xor eax, eax
lea edi, [ebp - 0x86a]
push 0x429638
push dword [ebp + 8]
mov ebx, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x424924
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 0x414dc8
xor eax, eax
jmp 0x414ec5
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x429634
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x414e90
lea eax, [ebp - 0x228]
push 0x42962c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x414e90
test byte [ebp - 0x254], 0x10
mov ax, word [0x42b2ec]
je 0x414e4f
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 0x424924
push ebx
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.00414d40
add esp, 0x18
jmp 0x414e90
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 0x424924
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 0x414dc8
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 0x414eca
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x260
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x1c], 1
push dword [esp + 0x27c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, 0x208
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
pop ecx
push dword [esp + 0x274]
mov ebx, 0x104
mov dword [esp + 0x18], eax
push 0x4297cc
push ebx
push eax
call esi
and dword [esp + 0x30], 0
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x34]
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x41500a
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [esp + 0x4c]
push 0x429634
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x414ff3
lea eax, [esp + 0x4c]
push 0x42962c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x414ff3
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x278]
push 0x424924
push ebx
push edi
call esi
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x18
lea ecx, [esp + 0x4c]
mov dword [esp + 0x10], eax
push ecx
push dword [esp + 0x27c]
push 0x424924
push ebx
push eax
call esi
add esp, 0x14
test byte [esp + 0x20], 0x10
je 0x414fcd
push dword [esp + 0x10]
push edi
call fcn.00414eca
pop ecx
pop ecx
jmp 0x414fda
push 0
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x414fe2
and dword [esp + 0x18], eax
push edi
call fcn.0041e4ea
push dword [esp + 0x14]
call fcn.0041e4ea
pop ecx
pop ecx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414f47
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x14]
call fcn.0041e4ea
mov eax, dword [esp + 0x1c]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret
Function at 0x415215
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 fcn.0041e052
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x4152fc
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x4152fc
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 0x4152fc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x4152fc
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 0x4152fc
push esi
push dword [ebp + 0xc]
call fcn.0041543b
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 0x4152fc
mov eax, dword [edi + 8]
mov dword [edi + 8], esi
cmp eax, esi
jne 0x4152f4
lea eax, [ebp - 0xc]
push esi
push eax
push dword [edi + 4]
call fcn.0041e076
cmp eax, esi
je 0x4152f4
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push dword [ebp - 8]
call fcn.0041e064
cmp dword [ebp - 4], esi
pop edi
pop esi
pop ebx
je 0x415315
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x41531a
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
je 0x4153ad
cmp dword [ebp + 0xc], ebx
je 0x4153ad
cmp dword [ebp + 0x10], ebx
je 0x4153ad
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x4153ad
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x4153ad
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4153a3
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x4153a3
lea eax, [ebp + 8]
push ebx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov al, bl
pop edi
pop ebx
pop ebp
ret
Function at 0x415421
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x415402
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x415893
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 0x41596a
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x415946
cmp eax, 4
je 0x415946
cmp eax, 1
jne 0x41596a
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 0x41596c
xor eax, eax
pop esi
leave
ret

Function at 0x41596f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0
jne 0x4159c2
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 0x4159b6
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.004191cb
test eax, eax
pop ebx
jne 0x4159c6
xor eax, eax
jmp 0x415a06
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 0x415a03
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push esi
push 0x415cc2
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 0x416620
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
push 1
mov eax, dword [edi + 0x26e0]
pop ebx
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x416693
cmp dword [edi + 0x2480], 0
je 0x4166b5
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x416684
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4166b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4166b9
jmp 0x4166b5
cmp dword [esi], 0
jne 0x4166a4
mov eax, dword [esi + 4]
test eax, eax
je 0x4166a4
mov dword [esi + 0x18], eax
jmp 0x4166b5
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.004179c9
test eax, eax
je 0x4166b9
mov eax, ebx
jmp 0x4166bb
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4