joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402824
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40900c]
jne 0x407dff
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4091a8], eax
mov dword [0x4091a4], ecx
mov dword [0x4091a0], edx
mov dword [0x40919c], ebx
mov dword [0x409198], esi
mov dword [0x409194], edi
mov word [0x4091c0], ss
mov word [0x4091b4], cs
mov word [0x409190], ds
mov word [0x40918c], es
mov word [0x409188], fs
mov word [0x409184], gs
pushfd
pop dword [0x4091b8]
mov eax, dword [ebp]
mov dword [0x4091ac], eax
mov eax, dword [ebp + 4]
mov dword [0x4091b0], eax
lea eax, [ebp + 8]
mov dword [0x4091bc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4090f8], 0x10001
mov eax, dword [0x4091b0]
mov dword [0x4090ac], eax
mov dword [0x4090a0], 0xc0000409
mov dword [0x4090a4], 1
mov eax, dword [0x40900c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x409010]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x4090f0], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x407f00
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x4090f0], 0
jne 0x407ee9
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x4029ff
Capabilities:
Check os version
Query or enumerate registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x40900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x120]
xor esi, esi
xor edi, edi
push eax
inc edi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], 4
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402a68
cmp dword [ebp - 0x11c], 5
jne 0x402a68
cmp dword [ebp - 0x118], edi
jne 0x402a68
cmp word [ebp - 0xc], 2
jb 0x40499b
lea eax, [ebp - 0x124]
push eax
push edi
push esi
push 0x402af0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402aba
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
push eax
push esi
push esi
push 0x402acc
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4049a2
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00402824
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x128], edi
jne 0x402aae
xor edi, edi
jmp 0x402aae
Function at 0x403016
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [esi], eax
je 0x4052dc
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x402af0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x40307d
cmp eax, edi
jne 0x4052eb
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x403096
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], edi
je 0x40308e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret 4
cmp eax, edi
jne 0x4052eb
jmp 0x403080
call fcn.004077b4
mov ebx, 0x80070057
jmp 0x40308e
call fcn.004077b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x405304
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x403080
Function at 0x4030a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401525
push 0x58
push 0x4031b8
call fcn.004032b9
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x409084
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x4054a2
xor esi, esi
inc esi
mov eax, dword [0x409080]
cmp eax, esi
je 0x4054c0
mov eax, dword [0x409080]
test eax, eax
jne 0x4031ec
mov dword [0x409080], esi
push 0x4031b0
push 0x4031a4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x405566
mov eax, dword [0x409080]
cmp eax, esi
jne 0x403151
push 0x4031a0
push 0x403198
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x409080], 2
test ebx, ebx
jne 0x40315d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x409090], 0
jne 0x4054cd
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x4031e0
cmp al, 0x22
je 0x4054fa
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
jne 0x40550a
inc esi
jmp 0x403171
test al, al
je 0x4031f7
cmp dword [ebp - 0x1c], 0
je 0x4031f7
jmp 0x40317a
mov dword [0x409098], esi
jmp 0x40312d
mov al, byte [esi]
test al, al
je 0x403207
cmp al, 0x20
ja 0x403207
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4031f7
test byte [ebp - 0x3c], 1
jne 0x4054f1
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call fcn.00402d56
mov dword [0x409030], eax
cmp dword [0x409024], 0
jne 0x405542
push eax
call dword [sym.imp.MSVCR80.dll_exit]
test byte [edi + 4], 0x10
jne 0x403278
and dword [ebp - 4], 0
jmp 0x40327e
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x40327e
mov eax, dword [ebp + 8]
push dword [eax + esi*8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40323b
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x403266
add edi, 8
dec ebx
jne 0x40325f
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8
cmp eax, esi
jne 0x4054b0
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4030f4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4030df
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40312d
push 0x409090
call fcn.00407cfe
pop ecx
test eax, eax
je 0x40316a
push 0
push 2
push 0
call dword [0x409090]
jmp 0x40316a
movzx eax, word [ebp - 0x38]
jmp 0x403214
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x403182
inc esi
mov dword [ebp - 0x20], esi
jmp 0x403195
cmp dword [0x409098], 0
jne 0x405551
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x409030]
jmp 0x405572
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.004015ee
ret

