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

Disassembly:
push 0x58
push 0x1014ce0
call fcn.01008604
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1017c4c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1008106
cmp eax, esi
jne 0x10080f9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1008109
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10080e0
xor esi, esi
inc esi
mov eax, dword [0x1017c48]
cmp eax, esi
jne 0x100811c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100814b
mov eax, dword [0x1017c48]
test eax, eax
jne 0x1008145
mov dword [0x1017c48], esi
push 0x10013d8
push 0x10013d0
call fcn.01008045
pop ecx
pop ecx
test eax, eax
je 0x100814b
jmp 0x1008273
mov dword [0x1017520], esi
mov eax, dword [0x1017c48]
cmp eax, esi
jne 0x100816f
push 0x10013cc
push 0x10013a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1017c48], 2
test ebx, ebx
jne 0x100817b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1017c5c], 0
je 0x100819f
push 0x1017c5c
call fcn.010089fb
pop ecx
test eax, eax
je 0x100819f
push 0
push 2
push 0
call dword [0x1017c5c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10081fb
test al, al
je 0x10081b9
cmp dword [ebp - 0x1c], 0
jne 0x10081fb
mov al, byte [esi]
test al, al
je 0x10081c9
cmp al, 0x20
ja 0x10081c9
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10081b9
test byte [ebp - 0x3c], 1
je 0x10081d5
movzx eax, word [ebp - 0x38]
jmp 0x10081d8
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x101751c], eax
cmp dword [0x1017510], 0
jne 0x100824f
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x100820a
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x100821d
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10081a6
cmp dword [0x1017520], 0
jne 0x100825e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101751c]
jmp 0x100827f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01008649
ret
call fcn.01008b45
jmp 0x10080a6

