joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102afe1
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [0x104a794]
push edi
add ecx, 0x138
xor esi, esi
call fcn.01030171
mov eax, 0x422
cmp edi, eax
ja 0x102b0e4
je 0x102b0c8
sub edi, 0x125
je 0x102b088
sub edi, 3
je 0x102b112
sub edi, 0x2d3
je 0x102b062
dec edi
dec edi
jne 0x102b195
push 0x1006500
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x102b058
push 0x8007000e
push 0x10064d4
push 0x637
jmp 0x102b0a8
push 0x1006480
jmp 0x102b13c
push 0x1006408
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x102b137
push 0x8007000e
push 0x10064d4
push 0x62e
jmp 0x102b0a8
push 0x1006390
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x102b0c1
push 0x8007000e
push 0x10064d4
push 0x640
push 0x1006040
push 0x10018c8
mov ecx, 0x104abe8
call fcn.0102f8f0
jmp 0x102b18a
push 0x1006338
jmp 0x102b13c
push 5
xor eax, eax
push eax
push eax
push 0x10062d8
push 0x10062cc
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x102b195
sub edi, 0x425
je 0x102b170
sub edi, 5
je 0x102b144
sub edi, 5
je 0x102b112
dec edi
jne 0x102b195
push 0x7db
mov ecx, ebx
call fcn.0102aab5
jmp 0x102b195
push 0x1006258
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x102b137
push 0x8007000e
push 0x10064d4
push 0x61a
jmp 0x102b0a8
push 0x10061f8
push esi
call fcn.01022b69
jmp 0x102b18a
push 0x1006180
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x102b169
push 0x8007000e
push 0x10064d4
push 0x623
jmp 0x102b0a8
push 0x1006110
jmp 0x102b13c
mov eax, dword [0x104a794]
push 9
push 0xffffffffffffffff
mov ecx, ebx
mov dword [eax + 0x274], 5
call fcn.0102aae5
test esi, esi
je 0x102b195
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x102b2f9
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x102b3ab
cmp dword [ebp + 8], 1
jne 0x102b399
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 5
push 0x43c
push dword [ebp + 0xc]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push 0x43a
push dword [ebp + 0xc]
call esi
push eax
call edi
push 0x10
push dword [ebp + 0xc]
push 0x102ad5b
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
pop edi
test eax, eax
jne 0x102b3d3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x102b373
call esi
test eax, eax
jle 0x102b378
and eax, 0xffff
or eax, 0x80070000
jmp 0x102b378
mov eax, 0x80004005
push eax
push 0x10065b0
push 0x840
push 0x1006040
push 0x10018c8
mov ecx, 0x104abe8
call fcn.0102f8f0
jmp 0x102b3d3
mov ecx, dword [0x104a794]
call fcn.0100d708
push 0x7de
jmp 0x102b3cc
cmp dword [ebp + 8], 1
jne 0x102b3bc
push 0
push 0x70
call fcn.0102aae5
jmp 0x102b3d3
mov ecx, dword [0x104a794]
call fcn.0100d708
push 0x7df
mov ecx, esi
call fcn.0102aab5
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x102b3df
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ecx], 0x7e0
jne 0x102b485
cmp dword [ebp + 0xc], 1
push esi
push edi
jne 0x102b434
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push 0x3fe
push dword [ebp + 0x10]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push 0x3ff
push dword [ebp + 0x10]
call esi
push eax
call edi
push 0x10
push dword [ebp + 0x10]
push 0x102aed7
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
jmp 0x102b483
cmp dword [ebp + 8], 0
push 0
jl 0x102b445
push 0x70
call fcn.0102aae5
jmp 0x102b483
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fe
push dword [ebp + 0x10]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 5
push 0x3ff
push dword [ebp + 0x10]
call esi
push eax
call edi
push 0x1b58
push 1
push 0
push 0x801a
push dword [ebp + 0x10]
call fcn.01023024
pop edi
pop esi
xor eax, eax
pop ebp
ret 0xc
Function at 0x102c745
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov ebx, 0x41e
push ebx
push dword [ebp + 8]
call esi
xor edi, edi
push edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x104a794]
add eax, 0x198
cmp dword [eax], edi
je 0x102c789
push dword [eax]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [0x104a794]
mov dword [eax + 0x198], edi
mov eax, dword [0x104a794]
add eax, 0x198
push eax
push ebx
push dword [ebp + 8]
call fcn.0102316d
push 0x10
push edi
push 0x470
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x420
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push eax
call ebx
push 0x421
push dword [ebp + 8]
call esi
push 5
push eax
call ebx
mov esi, dword [ebp + 8]
push edi
push edi
push esi
push 0x102b490
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x102c836
push edi
push 0x10066c8
push 0x6c9
push 0x1006040
push 0x10018b8
mov ecx, 0x104abe8
call fcn.0102f8f0
push edi
push 0xfffe
push edi
push esi
push 0x28a
push 0x213
call fcn.0102556f
push edi
push 5
push 0x471
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x102c83d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x102d12d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x104a328]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0102d0c2
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x102d1a0
cmp dword [ebp - 0x94], 5
jb 0x102d1c1
jmp 0x102d1bd
cmp dword [ebp - 0x88], 1
jne 0x102d1c1
cmp dword [ebp - 0x94], 4
ja 0x102d1bd
jne 0x102d1c1
cmp dword [ebp - 0x90], 0
jbe 0x102d1c1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1006780
call fcn.0100c908
test eax, eax
jge 0x102d1e2
mov byte [0x104a768], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0102da5f
leave
ret
Function at 0x102d3e3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x104a860], 0
push esi
jne 0x102d351
call fcn.0102d248
test eax, eax
je 0x102d394
mov eax, dword [0x104a860]
cmp eax, 1
jne 0x102d372
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x102d394
pop esi
ret
push eax
call dword [0x104a868]
test eax, eax
jne 0x102d3dc
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x102d398
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x104a860]
call dword [0x104a868]
mov edi, eax
test edi, edi
je 0x102d3bd
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x102d3d9
mov edi, esi
add esi, 0xff0
push edi
push dword [0x104a860]
call dword [0x104a864]
add edi, 0x10
cmp edi, esi
jb 0x102d3c5
mov eax, edi
pop edi
pop esi
ret
jmp 0x102d33e
Function at 0x102d895
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1046178
call fcn.0102dbc8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x104ac14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x102d650
cmp eax, esi
jne 0x102d643
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x102d653
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x102d62a
xor esi, esi
inc esi
mov eax, dword [0x104ac10]
cmp eax, esi
jne 0x102d666
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x102d695
mov eax, dword [0x104ac10]
test eax, eax
jne 0x102d68f
mov dword [0x104ac10], esi
push 0x10016b8
push 0x10016ac
call fcn.0102d58c
pop ecx
pop ecx
test eax, eax
je 0x102d695
jmp 0x102d7b9
mov dword [0x104a8b0], esi
mov eax, dword [0x104ac10]
cmp eax, esi
jne 0x102d6b9
push 0x10016a8
push 0x100168c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x104ac10], 2
cmp dword [ebp - 0x20], ebx
jne 0x102d6c6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x104ac20], ebx
je 0x102d6e7
push 0x104ac20
call fcn.0102e089
pop ecx
test eax, eax
je 0x102d6e7
push ebx
push 2
push ebx
call dword [0x104ac20]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x102d7b9
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x102d751
cmp cx, bx
je 0x102d70c
cmp dword [ebp - 0x1c], ebx
jne 0x102d751
movzx ecx, word [eax]
cmp cx, bx
je 0x102d721
cmp cx, 0x20
ja 0x102d721
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x102d70c
test byte [ebp - 0x40], 1
je 0x102d72d
movzx ecx, word [ebp - 0x3c]
jmp 0x102d730
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x104a8ac], eax
cmp dword [0x104a8a0], ebx
jne 0x102d796
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x102d762
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x102d6f6
cmp dword [0x104a8b0], ebx
jne 0x102d7a4
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x104a8ac]
jmp 0x102d7c5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0102dc0d
ret
call fcn.0102e1ce
jmp 0x102d5ed
Function at 0x102e695
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push 4
dec eax
dec eax
pop esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov ecx, 0x80000001
mov edx, 0x1006ad8
je 0x102e6da
dec eax
je 0x102e6d3
sub eax, 3
jne 0x102e6e4
mov edx, 0x1006a68
jmp 0x102e6df
mov edx, 0x10069f0
jmp 0x102e6df
mov edx, 0x1006988
mov ecx, 0x80000002
lea eax, [ebp - 4]
push eax
push 1
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x102e6fb
jg 0x102e71d
jmp 0x102e727
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x102e72b
jle 0x102e727
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x102e733
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
cmp dword [ebp - 4], edi
je 0x102e741
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x102e74f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
dec eax
dec eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov edx, 0x80000001
mov ecx, 0x1006ad8
je 0x102e79c
dec eax
je 0x102e795
dec eax
je 0x102e78e
dec eax
je 0x102e787
dec eax
jne 0x102e7a6
mov ecx, 0x1006a68
jmp 0x102e7a1
mov ecx, 0x1006b48
jmp 0x102e7a6
mov ecx, 0x1006b48
jmp 0x102e7a1
mov ecx, 0x10069f0
jmp 0x102e7a1
mov ecx, 0x1006988
mov edx, 0x80000002
lea eax, [ebp - 8]
push eax
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x102e7cd
jle 0x102e7c5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x102e888
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x102e7fb
jle 0x102e7f3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x102e887
mov eax, dword [ebp - 0xc]
push edi
push 0x104a890
lea eax, [eax + eax + 2]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0102ddd1
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x102e850
mov eax, 0x8007000e
push eax
push 0x1006b24
push 0x1e8
push 0x10068a8
push 0x10018c8
mov ecx, 0x104abe8
mov dword [ebp - 4], eax
call fcn.0102f8f0
jmp 0x102e886
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
mov esi, eax
cmp esi, ebx
je 0x102e881
push edi
call fcn.0102d44c
cmp esi, ebx
pop ecx
jle 0x102e87c
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
jmp 0x102e886
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
pop edi
pop esi
cmp dword [ebp - 8], ebx
pop ebx
je 0x102e897
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
leave
ret 0xc