Function at 0x403247
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], 1
jbe 0x403286
push esi
push edi
mov edi, ecx
Function at 0x403778
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x40900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
mov ebx, ecx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
je 0x405434
lea ecx, [ebp - 0x41c]
push ecx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x405448
cmp eax, esi
jne 0x405457
mov dword [ebp - 0x420], 1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push dword [ebp - 0x41c]
mov dword [ebp - 0x428], 0x104
mov dword [ebp - 0x424], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc esi
test eax, eax
jne 0x403859
cmp dword [ebp - 0x420], 1
jne 0x4037de
push 0xc
call fcn.004020a6
test eax, eax
pop ecx
je 0x40388f
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00401e5d
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00401941
jmp 0x4037de
cmp eax, 0x103
jne 0x405466
cmp dword [ebp - 0x41c], 0
je 0x403879
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop esi
xor ecx, ebp
pop ebx
call fcn.00402824
leave
ret 4
xor eax, eax
jmp 0x40384a
call fcn.004077b4
mov dword [ebp - 0x418], 0x80070057
jmp 0x403879
mov dword [ebp - 0x418], 1
jmp 0x403864
call fcn.004077b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jmp 0x405473
call fcn.004077b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40547f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x418], eax
jmp 0x403864
Function at 0x403aa3
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x40900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
xor esi, esi
push 0x200eb
mov ebx, ecx
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4049d1
push dword [ebp - 0x254]
lea edi, [ebp - 0x48]
call fcn.00402832
mov edi, eax
cmp edi, esi
jne 0x403c10
lea eax, [ebp - 0x258]
push eax
push esi
push esi
push dword [ebp - 0x25c]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push esi
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x4049c4
push 0x40
lea eax, [ebp - 0x2ac]
push esi
push eax
mov dword [ebp - 0x2b0], 0x44
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
push 0x104
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x403c2f
lea eax, [ebp - 0x48]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x258]
call fcn.004039b7
mov edi, eax
cmp edi, esi
jne 0x403c04
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x2b0]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x403c2f
push 0x1388
push dword [ebp - 0x26c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x26c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x268]
call esi
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402824
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4049bd
mov edi, eax
jmp 0x403c04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x403c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x403c1c
Function at 0x403cc3
Capabilities:
Link many functions at runtime

Disassembly:
push 4
call fcn.00402d3a
test eax, eax
jne 0x405056
push ebx
xor ebx, ebx
cmp dword [esi + 0x28], ebx
je 0x403d52
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x403d52
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x403d52
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403d68
push eax
call edi
push 0x403d74
push dword [esi + 0xc]
mov dword [esi + 0x30], eax
call edi
push 0x403d80
push dword [esi + 0xc]
mov dword [esi + 0x34], eax
call edi
push 0x403d9c
push dword [esi + 0xc]
mov dword [esi + 0x38], eax
call edi
push 0x403dac
push dword [esi + 0xc]
mov dword [esi + 0x3c], eax
call edi
cmp dword [esi + 0x30], ebx
mov dword [esi + 0x40], eax
pop edi
je 0x403d4f
cmp dword [esi + 0x34], ebx
je 0x403d4f
cmp dword [esi + 0x38], ebx
je 0x403d4f
cmp dword [esi + 0x3c], ebx
je 0x403d4f
cmp eax, ebx
je 0x403d4f
inc ebx
mov dword [esi + 0x2c], ebx
mov eax, dword [esi + 0x2c]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop ebx
ret
push 0x3c
push 4
call fcn.0040791f
jmp 0x403cd2

