joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4654f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49b4e8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x465529
inc eax
mov dword [esi + 0x10], eax
jmp 0x46563c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x46553d
mov eax, 0xffffffc7
jmp 0x46563e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x46554e
cmp dword [esi + 8], eax
jne 0x46553d
cmp dword [esi + 8], eax
jne 0x465567
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x465567
mov eax, 0xffffffc7
jmp 0x46563e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x46557b
push eax
mov ecx, ebx
call fcn.00464d20
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00437810
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4655ac
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00437830
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00464490
test eax, eax
mov dword [esp + 0x38], eax
je 0x4655df
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4a0318
call fcn.00437a10
mov eax, dword [esp + 0x38]
jmp 0x46563e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00465350
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x465623
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00465370
mov esi, eax
test esi, esi
jne 0x465653
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00465350
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4655f5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4a0318
call fcn.00437a10
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4a0318
call fcn.00437a10
mov eax, esi
jmp 0x46563e

Function at 0x468770
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4687d0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4687d0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4687d0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4687d0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x468810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x46e930
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49bb18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00494b5a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0046e2d0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00494a88
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0049134c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0049134c
push 1
push 0
push 0
mov ecx, esi
call fcn.004912f4
push 1
push 0
push 1
mov ecx, esi
call fcn.004912f4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00494bcc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x46eab0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49bb38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00494b5a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0046e2d0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00494a88
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x46eb74
cmp dword [esp + 0x40], 1
jne 0x46eb72
cmp ecx, eax
jge 0x46eb74
mov eax, ecx
cmp eax, 0xc8
jge 0x46eb80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0046e930
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00494bcc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x46f300
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49bba3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048f76a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00494e02
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049631e
test eax, eax
je 0x46f41c
mov ecx, dword [esp + 0x3c]
call fcn.00494e2f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x46f3e0
push edi
mov ecx, esi
call fcn.0049249a
mov ecx, esi
call fcn.0046f580
cmp dword [esp + 0x38], 1
jne 0x46f415
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004925d5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x471e40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x471e73
push esi
call fcn.00474f50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x471e6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x471ef9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x471ee2
mov eax, dword [esi + 8]
test eax, eax
je 0x471e97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x471ede
cmp eax, 2
je 0x471ee2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x471e8a
cmp eax, 3
je 0x471ebd
cmp eax, 1
jne 0x471e8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x471e8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x471e8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00471f20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x471f08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00471f20
add esp, 4
pop esi
ret

Function at 0x49055f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x490597
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048e5ec
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048e5c4
jmp 0x4905a3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x491c54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x491c96
call fcn.00497704
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x491c96
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x491c8d
xor eax, eax
jmp 0x491c9e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00491ca4
pop edi
pop esi
pop ebx
ret 4

Function at 0x497c34
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x497c62
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x497c80
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00497b9a
jmp 0x497c80
mov eax, dword [esi + 0x14]
test eax, eax
je 0x497c80
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00497b9a
test edi, edi
mov eax, edi
jne 0x497c6a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x2b0c1b92
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x74e37fdc
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4018be
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x423809
call fcn.004210c8
sub esp, 0x18
lea eax, [ebp + 8]
xor edi, edi
mov ecx, esp
inc edi
mov dword [ebp - 4], edi
push eax
call fcn.004031f1
lea ecx, [ebp - 0x1c]
call fcn.00401608
mov eax, dword [ebp - 0x18]
add esp, 0x18
sub eax, dword [ebp - 0x1c]
je 0x40192e
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push 0x42a210
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.0040ef30
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x401959
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push str.Cant_create_file__s_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
mov esi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.004030a4
push 0
push edi
lea ecx, [ebp + 8]
call fcn.00403407
push 0
push edi
lea ecx, [ebp + 0x20]
call fcn.00403407
mov eax, esi
call fcn.004210a2
ret
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
push esi
push eax
push edi
push dword [ebp - 0x1c]
call fcn.0040ec76
push esi
call fcn.0040a5e7
add esp, 0x14
xor esi, esi
jmp 0x401933
Function at 0x401977
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x38
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
mov bl, cl
call fcn.00409990
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 0x3c], 0x440
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x34], 8
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4019f6
push str.ShellExecuteEx_Ok_n
push dword [0x42f5a0]
call fcn.0040101c
pop ecx
pop ecx
jmp 0x401a0c
call esi
push eax
push str.Error:_0x_X_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
test bl, bl
je 0x401a80
cmp dword [ebp - 8], edi
je 0x401a80
push str.Waiting_for_installing..._n
push dword [0x42f5a0]
call fcn.0040101c
push dword [0x42f5a0]
call fcn.0040a518
add esp, 0xc
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401a5c
push dword [ebp - 4]
push str.Exit_code:_0x_X_n
jmp 0x401a64
call esi
push eax
push str.Cant_get_exit_code._Error:_0x_X_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
jmp 0x401aa7
push 1
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x401aa7
call esi
push eax
push str.SetHandleInformation_error:_0x_08X_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
push dword [0x42f5a0]
call fcn.0040a518
mov esi, dword [ebp - 8]
pop ecx
push edi
push 1
lea ecx, [ebp + 8]
call fcn.00403407
push edi
push 1
lea ecx, [ebp + 0x20]
call fcn.00403407
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ad5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42384d
mov eax, dword fs:[0]
push eax
mov eax, 0x1008c
call fcn.00407d50
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10028]
call fcn.00406336
mov ebx, 0x42a388
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.004010b7
push eax
push ebx
lea ecx, [ebp - 0x10028]
call fcn.0040377e
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp + 8]
push ebx
push eax
lea ecx, [ebp - 0x10028]
call fcn.00404397
test esi, esi
je 0x401be7
mov ebx, 0x42a38c
mov ecx, ebx
call fcn.004010b7
push eax
push ebx
lea ecx, [ebp - 0x10028]
call fcn.0040377e
mov edx, esi
lea ecx, [ebp - 0x10040]
call fcn.004066e6
push 0xffffffffffffffff
xor ebx, ebx
mov byte [ebp - 4], 2
push ebx
push eax
lea ecx, [ebp - 0x10028]
call fcn.00404397
push ebx
push 1
lea ecx, [ebp - 0x10040]
mov byte [ebp - 4], 1
call fcn.00403407
mov esi, str.___st
mov ecx, esi
call fcn.004010b7
push eax
push esi
lea ecx, [ebp - 0x10028]
call fcn.0040377e
mov edx, edi
lea ecx, [ebp - 0x10040]
call fcn.004066e6
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x10028]
mov byte [ebp - 4], 3
call fcn.00404397
push ebx
push 1
lea ecx, [ebp - 0x10040]
call fcn.00403407
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
push eax
lea eax, [ebp - 0x10010]
push 0x8000
push eax
call fcn.0040e7b0
add esp, 0xc
mov dword [ebp - 0x10098], 0x44
lea eax, [ebp - 0x10094]
push 0x40
push ebx
push eax
call fcn.00409990
add esp, 0xc
lea eax, [ebp - 0x10050]
xorps xmm0, xmm0
movups xmmword [ebp - 0x10050], xmm0
push eax
lea eax, [ebp - 0x10098]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x10010]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401c75
push dword [ebp - 0x1004c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10050]
call esi
jmp 0x401c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Clone_Error:_0x_08X_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x10028]
call fcn.00403407
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00403407
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407009
mov esp, ebp
pop ebp
ret
Function at 0x402328
Capabilities:
Accept command line arguments