Function at 0x102e8a3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
and dword [ebp - 4], esi
push esi
push 0x1006ad8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102e8e3
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x102e8f1
jle 0x102e8ef
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 4], 0
je 0x102e900
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8
Function at 0x102e90c
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
and dword [ebp - 4], esi
push esi
push 0x1006ad8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102e944
push dword [ebp + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
test eax, eax
je 0x102e952
jle 0x102e950
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 4], 0
je 0x102e961
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4

Function at 0x102eebe
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x104a328]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
cmp dword [ebp + 0xc], 5
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x808], edi
mov eax, 0x80000001
mov dword [ebp - 0x810], edi
mov byte [esi], 0
je 0x102ef04
cmp dword [ebp + 0xc], 4
jne 0x102ef04
inc eax
lea ecx, [ebp - 0x808]
push ecx
push 8
push edi
push 0x1006b48
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x102ef2a
mov dword [ebp - 0x810], 0x80004005
jmp 0x102efa2
push ebx
xor eax, eax
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push edi
push eax
mov dword [ebp - 0x80c], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x804]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x102ef90
push dword [ebp - 0x814]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x102ef9e
inc dword [ebp - 0x80c]
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x80c]
push dword [ebp - 0x808]
call edi
test eax, eax
je 0x102ef65
jmp 0x102efa1
mov byte [esi], 1
pop ebx
cmp dword [ebp - 0x808], 0
pop edi
pop esi
je 0x102efb9
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x810]
xor ecx, ebp
call fcn.0102da5f
leave
ret 0xc
Function at 0x102f0ab
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0x1bc
mov eax, 0x1043b3f
call fcn.0102dae7
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1b8], edi
call fcn.0103273a
xor eax, eax
push 0x18e
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x19e]
xor ecx, ecx
push eax
mov word [ebp - 0x1a0], cx
call sub.msvcrt.dll_memset
mov ebx, 0x80
push ebx
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x102f159
mov eax, 0x80004005
push eax
push 0x1006c40
mov dword [ebp - 0x1a4], eax
push 0x57d
push 0x10068a8
push 0x10018c8
mov ecx, 0x104abe8
call fcn.0102f8f0
jmp 0x102f2d1
push esi
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1b4], 1
call fcn.0103280e
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x1a4], eax
jge 0x102f188
push eax
push 0x1006c40
push 0x582
jmp 0x102f140
cmp dword [ebp - 0x1c4], edi
jg 0x102f1b4
push edi
push 0x1006c40
push 0x584
push 0x10068a8
push 0x10018c8
mov ecx, 0x104abe8
call fcn.0102f8f0
jmp 0x102f2c7
cmp dword [ebp - 0x1c4], edi
mov dword [ebp - 0x1ac], edi
jle 0x102f2c7
mov eax, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1b0]
push ecx
mov ecx, dword [ebp - 0x1bc]
shl eax, 2
push edi
push dword [eax + ecx]
mov ecx, dword [ebp - 0x1c0]
push dword [eax + ecx]
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
je 0x102f215
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x102f207
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x1a4], eax
jl 0x102f308
mov esi, dword [ebp - 0x1b0]
cmp esi, edi
je 0x102f2a7
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x102f255
cmp dword [esi + 0x18], edi
je 0x102f2a0
mov edi, dword [esi + 0x18]
lea eax, [edi + 4]
push eax
call fcn.0102f02e
xor ecx, ecx
cmp al, 1
setne cl
lea ecx, [ecx + ecx + 1]
mov eax, ecx
cmp eax, dword [ebp - 0x1a8]
jle 0x102f29e
push 0x10
jmp 0x102f282
cmp eax, 0x17
jne 0x102f2a0
cmp dword [esi + 0x18], edi
je 0x102f2a0
mov edi, dword [esi + 0x18]
lea eax, [edi + 8]
push eax
call fcn.0102f065
xor ecx, ecx
cmp al, 1
sete cl
lea ecx, [ecx + ecx + 2]
mov eax, ecx
cmp eax, dword [ebp - 0x1a8]
jle 0x102f29e
push 0x1c
push edi
push ebx
push dword [ebp - 0x1b8]
mov dword [ebp - 0x1a8], eax
call sub.msvcrt.dll_memcpy_s
mov esi, dword [ebp - 0x1b0]
add esp, 0x10
xor edi, edi
push esi
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
inc dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1ac]
cmp eax, dword [ebp - 0x1c4]
jl 0x102f1c6
cmp dword [ebp - 0x1a8], edi
jne 0x102f2d1
mov dword [ebp - 0x1a4], 0x80004005
lea ecx, [ebp - 0x1c8]
call fcn.0103274f
cmp dword [ebp - 0x1b4], 1
jne 0x102f2eb
call dword [sym.imp.WS2_32.dll_WSACleanup]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c8]
call fcn.01032804
mov eax, dword [ebp - 0x1a4]
call fcn.0102db79
ret 8
push dword [ebp - 0x1a4]
push 0x1006c40
push 0x590
jmp 0x102f140
Function at 0x102f3d1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x104a328]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0xa10], esi
call sub.msvcrt.dll_memset
xor eax, eax
push 0x7fe
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
cmp dword [ebp + 8], esi
je 0x102f47a
push 1
push dword [ebp + 8]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x102f4a3
push esi
push 0x1006cc0
push 0xe9
push 0x10068a8
push 0x10018c8
mov ecx, 0x104abe8
call fcn.0102f8f0
mov dword [ebp - 0xa10], 0x80004005
jmp 0x102f51c
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x102f48f
cmp eax, esi
jbe 0x102f4a1
mov eax, 0x80004005
push eax
push 0x1006cc0
push 0xf1
jmp 0x102f502
xor esi, esi
lea eax, [ebp - 0x20c]
cmp ebx, esi
je 0x102f4e5
push ebx
push eax
push 0x1006cb4
lea eax, [ebp - 0xa0c]
push 0x400
push eax
call fcn.0100ad97
add esp, 0x14
cmp eax, esi
mov dword [ebp - 0xa10], eax
jge 0x102f4df
push eax
push 0x1006cc0
push 0x100
jmp 0x102f508
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
cmp eax, esi
jne 0x102f51c
mov eax, 0x8007000e
push eax
push 0x1006cc0
push 0x108
mov dword [ebp - 0xa10], eax
push 0x10068a8
push 0x10018c8
mov ecx, 0x104abe8
call fcn.0102f8f0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102da5f
leave
ret 0xc

Function at 0x102f538
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
cmp ebx, edi
jne 0x102f562
mov esi, 0x80004005
jmp 0x102f5c8
lea eax, [ebp - 4]
push eax
push 2
push edi
push 0x1006ad8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x102f5b3
lea eax, [ebp - 8]
push eax
push 0x7fffffff
push ebx
call fcn.01023127
test eax, eax
jge 0x102f597
mov esi, 0x80004005
jmp 0x102f5c1
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
je 0x102f5c1
jle 0x102f5bf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 4], edi
je 0x102f5d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x102fce3
Capabilities:
Create tcp socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push esi
push esi
push esi
push 6
push 1
push 2
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x102fd36
push esi
push 0x1006d9c
push 0x463
push 0x1006d38
push 0x10018c8
mov ecx, 0x104abe8
call fcn.0102f8f0
mov dword [ebp - 8], 0x80004005
jmp 0x102fe30
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAIoctl]
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push esi
push esi
push esi
mov ebx, 0x48000016
push ebx
push eax
call edi
cmp dword [ebp - 4], esi
jne 0x102fd81
push esi
push 0x1006d9c
push 0x471
push 0x1006d38
push 0x10018c8
mov ecx, 0x104abe8
call fcn.0102f8f0
mov dword [ebp - 8], 0x80004005
jmp 0x102fe25
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x102fdc3
mov eax, 0x8007000e
push eax
push 0x1006d9c
push 0x473
push 0x1006d38
push 0x10018c8
mov ecx, 0x104abe8
mov dword [ebp - 8], eax
call fcn.0102f8f0
jmp 0x102fe25
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
push eax
push esi
push esi
push ebx
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x102fe04
push esi
push 0x1006d9c
push 0x483
push 0x1006d38
push 0x10018c8
mov ecx, 0x104abe8
call fcn.0102f8f0
mov dword [ebp - 8], 0x80004005
jmp 0x102fe0f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], esi
je 0x102fe25
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret 4