Function at 0x40413a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x460
mov eax, dword [0x40900c]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
push edi
lea eax, [esp + 0x258]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test ebx, ebx
jne 0x4041a8
push 0x4041c0
push 0x104
lea edi, [esp + 0x260]
call fcn.00404106
lea eax, [esp + 8]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4051aa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x464]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00402824
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4041a8
push 0x4051d0
call fcn.0040701a
mov ebx, 0x80070005
jmp 0x4041a8
Function at 0x404219
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x34f0
call fcn.004021db
mov eax, dword [0x40900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x34b0], esi
call fcn.00401de8
or dword [ebp - 0x34e4], 0xffffffff
and word [ebp - 0x34d8], 0
test ebx, ebx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x34ec], eax
lea eax, [ebp - 0x454]
mov dword [ebp - 0x34e0], eax
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x34d4], eax
mov eax, 0x80
mov dword [ebp - 0x34d0], eax
mov dword [ebp - 0x34c8], eax
lea ecx, [ebp - 0x250]
lea eax, [ebp - 0x24a4]
mov dword [ebp - 0x34cc], ecx
mov dword [ebp - 0x34c4], eax
mov eax, 0x800
lea ecx, [ebp - 0x34a8]
mov dword [ebp - 0x34f0], 0x3c
mov dword [ebp - 0x34e8], 0x20
mov dword [ebp - 0x34dc], 0x100
mov dword [ebp - 0x34c0], eax
mov dword [ebp - 0x34bc], ecx
mov dword [ebp - 0x34b8], eax
je 0x405327
lea esi, [ebp - 0x34b4]
mov eax, 0x824
mov ecx, ebx
call fcn.004041c6
mov esi, eax
test esi, esi
jl 0x405336
push edi
lea eax, [ebp - 0x34f0]
push eax
push 0
push dword [ebp - 0x34b4]
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
mov edi, 0xffff
mov ebx, 0x80070000
je 0x405340
xor ecx, ecx
cmp dword [ebp - 0x34e4], 5
mov dword [ebp - 0x34ac], 0x824
lea eax, [ebp - 0x34ac]
jne 0x40535b
push ecx
push eax
push 0x825
lea eax, [ebp - 0x14a0]
push eax
push ecx
push 0xa
push dword [ebp - 0x34c4]
call sub.urlmon.dll_CoInternetParseUrl
mov esi, eax
test esi, esi
jl 0x4053b8
mov edi, dword [ebp - 0x34b0]
lea eax, [ebp - 0x14a0]
push eax
call fcn.00401df3
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402824
leave
ret
call fcn.004077b4
mov esi, 0x80070057
jmp 0x40437c
call fcn.004077b4
jmp 0x40437c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, ecx
jle 0x405350
and eax, edi
or eax, ebx
mov esi, eax
cmp esi, ecx
jl 0x4053b8
jmp 0x404326
push eax
lea eax, [ebp - 0x14a0]
push eax
push 0x80000000
lea eax, [ebp - 0x34f0]
push eax
mov dword [ebp - 0x34b8], ecx
mov dword [ebp - 0x34bc], ecx
mov dword [ebp - 0x34d0], ecx
mov dword [ebp - 0x34d4], ecx
mov dword [ebp - 0x34c8], ecx
mov dword [ebp - 0x34cc], ecx
call dword [sym.imp.WININET.dll_InternetCreateUrlW]
test eax, eax
jne 0x404369
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40435f
and eax, edi
or eax, ebx
jmp 0x40435f
call fcn.004077b4
jmp 0x40437b
Function at 0x406990
Capabilities:
Download url
Receive data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1270
call fcn.004021db
mov eax, dword [0x40900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
push esi
push edi
xor edi, edi
push edi
lea edx, [ebp - 0x126c]
push edx
push 0x824
lea edx, [ebp - 0x1260]
push edx
push edi
push eax
push ecx
mov dword [ebp - 0x1264], edi
mov dword [ebp - 0x126c], edi
call sub.urlmon.dll_CoInternetCombineUrl
mov esi, eax
cmp esi, edi
jl 0x406ae6
lea eax, [ebp - 0x1260]
lea edi, [ebx + 0x24]
push eax
call fcn.00401df3
mov esi, eax
test esi, esi
jl 0x406ae6
push 4
call fcn.00402d3a
test eax, eax
je 0x406a16
push 0x2a
lea ecx, [ebp - 0x1260]
call fcn.004079d4
lea edi, [ebx + 0x4c]
push edi
push 0x406b5c
push 1
push 0
push 0x406b6c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x406ae6
mov edx, dword [ebx + 0xc]
mov ecx, dword [edi]
push 0
lea eax, [ebx + 0x48]
and dword [eax], 0
mov esi, dword [ecx]
push eax
push edx
push ecx
call dword [esi + 0x14]
mov esi, eax
test esi, esi
jl 0x406ae6
mov eax, dword [ebx + 0x24]
mov edi, dword [edi]
and dword [ebp - 0x1268], 0
mov ecx, dword [edi]
push 0
lea edx, [ebp - 0x1268]
push edx
push eax
push edi
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
jl 0x406ae6
mov esi, dword [ebx + 0x48]
sub esi, dword [ebp - 0x1268]
mov edi, 0x80004005
neg esi
sbb esi, esi
and esi, edi
jl 0x406ae6
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 4]
push ecx
push 0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
mov esi, eax
test esi, esi
jl 0x406ae6
lea eax, [ebp - 0x1264]
push eax
push 0x405748
push 1
push 0
push 0x405738
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x406ae6
mov eax, dword [ebp - 0x1264]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x28]
mov esi, eax
test esi, esi
jge 0x406aed
call fcn.004077b4
jmp 0x406b22
mov eax, dword [ebp - 0x1264]
mov ecx, dword [eax]
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x50]
mov esi, eax
cmp esi, edi
jne 0x406b0e
cmp dword [ebx + 0x30], 0
je 0x406b0e
xor esi, esi
push 4
call fcn.00402d3a
test eax, eax
je 0x406b22
push 0x2b
push 4
call fcn.0040791f
mov eax, dword [ebp - 0x1264]
test eax, eax
je 0x406b39
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x1264], 0
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x406b4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebx + 0x4c], 0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00402824
leave
ret
Function at 0x407b05
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x40900c]
xor eax, ebp
mov dword [ebp - 4], eax
push 4
call fcn.00402d3a
test eax, eax
je 0x407b2e
push 0x20
mov ecx, ebx
call fcn.004079d4
push esi
push edi
xor edi, edi
push 0x38
lea eax, [ebp - 0x450]
push edi
push eax
mov dword [ebp - 0x454], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x407bec
mov esi, 0x407bf8
push esi
push 1
push edi
mov dword [ebp - 0x418], 0x208
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov edi, eax
test edi, edi
jl 0x407bd1
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x454], 0x3c
mov dword [ebp - 0x450], 0x101
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x438], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x407bd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407bcb
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jge 0x407bd6
call fcn.004077b4
push edi
call fcn.004019f9
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402824
leave
ret
Function at 0x401010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x417040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea edx, [ecx + 2]
push edi
mov edi, ecx
mov dword [ebp - 0x234], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401037
sub ecx, edx
sar ecx, 1
cmp ecx, 0x40
ja 0x401284
mov ecx, 0x24
lea eax, [ebp - 0x230]
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401060
cmp dword [0x417ce0], 2
movups xmm0, xmmword [0x41511c]
mov ax, word [0x415154]
mov dword [ebp - 0x230], 0x24
movups xmmword [ebp - 0x270], xmm0
mov dword [ebp - 0x21c], 4
movups xmm0, xmmword [0x41512c]
mov word [ebp - 0x238], ax
movups xmmword [ebp - 0x260], xmm0
movups xmm0, xmmword [0x41513c]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [0x41514c]
movq qword [ebp - 0x240], xmm0
jl 0x4011f0
movaps xmm4, xmmword [0x4152f0]
movaps xmm3, xmmword [0x415350]
movaps xmm5, xmmword [0x415310]
movaps xmm6, xmmword [0x415330]
nop
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x270]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x270], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x268]
xorps xmm1, xmm0
movq qword [ebp + ecx*2 - 0x268], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x4010f0
cmp ecx, 0x1d
jge 0x40121b
nop word [eax + eax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x3a
sub edx, eax
add edx, 0x34
xor word [ebp + ecx*2 - 0x270], dx
inc ecx
cmp ecx, 0x1d
jl 0x4011f0
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405b4f
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405bb3
add esp, 0x18
lea eax, [ebp - 0x234]
push eax
push 0x414fd8
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov ecx, eax
mov eax, dword [ebp - 0x234]
mov dword [esi], eax
mov eax, ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004028e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
mov dword [esi], 0
xor ecx, ebp
pop esi
call fcn.004028e5
mov esp, ebp
pop ebp
ret