Disassembly:
push 0x74
mov eax, 0x423962
call fcn.004210fc
mov bl, cl
lea ecx, [ebp - 0x74]
call fcn.00401411
xor edi, edi
mov edx, str.downloader.
test bl, bl
mov dword [ebp - 4], edi
mov ecx, str._stat.
cmove ecx, edx
mov edx, eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004049a7
pop ecx
push edi
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00403407
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.004066e6
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00404397
push edi
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00403407
mov esi, str..log
mov ecx, esi
call fcn.004010b7
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040377e
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x42a520
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0040ef30
push str._n
push eax
mov dword [0x42f5a0], eax
call fcn.0040101c
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add esp, 0x10
call esi
test eax, eax
je 0x4023eb
call esi
jmp 0x4023f0
mov eax, 0x429bb0
push eax
push str.cmd:__s_n
push dword [0x42f5a0]
call fcn.0040101c
sub esp, 0xc
mov ecx, esp
call fcn.00406336
lea ecx, [ebp - 0x44]
call fcn.00406397
push 4
pop ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
push str.ver:__s_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0x24
lea ecx, [ebp - 0x5c]
call fcn.00401f2d
cmp dword [eax + 0x14], 8
jb 0x402448
mov eax, dword [eax]
push eax
push str.os:__s_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
lea ecx, [ebp - 0x5c]
push edi
push 1
call fcn.00403407
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], edi
push eax
push 8
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4024a0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
push eax
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x14
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [ebp - 0x7c]
cmp dword [ebp - 0x78], 0
je 0x4024af
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x42a604
test esi, esi
mov eax, 0x42a5fc
cmove eax, ecx
push eax
push str.elevated:__s_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
lea ecx, [ebp - 0x44]
push edi
push 1
call fcn.00403407
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403407
call fcn.004210b7
ret
Function at 0x405ec8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x24], 0
xor eax, eax
and dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x20], 2
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0x42aac4
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x405f15
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor esi, esi
jmp 0x405f41
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx + 0x18]
movzx esi, byte [ecx + 4]
movzx eax, byte [ecx + 5]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 6]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 7]
shl esi, 8
or esi, eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00403872
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405f55
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x405f79
xor eax, eax
inc eax
jmp 0x406080
lea eax, [ebp - 0x9a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x405f71
sub esp, 0x18
mov ecx, esp
push str.clck.yandex.ru
and dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
mov byte [ecx], al
call fcn.004038c5
call fcn.00405ec8
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x405f71
push 0
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
push 2
mov esi, eax
pop eax
push 0x50
mov word [ebp - 0x818], ax
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [ebp - 0x816], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x814], eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x406007
push 2
pop eax
jmp 0x406080
push edi
push str.GET__click_dtypestred_pid12_cid72435_path_s__HTTP_1.1_r_nUser_Agent:_curl_1.1_r_nHost:_clck.yandex.ru_r_nAccept:_._r_n_r_n
lea eax, [ebp - 0x808]
push 0x800
push eax
call fcn.00405eac
lea ecx, [ebp - 0x808]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40602a
xor ebx, ebx
lea eax, [ebp - 0x808]
push ebx
sub ecx, edx
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
push 0x2000
push 0x42f5a8
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x406071
cmp eax, 0x2001
jae 0x406091
mov byte [eax + 0x42f5a8], bl
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407009
mov esp, ebp
pop ebp
ret
call fcn.004071b4
int3