joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492068
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x492143
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 0x502
call fcn.00402810
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, eax
cmp ebx, 0x6f
jne 0x4920cf
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00402850
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, eax
test ebx, ebx
jne 0x492107
cmp dword [ebp - 8], 0
je 0x49211b
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 0x190]
lea eax, [ebx + 0x194]
call fcn.00491f90
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4920d9
jmp 0x49211b
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.0040b6b8
mov edx, dword [ebp - 0x10]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x502
mov eax, dword [ebp - 8]
call fcn.00402830
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49214a
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004041b0
ret

Function at 0x492288
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49232d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004921c4
mov eax, dword [ebp - 8]
call fcn.0040444c
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004047d8
mov eax, dword [ebp - 8]
call fcn.0040444c
test al, al
jbe 0x492317
mov byte [ebp - 9], al
mov bl, 1
mov eax, dword [ebp - 4]
call fcn.004046a4
mov edi, ebx
and edi, 0xff
mov edx, dword [ebp - 8]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0x2176
add ax, 0x3031
mov esi, eax
inc ebx
dec byte [ebp - 9]
jne 0x4922d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492334
lea eax, [ebp - 8]
call fcn.0040418c
ret
Function at 0x49233c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4923e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040444c
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.004047d8
mov eax, dword [ebp - 4]
call fcn.0040444c
test al, al
jbe 0x4923c2
mov byte [ebp - 0xd], al
mov bl, 1
lea eax, [ebp - 0xc]
call fcn.004046a4
mov edi, ebx
and edi, 0xff
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0x2176
add ax, 0x3031
mov esi, eax
inc ebx
dec byte [ebp - 0xd]
jne 0x492383
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00492150
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4923ea
lea eax, [ebp - 0xc]
call fcn.0040418c
ret
Function at 0x492668
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x492670
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040463c
xor eax, eax
push ebp
push 0x4927f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x300]
mov edx, dword [eax]
call dword [edx + 0xd8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x300]
mov eax, dword [eax + 0x218]
call fcn.00492570
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404224
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x300]
mov edx, dword [eax]
call dword [edx + 0xc8]
test eax, eax
jl 0x4927c9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x300]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov esi, eax
dec esi
test esi, esi
jl 0x4927c9
inc esi
xor ebx, ebx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x300]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, 0x492810
call fcn.00404790
dec eax
push eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x300]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, 1
pop ecx
call fcn.004046ac
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404598
jne 0x4927c1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x300]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
lea eax, [ebp - 0x24]
mov edx, edi
mov cl, 4
call fcn.00413cbc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
call fcn.00416a40
lea edx, [ebp - 0x34]
pop eax
call fcn.00416a48
je 0x4927c9
push 0
push edi
call sub.KERNEL32.DLL_TerminateProcess
inc ebx
dec esi
jne 0x492708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4927fe
lea eax, [ebp - 0x34]
mov edx, dword [0x401144]
mov ecx, 2
call fcn.00404c40
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004041b0
ret
Function at 0x492814
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040463c
xor eax, eax
push ebp
push 0x4928c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4324d8]
call fcn.00432644
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4928a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.004326e4
mov cl, 1
mov edx, 0x4928d8
mov eax, dword [ebp - 0xc]
call fcn.00432828
lea ecx, [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00432bf0
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004041e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4928a9
mov eax, dword [ebp - 0xc]
call fcn.0040343c
ret
Function at 0x493540
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], edx
xor eax, eax
push ebp
push 0x49372f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x419568]
call fcn.0040340c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x148]
push eax
push 0x493740
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
mov al, 1
jmp 0x4936f8
mov eax, dword [0x496be0]
mov eax, dword [eax]
call fcn.0045e638
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.004043fc
mov eax, dword [ebp - 0x14c]
mov edx, 0x493754
call fcn.00404598
je 0x4936e2
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.004043fc
mov eax, dword [ebp - 0x150]
mov edx, 0x493760
call fcn.00404598
je 0x4936e2
cmp dword [ebp - 0x148], 0x10
je 0x4936e2
xor eax, eax
push ebp
push 0x4936d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.004043fc
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
mov edx, 0x49376c
call fcn.00404498
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4936ce
lea ecx, [ebp - 0x15c]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x15c]
mov edx, 0x493778
call fcn.00404598
jne 0x4936ce
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.004043fc
mov ecx, dword [ebp - 0x164]
lea eax, [ebp - 0x160]
mov edx, 0x49376c
call fcn.00404498
mov eax, dword [ebp - 0x160]
call fcn.00408c04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4936e2
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4935b0
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_FindClose
mov eax, dword [ebp - 8]
call fcn.0040343c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493736
lea eax, [ebp - 0x164]
mov edx, 7
call fcn.004041b0
ret
Function at 0x401e50
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.0040ab90
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 0x401ecf
push str.ShellExecuteEx_Ok_n
push dword [0x42b450]
call fcn.00408544
pop ecx
pop ecx
jmp 0x401ee5
call esi
push eax
push str.Error:_0x_X_n
push dword [0x42b450]
call fcn.00408544
add esp, 0xc
test bl, bl
je 0x401f59
cmp dword [ebp - 8], edi
je 0x401f59
push str.Waiting_for_installing..._n
push dword [0x42b450]
call fcn.00408544
push dword [0x42b450]
call fcn.004087c3
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 0x401f35
push dword [ebp - 4]
push str.Exit_code:_0x_X_n
jmp 0x401f3d
call esi
push eax
push str.Cant_get_exit_code._Error:_0x_X_n
push dword [0x42b450]
call fcn.00408544
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
jmp 0x401f80
push 1
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x401f80
call esi
push eax
push str.SetHandleInformation_error:_0x_08X_n
push dword [0x42b450]
call fcn.00408544
add esp, 0xc
push dword [0x42b450]
call fcn.004087c3
mov esi, dword [ebp - 8]
pop ecx
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040485b
push edi
push 1
lea ecx, [ebp + 0x20]
call fcn.0040485b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fae
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e136
mov eax, dword fs:[0]
push eax
mov eax, 0x1008c
call fcn.00413e00
mov eax, dword [0x429030]
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.00406de1
mov ebx, 0x424f18
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.00401070
push eax
push ebx
lea ecx, [ebp - 0x10028]
call fcn.00404cb7
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp + 8]
push ebx
push eax
lea ecx, [ebp - 0x10028]
call fcn.00404c15
test esi, esi
je 0x4020c0
mov ebx, 0x424f1c
mov ecx, ebx
call fcn.00401070
push eax
push ebx
lea ecx, [ebp - 0x10028]
call fcn.00404cb7
mov edx, esi
lea ecx, [ebp - 0x10040]
call fcn.00407312
push 0xffffffffffffffff
xor ebx, ebx
mov byte [ebp - 4], 2
push ebx
push eax
lea ecx, [ebp - 0x10028]
call fcn.00404c15
push ebx
push 1
lea ecx, [ebp - 0x10040]
mov byte [ebp - 4], 1
call fcn.0040485b
mov esi, str.___st
mov ecx, esi
call fcn.00401070
push eax
push esi
lea ecx, [ebp - 0x10028]
call fcn.00404cb7
mov edx, edi
lea ecx, [ebp - 0x10040]
call fcn.00407312
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x10028]
mov byte [ebp - 4], 3
call fcn.00404c15
push ebx
push 1
lea ecx, [ebp - 0x10040]
call fcn.0040485b
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.004091c6
add esp, 0xc
mov dword [ebp - 0x10098], 0x44
lea eax, [ebp - 0x10094]
push 0x40
push ebx
push eax
call fcn.0040ab90
add esp, 0xc
lea eax, [ebp - 0x10050]
xorps xmm0, xmm0
movdqu 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 0x40214f
push dword [ebp - 0x1004c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10050]
call esi
jmp 0x402169
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Clone_Error:_0x_08X_n
push dword [0x42b450]
call fcn.00408544
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x10028]
call fcn.0040485b
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040485b
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.00407dcf
mov esp, ebp
pop ebp
ret
Function at 0x40323e
Capabilities:
Accept command line arguments

Disassembly:
push 0x74
mov eax, 0x41e3cf
call fcn.0040a2b3
mov bl, cl
lea ecx, [ebp - 0x74]
call fcn.00401811
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.0040589c
pop ecx
push edi
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.0040485b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.00407312
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00404c15
push edi
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.0040485b
mov esi, str..log
mov ecx, esi
call fcn.00401070
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404cb7
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x425340
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00408900
push str._n
push eax
mov dword [0x42b450], eax
call fcn.00408544
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add esp, 0x10
call esi
test eax, eax
je 0x403301
call esi
jmp 0x403306
mov eax, 0x424744
push eax
push str.cmd:__s_n
push dword [0x42b450]
call fcn.00408544
sub esp, 0xc
mov ecx, esp
call fcn.00406de1
lea ecx, [ebp - 0x44]
call fcn.00406e3c
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 [0x42b450]
call fcn.00408544
add esp, 0x24
lea ecx, [ebp - 0x5c]
call fcn.00402407
cmp dword [eax + 0x14], 8
jb 0x40335e
mov eax, dword [eax]
push eax
push str.os:__s_n
push dword [0x42b450]
call fcn.00408544
add esp, 0xc
lea ecx, [ebp - 0x5c]
push edi
push 1
call fcn.0040485b
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 0x4033b6
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 0x4033c5
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x425424
test esi, esi
mov eax, 0x42541c
cmove eax, ecx
push eax
push str.elevated:__s_n
push dword [0x42b450]
call fcn.00408544
add esp, 0xc
lea ecx, [ebp - 0x44]
push edi
push 1
call fcn.0040485b
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040485b
call fcn.0040a262
ret
Function at 0x406c1e
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 0x425a2c
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x406c6b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor esi, esi
jmp 0x406c97
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.0040449d
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406cab
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 [0x429030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x406ccf
xor eax, eax
inc eax
jmp 0x406dca
lea eax, [ebp - 0x9a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x406cc7
sub esp, 0x18
mov ecx, esp
push str.clck.yandex.ru
call fcn.00403e1f
call fcn.00406c1e
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x406cc7
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 0x406d51
push 2
pop eax
jmp 0x406dca
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.0040945d
lea ecx, [ebp - 0x808]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406d74
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 0x42b458
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x406dbb
cmp eax, 0x2001
jae 0x406ddb
mov byte [eax + 0x42b458], 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.00407dcf
mov esp, ebp
pop ebp
ret
call fcn.004095b1
int3
Function at 0x406e3c
Capabilities:
Get file version info

Disassembly:
push 0xf4
mov eax, 0x41e845
call fcn.0040a2b3
mov esi, ecx
xor edi, edi
mov dword [ebp - 0xfc], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0xf8]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x406e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x424744
mov ecx, esi
call fcn.00403e80
push edi
jmp 0x406f70
push ebx
call fcn.00407ac2
mov edi, eax
pop ecx
test edi, edi
jne 0x406ead
push 0x424744
mov ecx, esi
call fcn.00403e80
jmp 0x406f6e
xor ecx, ecx
mov dword [ebp - 0xdc], 7
xor eax, eax
mov dword [ebp - 0xe0], ecx
mov word [ebp - 0xf0], ax
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push edi
cmovae eax, dword [ebp + 8]
push ebx
push ecx
push eax
mov dword [ebp - 0xf4], ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x406f4a
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xf4]
push eax
push 0x425a40
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0xf4]
test ecx, ecx
je 0x406f4a
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0xd8]
push 0x425a44
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0xd8]
lea ecx, [ebp - 0xf0]
push eax
call fcn.004045d1
push edi
call fcn.00408db2
pop ecx
lea eax, [ebp - 0xf0]
mov ecx, esi
push eax
call fcn.00403ea5
push 0
push 1
lea ecx, [ebp - 0xf0]
call fcn.0040485b
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040485b
mov eax, esi
call fcn.0040a262
ret

Function at 0x4070cc
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x41e8f5
call fcn.0040a280
mov ebx, edx
mov edi, dword [ebp + 0x38]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
xor esi, esi
lea eax, [ebp + 8]
and dword [ebp - 0x10], esi
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x10], esi
je 0x407188
push edi
xor ecx, ecx
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
push ecx
cmovae eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [edi], ecx
call ebx
test eax, eax
jne 0x40717f
mov eax, dword [edi]
test eax, eax
je 0x407174
add eax, 2
push eax
call fcn.00407ac2
cmp dword [ebp + 0x34], 8
mov esi, eax
pop ecx
push edi
push esi
push 0
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x40717f
push str.No_data._n
call fcn.004098e0
push esi
call fcn.00408db2
pop ecx
xor esi, esi
jmp 0x40717e
push str.Size__0._n
call fcn.004098e0
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040485b
push 0
push 1
lea ecx, [ebp + 0x20]
call fcn.0040485b
mov eax, esi
call fcn.0040a24e
ret