joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4532a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x486553
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.00479a6e
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.0047f107
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00480623
test eax, eax
je 0x4533bc
mov ecx, dword [esp + 0x3c]
call fcn.0047f134
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 0x453380
push edi
mov ecx, esi
call fcn.0047c7a0
mov ecx, esi
call fcn.00453520
cmp dword [esp + 0x38], 1
jne 0x4533b5
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.0047c8db
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 0x455dd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x455e03
push esi
call fcn.00458ee0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x455dfc
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 0x455e89
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x455e72
mov eax, dword [esi + 8]
test eax, eax
je 0x455e27
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 0x455e6e
cmp eax, 2
je 0x455e72
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x455e1a
cmp eax, 3
je 0x455e4d
cmp eax, 1
jne 0x455e1a
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 0x455e1a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x455e1a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00455eb0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x455e98
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00455eb0
add esp, 4
pop esi
ret

Function at 0x462d10
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x462db3
test eax, eax
jbe 0x462db3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x462db3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x462d5e
xor esi, esi
jmp 0x462d64
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x462d8f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004667e0
add esi, eax
push esi
mov ebx, esi
call fcn.004667e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x462d70
pop ebp
test edi, edi
pop edi
jne 0x462db3
test ebx, ebx
je 0x462db3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00468f60
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x462ef5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46300d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46300d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00479ec0
mov esi, eax
test esi, esi
je 0x46300d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46300d
mov ecx, esi
call fcn.00462e60
cmp edi, eax
jge 0x46300d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x462f93
mov dword [esp + 0x34], 1
jmp 0x462fee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46300d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00461650
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47a864
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47a89c
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.004788f1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004788c9
jmp 0x47a8a8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47bf5a
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 0x47bf9c
call fcn.00481a0e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47bf9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47bf93
xor eax, eax
jmp 0x47bfa4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047bfaa
pop edi
pop esi
pop ebx
ret 4
Function at 0x481f3e
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 0x481f6c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x481f8a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00481ea4
jmp 0x481f8a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x481f8a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00481ea4
test edi, edi
mov eax, edi
jne 0x481f74
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
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:
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 0x80000001
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 [0x10010d4]
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 fcn.01008374
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 fcn.01008374
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 [0x10010d4]
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 0x80000001
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 [0x1001134]
mov ebx, eax
cmp ebx, esi
je 0x100d7c7
push 0x1002100
push ebx
call dword [fcn.01001138]
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 [fcn.0100113c]
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 fcn.01008460
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 fcn.0100838c
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 [fcn.01001188]
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 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 0x80000002
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 [0x1001284]
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 [0x1001288]
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 [0x1001288]
pop edi
pop esi
cmp eax, 0xffffffff
jne 0x101084a
call dword [0x1001284]
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 0x80000001
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