Function at 0x1008970
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1008983
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100897f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x10089b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10089ef
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10089e5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10089f1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10089d5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100ad9a
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x120]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001e00
push bind
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x100adf3
jle 0x100adec
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100ae89
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
push 0x1001de0
push dword [ebp - 0x120]
mov dword [ebp - 0x124], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x100ae76
jle 0x100ae34
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x100ae89
xor eax, eax
inc eax
cmp dword [ebp - 0x114], 5
ja 0x100ae6c
jne 0x100ae89
cmp dword [ebp - 0x110], eax
jb 0x100ae89
mov dword [ebp - 0x11c], eax
xor esi, esi
jmp 0x100ae89
mov esi, dword [ebp - 0x128]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0x8000ffff
cmp dword [ebp - 0x120], ebx
je 0x100ae9d
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jge 0x100aea7
mov dword [ebp - 0x11c], ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x11c], ebx
pop esi
setne al
xor ecx, ebp
pop ebx
call fcn.01008397
leave
ret
Function at 0x100c10d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ecx]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], ecx
jne 0x100c12a
mov eax, 0x80004005
jmp 0x100c1ad
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [ebp + 0x10]
push edi
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push eax
call esi
cmp eax, ebx
jle 0x100c155
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x100c1ab
cmp dword [ebp - 4], 3
je 0x100c164
mov eax, 0xc00d002f
jmp 0x100c1ab
mov ebx, dword [ebp + 0xc]
push dword [edi]
mov ecx, ebx
call fcn.01003033
mov eax, dword [ebx]
test eax, eax
jne 0x100c17d
mov eax, 0x8007000e
jmp 0x100c1ab
push dword [edi]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push dword [ebx]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0
push dword [ebp + 8]
push dword [eax]
call esi
test eax, eax
jle 0x100c1ab
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100c620
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x120], eax
mov eax, dword [eax]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x11c], edx
jne 0x100c662
mov eax, 0x80004005
jmp 0x100c756
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x110]
push edx
push edi
lea edx, [ebp - 0x114]
push edx
push edi
push ecx
push eax
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], edi
call esi
cmp eax, edi
jle 0x100c698
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x100c752
cmp dword [ebp - 0x114], 1
je 0x100c6b5
mov ebx, 0xc00d002f
jmp 0x100c752
mov eax, dword [ebp - 0x110]
add eax, 2
push eax
lea ecx, [ebp - 0x10c]
call fcn.01003495
cmp dword [ebp - 0x10c], edi
jne 0x100c6d9
mov ebx, 0x8007000e
jmp 0x100c747
mov eax, dword [ebp - 0x110]
add eax, 2
push eax
push edi
push dword [ebp - 0x10c]
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x10c]
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x120]
push edi
push dword [ebp - 0x118]
push dword [eax]
call esi
cmp eax, edi
jle 0x100c725
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x100c747
mov esi, dword [ebp - 0x11c]
push 0xffffffffffffffff
push dword [ebp - 0x10c]
mov ecx, esi
mov dword [esi + 4], edi
mov dword [esi], edi
call fcn.010034eb
mov ebx, dword [esi]
lea ecx, [ebp - 0x10c]
call fcn.010029e3
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01008397
leave
ret 8
Function at 0x100d6e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push 0x1017888
mov dword [ebp - 0x10], esi
mov dword [0x1017888], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push esi
push esi
push 0x100213c
push bind
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100d772
push 4
pop edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1002124
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x100d772
cmp dword [ebp - 8], edi
jne 0x100d772
cmp dword [ebp - 0xc], esi
je 0x100d772
mov ebx, esi
jmp 0x100d7c7
call fcn.0100d5b8
test eax, eax
jne 0x100d780
push 3
pop edi
jmp 0x100d7e5
push 0x1002118
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
je 0x100d7c7
push 0x1002100
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x10179ac], eax
je 0x100d7c7
lea eax, [ebp - 0x10]
push eax
call fcn.0100d681
test eax, eax
jl 0x100d7c1
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x100d7c1
call fcn.0100d6cc
jmp 0x100d7d2
mov dword [0x10179ac], esi
xor edi, edi
cmp dword [0x1017898], 1
jne 0x100d7d5
xor edi, edi
inc edi
cmp ebx, esi
je 0x100d7e5
cmp edi, 1
je 0x100d7e5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1017394], edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100e586
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x100156c
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x100e5dc
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push eax
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x100e5ea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0x10
Function at 0x100e5f7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
jne 0x100e61b
push 0x57
pop eax
jmp 0x100e6de
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x100e613
push edi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x100e65c
cmp edi, 2
jne 0x100e6cd
push esi
mov dword [esi], ebx
call fcn.0100e2d6
mov edi, eax
cmp edi, ebx
jne 0x100e6cd
xor edi, edi
jmp 0x100e6c4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
cmp eax, ebx
je 0x100e67d
cmp eax, 0x7a
jne 0x100e6b6
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [esi], eax
jne 0x100e691
push 0xe
pop edi
jmp 0x100e6cd
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
mov edi, eax
cmp edi, ebx
je 0x100e6cd
mov eax, dword [esi]
cmp eax, ebx
je 0x100e6b6
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
mov dword [esi], ebx
call fcn.0100e2d6
mov edi, eax
cmp edi, ebx
jne 0x100e6cd
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
cmp dword [ebp - 4], ebx
je 0x100e6db
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x100ebda
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
jne 0x100ebf8
push 0x57
pop eax
jmp 0x100ec7b
cmp dword [ebp + 0xc], esi
je 0x100ebf0
push 2
push 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov eax, dword [ebp - 0x18]
cmp eax, esi
jbe 0x100ec78
mov esi, dword [sym.imp.ADVAPI32.dll_DeleteAce]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
lea edi, [eax - 1]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x100ec46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100ec70
mov eax, dword [ebp - 8]
mov cl, byte [eax]
test cl, cl
je 0x100ec59
cmp cl, 1
je 0x100ec59
cmp cl, 2
jne 0x100ec70
add eax, 8
push eax
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x100ec70
push edi
push dword [ebp + 8]
call esi
and dword [ebp - 4], 0
dec edi
dec dword [ebp - 0xc]
jne 0x100ec29
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x101027d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, 0x1017b5c
push esi
mov ecx, ebx
call fcn.01010117
xor esi, esi
cmp dword [0x1017b4c], esi
mov dword [ebp - 4], esi
jne 0x10102b8
call fcn.010101de
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x101037c
mov dword [0x1017b4c], 1
cmp dword [0x1017b50], esi
jne 0x101037c
push edi
push 0x1017a00
mov dword [0x1017a00], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x1002354
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, esi
je 0x101038a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002340
push edi
call esi
push 0x1002334
push edi
mov dword [0x1017b18], eax
call esi
push 0x100232c
push edi
mov dword [0x1017b1c], eax
call esi
push 0x1002320
push edi
mov dword [0x1017b20], eax
call esi
push 0x1002314
push edi
mov dword [0x1017b24], eax
call esi
push 0x1002308
push edi
mov dword [0x1017b28], eax
call esi
push 0x1002300
push edi
mov dword [0x1017b2c], eax
call esi
push 0x10022f4
push edi
mov dword [0x1017b30], eax
call esi
push 0x10022e8
push edi
mov dword [0x1017b34], eax
call esi
push edi
mov dword [0x1017b38], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1017b50], 1
pop edi
mov ecx, ebx
call fcn.0101016f
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
cmp dword [0x1017a10], 2
jne 0x1010371
cmp dword [0x1017a04], 4
jb 0x1010371
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10103b0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x101037b
Function at 0x10103ba
Capabilities:
Obtain transmitpackets callback function via wsaioctl
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ecx, 0x1017b5c
call fcn.01010117
xor eax, eax
inc eax
xor ebx, ebx
cmp dword [0x1017b1c], ebx
mov dword [0x1017b48], eax
je 0x1010533
push esi
push edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
push ebx
push 0x1002388
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
push 4
mov esi, 0xc8000006
pop edi
jne 0x1010456
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x100235c
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1010448
cmp dword [ebp - 0x38], edi
jne 0x1010448
cmp dword [ebp - 0x28], ebx
setne al
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], ebx
je 0x1010486
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x1017b44
push 0x10
push 0x1017400
push esi
push dword [ebp + 8]
call dword [0x1017b1c]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
jne 0x101048c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
jmp 0x101048c
mov dword [0x1017b44], ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x1017b3c
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], 0xb5367df1
mov word [ebp - 0x10], 0xcbac
mov word [ebp - 0xe], 0x11cf
mov byte [ebp - 0xc], 0x95
mov byte [ebp - 0xb], 0xca
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], 0x80
mov byte [ebp - 8], 0x5f
mov byte [ebp - 7], 0x48
mov byte [ebp - 6], 0xa1
mov byte [ebp - 5], 0x92
call dword [0x1017b1c]
push ebx
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x1017b40
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x24], 0xb5367df2
mov word [ebp - 0x20], 0xcbac
mov word [ebp - 0x1e], 0x11cf
mov byte [ebp - 0x1c], 0x95
mov byte [ebp - 0x1b], 0xca
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], 0x80
mov byte [ebp - 0x18], 0x5f
mov byte [ebp - 0x17], 0x48
mov byte [ebp - 0x16], 0xa1
mov byte [ebp - 0x15], 0x92
call dword [0x1017b1c]
pop edi
mov dword [0x10179f8], ebx
pop esi
mov ecx, 0x1017b5c
call fcn.0101016f
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01008397
leave
ret 4
Function at 0x10107cf
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx edx, word [eax]
cmp dx, 2
jne 0x1010808
mov eax, dword [eax + 4]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 9
push 0
push dword [ecx + 0xc]
call dword [sym.imp.WSOCK32.dll_setsockopt]
jmp 0x101082f
cmp dx, 0x17
jne 0x101084e
push esi
push edi
lea esi, [eax + 8]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push 0x10
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push 9
movsd dword es:[edi], dword [esi]
push 0x29
push dword [ecx + 0xc]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WSOCK32.dll_setsockopt]
pop edi
pop esi
cmp eax, 0xffffffff
jne 0x101084a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
jle 0x1010853
and eax, 0xffff
or eax, 0x80070000
jmp 0x1010853
xor eax, eax
jmp 0x1010853
mov eax, 0x80004001
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01008397
leave
ret 4
Function at 0x1012643
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3b0
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x148
lea ecx, [ebp - 0x294]
push ecx
push dword [ebp + 0x1c]
push eax
call fcn.0101239d
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x3a8], eax
jl 0x101271d
push 0xffffffffffffffff
lea eax, [ebp - 0x394]
push edi
lea ecx, [ebp - 0x3a4]
mov dword [ebp - 0x3a4], esi
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x39c], 0x80
mov dword [ebp - 0x3a0], esi
call fcn.010034eb
push 0x20
lea ecx, [ebp - 0x3a4]
call fcn.0100aec5
movzx eax, word [ebp + 0x10]
push 0xa
push eax
lea ecx, [ebp - 0x3a4]
call fcn.010031bf
push 0x20
lea ecx, [ebp - 0x3a4]
call fcn.0100aec5
cmp dword [ebp + 0x14], esi
mov eax, 0x1002478
jne 0x10126f4
mov eax, 0x1002510
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x3a4]
call fcn.010034eb
cmp dword [ebp - 0x3a4], esi
jge 0x101272e
mov esi, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x3a4]
call fcn.01002a06
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008397
leave
ret 0x18
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x3ac]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push bind
mov dword [ebp - 0x3ac], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x101276b
jle 0x1012767
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1012710
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1012774
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x294]
push eax
push 1
push esi
lea ecx, [ebp - 0x3a4]
call fcn.0100345b
push eax
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x10127bf
jle 0x10127b9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x3a8], eax
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x3a8]
jmp 0x1012710
Function at 0x10127db
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x104]
push 0xffffffffffffffff
xor esi, esi
mov dword [ebp - 0x108], ecx
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x10c], 0x80
mov dword [ebp - 0x110], esi
call fcn.010034eb
push 0x20
lea ecx, [ebp - 0x114]
call fcn.0100aec5
movzx eax, word [ebp + 0x10]
push 0xa
push eax
lea ecx, [ebp - 0x114]
call fcn.010031bf
push 0x20
lea ecx, [ebp - 0x114]
call fcn.0100aec5
cmp dword [ebp + 0x14], esi
mov eax, 0x1002478
jne 0x1012865
mov eax, 0x1002510
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x114]
call fcn.010034eb
cmp dword [ebp - 0x114], esi
jge 0x101289e
mov esi, dword [ebp - 0x114]
lea ecx, [ebp - 0x114]
call fcn.01002a06
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01008397
leave
ret 0x10
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push edi
push bind
mov dword [ebp - 0x118], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x10128db
jle 0x10128d7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1012881
lea ecx, [ebp - 0x114]
call fcn.0100345b
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x1012905
jle 0x1012903
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1012881
Function at 0x1013a15
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 0xa
lea ecx, [esi + 0x24]
call fcn.0101384c
test eax, eax
jge 0x1013a33
mov eax, 0x8007000e
jmp 0x1013a94
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x1c], eax
jne 0x1013a5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1013a93
and eax, 0xffff
or eax, 0x80070000
jmp 0x1013a93
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x10139fd
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x18], eax
je 0x1013a8a
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x20], edi
jne 0x1013a91
mov eax, 0x8007000e
jmp 0x1013a93
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1013a9c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x80
xor edi, edi
lea ebx, [esi + 4]
push edi
push ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 0xc
mov dword [esi], 1
push 0x154
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1013b00
mov ecx, eax
call fcn.010136b4
jmp 0x1013b02
xor eax, eax
test eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
je 0x1013b3e
mov ecx, eax
call fcn.01013a15
test eax, eax
jl 0x1013b21
add dword [ebp - 4], 4
inc edi
cmp edi, dword [esi]
jl 0x1013ae3
jmp 0x1013b3e
lea edi, [esi + edi*4 + 4]
mov ecx, dword [edi]
push 0
call fcn.01013867
push dword [edi]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [edi], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret