joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003546
Capabilities:
Connect to http server
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10134e9
mov eax, dword fs:[0]
push eax
mov eax, 0x14ec
call fcn.010083a0
mov eax, dword [0x1016068]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14bc], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [eax], edi
push 0x3c
mov dword [ebp - 0x14b4], eax
lea eax, [ebp - 0x14f8]
push edi
push eax
mov dword [esi + 4], edi
mov dword [esi], edi
call sub.msvcrt.dll_memset
mov eax, 0xffff
mov word [ebp - 0x14e0], ax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14f4], eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x14e8], eax
add esp, 0xc
lea eax, [ebp - 0x1298]
mov dword [ebp - 0x14cc], eax
lea eax, [ebp - 0x14f8]
push eax
push edi
push edi
push ebx
mov dword [ebp - 0x14f8], 0x3c
mov dword [ebp - 0x14f0], 0x20
mov dword [ebp - 0x14e4], 0x100
mov dword [ebp - 0x14c8], 0x824
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x1003631
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100362a
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x100374b
lea eax, [ebp - 0x50]
push 0x1001410
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1003650
mov ebx, 0x80004005
jmp 0x100374f
mov eax, dword [ebp - 0x14cc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1003659
sub eax, edx
sar eax, 1
imul eax, eax, 0x12
inc eax
push eax
lea ecx, [ebp - 0x13a0]
mov dword [ebp - 0x14b8], eax
call fcn.0100be24
mov dword [ebp - 4], edi
cmp dword [ebp - 0x13a0], edi
jne 0x10036a1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13a0]
mov ebx, 0x8007000e
call fcn.0100294d
jmp 0x100374f
lea eax, [ebp - 0x14b8]
push eax
push dword [ebp - 0x13a0]
push 0xffffffffffffffff
push dword [ebp - 0x14cc]
call fcn.0100a473
mov ebx, eax
cmp ebx, edi
jl 0x100373c
push 0xffffffffffffffff
push dword [ebp - 0x13a0]
lea ecx, [ebp - 0x14b0]
call fcn.010034e7
mov ebx, dword [ebp - 0x14b0]
cmp ebx, edi
jl 0x1003731
push edi
push edi
push 3
push edi
push edi
push dword [ebp - 0x14e0]
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x14bc]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 0x14b4]
mov dword [ecx], eax
cmp eax, edi
jne 0x1003721
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100371d
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1003731
lea eax, [ebp - 0x14b0]
push eax
mov ecx, esi
call fcn.0100351a
mov ebx, dword [esi]
lea ecx, [ebp - 0x14b0]
call fcn.01002970
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13a0]
call fcn.0100294d
cmp ebx, edi
jge 0x1003764
mov esi, dword [ebp - 0x14b4]
mov eax, dword [esi]
cmp eax, edi
je 0x1003764
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi], edi
mov eax, ebx
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.010082cb
leave
ret 0x10
Function at 0x1004b59
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1013671
call fcn.010082e0
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esi], edi
call fcn.01002f5f
push 0x101615c
mov dword [ebp - 4], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
push 0xa
mov ecx, ebx
call fcn.01002fea
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jl 0x1004bfd
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push 0x64
push edi
push edi
call ebx
mov dword [esi], eax
cmp eax, edi
jne 0x1004bd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1004bc9
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1004bfd
push edi
push 1
push edi
push edi
call ebx
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x1004bb5
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x1004b43
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c], eax
cmp eax, edi
je 0x1004bb5
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, esi
call fcn.01008353
ret 4

Function at 0x1004d27
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1016068]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x10161d4], 1
push ebx
push esi
push edi
jne 0x1004d56
or dword [0x10161d4], 1
call fcn.01004cc6
mov dword [0x10161d0], eax
push 4
pop eax
call fcn.010083a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004d78
xor eax, eax
jmp 0x1004e35
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x1016110]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x1004d71
cmp eax, 1
je 0x1004e16
mov dword [ebp - 8], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004d71
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
test dword [ebp - 0x1c], ebx
je 0x1004dbf
test dword [ebp - 0x18], 0x100
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
je 0x1004df1
xor eax, eax
inc eax
jmp 0x1004e35
cmp edi, eax
jb 0x1004d71
cmp eax, esi
jae 0x1004e00
mov dword [ebp - 8], esi
push 4
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1016110]
jmp 0x1004e19
mov dword [ebp - 8], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010082cb
leave
ret
Function at 0x10079c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x14
mov eax, 0x1013889
call fcn.01008318
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edi
cmp dword [ebp + 8], edi
je 0x1007a20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x1007a09
push esi
call fcn.01004e4c
test al, al
je 0x1007a09
mov eax, esi
call fcn.01008500
mov eax, esp
jmp 0x1007a12
push esi
lea ecx, [ebp - 0x14]
call fcn.0100620b
push esi
push dword [ebp + 8]
push eax
call fcn.01004f7c
cmp eax, edi
jne 0x1007a3a
mov esi, 0x8007000e
lea ecx, [ebp - 0x14]
call fcn.01005d67
mov eax, esi
lea esp, [ebp - 0x30]
call fcn.0100836c
ret 0x10
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, edi
jne 0x1007a67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x1007a5b
mov esi, eax
jmp 0x1007a25
and eax, 0xffff
or eax, 0x80070000
jmp 0x1007a57
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
jne 0x1007a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1007b0e
and eax, 0xffff
or eax, 0x80070000
jmp 0x1007b0e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x1007a7a
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp byte [esi + ebx], 0
mov edi, ebx
je 0x1007afe
lea edi, [esi + 1]
cmp edi, 0x400
ja 0x1007ad6
push edi
call fcn.01004e4c
test al, al
je 0x1007ad6
mov eax, edi
call fcn.01008500
mov edi, esp
jmp 0x1007ae1
push edi
lea ecx, [ebp - 0x14]
call fcn.0100620b
mov edi, eax
test edi, edi
jne 0x1007aec
mov esi, 0x8007000e
jmp 0x1007b10
lea eax, [esi + 1]
push eax
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
test edi, edi
je 0x1007ae5
push dword [ebp + 0x14]
lea ecx, [ebp - 0x20]
push edi
call fcn.01007695
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1007a25
Function at 0x1008281
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1013f60
call fcn.01008534
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, 0x1016938
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1008038
cmp eax, esi
jne 0x100802b
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100803b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1008012
xor esi, esi
inc esi
mov eax, dword [0x1016934]
cmp eax, esi
jne 0x100804e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100807d
mov eax, dword [0x1016934]
test eax, eax
jne 0x1008077
mov dword [0x1016934], esi
push 0x10013d0
push 0x10013c4
call fcn.01007f77
pop ecx
pop ecx
test eax, eax
je 0x100807d
jmp 0x10081a5
mov dword [0x1016210], esi
mov eax, dword [0x1016934]
cmp eax, esi
jne 0x10080a1
push 0x10013c0
push 0x1001394
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1016934], 2
test ebx, ebx
jne 0x10080ad
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1016944], 0
je 0x10080d1
push 0x1016944
call fcn.01008699
pop ecx
test eax, eax
je 0x10080d1
push 0
push 2
push 0
call dword [0x1016944]
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 0x100812d
test al, al
je 0x10080eb
cmp dword [ebp - 0x1c], 0
jne 0x100812d
mov al, byte [esi]
test al, al
je 0x10080fb
cmp al, 0x20
ja 0x10080fb
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10080eb
test byte [ebp - 0x3c], 1
je 0x1008107
movzx eax, word [ebp - 0x38]
jmp 0x100810a
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x101620c], eax
cmp dword [0x1016200], 0
jne 0x1008181
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x100813c
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 0x100814f
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10080d8
cmp dword [0x1016210], 0
jne 0x1008190
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101620c]
jmp 0x10081b1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01008579
ret
call fcn.010087e6
jmp 0x1007fd8
Function at 0x100a964
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1016068]
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 0x1001df8
push 0x80000001
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x100a9bd
jle 0x100a9b6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100aa53
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
push 0x1001dd8
push dword [ebp - 0x120]
mov dword [ebp - 0x124], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x100aa40
jle 0x100a9fe
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 0x100aa53
xor eax, eax
inc eax
cmp dword [ebp - 0x114], 5
ja 0x100aa36
jne 0x100aa53
cmp dword [ebp - 0x110], eax
jb 0x100aa53
mov dword [ebp - 0x11c], eax
xor esi, esi
jmp 0x100aa53
mov esi, dword [ebp - 0x128]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0x8000ffff
cmp dword [ebp - 0x120], ebx
je 0x100aa67
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jge 0x100aa71
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.010082cb
leave
ret

Function at 0x100bd27
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
mov dword [ebp - 8], ecx
cmp eax, ebx
jne 0x100bd44
mov eax, 0x80004005
jmp 0x100bdc7
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 0x100bd6f
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x100bdc5
cmp dword [ebp - 4], 3
je 0x100bd7e
mov eax, 0xc00d002f
jmp 0x100bdc5
mov ebx, dword [ebp + 0xc]
push dword [edi]
mov ecx, ebx
call fcn.0100b8bf
mov eax, dword [ebx]
test eax, eax
jne 0x100bd97
mov eax, 0x8007000e
jmp 0x100bdc5
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 0x100bdc5
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100c277
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1016068]
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
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x11c], edx
cmp eax, edi
jne 0x100c2b9
mov eax, 0x80004005
jmp 0x100c3ad
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 0x100c2ef
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x100c3a9
cmp dword [ebp - 0x114], 1
je 0x100c30c
mov ebx, 0xc00d002f
jmp 0x100c3a9
mov eax, dword [ebp - 0x110]
add eax, 2
push eax
lea ecx, [ebp - 0x10c]
call fcn.0100be24
cmp dword [ebp - 0x10c], edi
jne 0x100c330
mov ebx, 0x8007000e
jmp 0x100c39e
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 0x100c37c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x100c39e
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.010033f0
mov ebx, dword [esi]
lea ecx, [ebp - 0x10c]
call fcn.0100294d
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.010082cb
leave
ret 8
Function at 0x100d33d
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 0x1016578
mov dword [ebp - 0x10], esi
mov dword [0x1016578], 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 0x1002134
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100d3cb
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 0x100211c
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 0x100d3cb
cmp dword [ebp - 8], edi
jne 0x100d3cb
cmp dword [ebp - 0xc], esi
je 0x100d3cb
mov ebx, esi
jmp 0x100d420
call fcn.0100d211
test eax, eax
jne 0x100d3d9
push 3
pop edi
jmp 0x100d43e
push 0x1002110
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
je 0x100d420
push 0x10020f8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101669c], eax
cmp eax, esi
je 0x100d420
lea eax, [ebp - 0x10]
push eax
call fcn.0100d2da
test eax, eax
jl 0x100d41a
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x100d41a
call fcn.0100d325
jmp 0x100d42b
mov dword [0x101669c], esi
xor edi, edi
cmp dword [0x1016588], 1
jne 0x100d42e
xor edi, edi
inc edi
cmp ebx, esi
je 0x100d43e
cmp edi, 1
je 0x100d43e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1016090], edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100e1df
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 0x100e235
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 0x100e243
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0x10
Function at 0x100e250
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]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
cmp esi, ebx
jne 0x100e274
push 0x57
pop eax
jmp 0x100e337
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x100e26c
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 0x100e2b5
cmp edi, 2
jne 0x100e326
push esi
mov dword [esi], ebx
call fcn.0100df2f
mov edi, eax
cmp edi, ebx
jne 0x100e326
xor edi, edi
jmp 0x100e31d
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 0x100e2d6
cmp eax, 0x7a
jne 0x100e30f
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [esi], eax
cmp eax, ebx
jne 0x100e2ea
push 0xe
pop edi
jmp 0x100e326
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 0x100e326
mov eax, dword [esi]
cmp eax, ebx
je 0x100e30f
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
mov dword [esi], ebx
call fcn.0100df2f
mov edi, eax
cmp edi, ebx
jne 0x100e326
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
cmp dword [ebp - 4], ebx
je 0x100e334
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 0x100e839
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jne 0x100e857
push 0x57
pop eax
jmp 0x100e8da
cmp dword [ebp + 0xc], esi
je 0x100e84f
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 0x100e8d7
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 0x100e8a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100e8cf
mov eax, dword [ebp - 8]
mov cl, byte [eax]
test cl, cl
je 0x100e8b8
cmp cl, 1
je 0x100e8b8
cmp cl, 2
jne 0x100e8cf
add eax, 8
push eax
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x100e8cf
push edi
push dword [ebp + 8]
call esi
and dword [ebp - 4], 0
dec edi
dec dword [ebp - 0xc]
jne 0x100e888
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x100fe15
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, 0x101684c
push esi
mov ecx, ebx
call fcn.0100fcf7
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [0x101683c], esi
jne 0x100fe50
call fcn.0100fd76
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x100ff14
mov dword [0x101683c], 1
cmp dword [0x1016840], esi
jne 0x100ff14
push edi
push 0x10166f0
mov dword [0x10166f0], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x100234c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, esi
je 0x100ff22
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002338
push edi
call esi
push 0x100232c
push edi
mov dword [0x1016808], eax
call esi
push 0x1002324
push edi
mov dword [0x101680c], eax
call esi
push 0x1002318
push edi
mov dword [0x1016810], eax
call esi
push 0x100230c
push edi
mov dword [0x1016814], eax
call esi
push 0x1002300
push edi
mov dword [0x1016818], eax
call esi
push 0x10022f8
push edi
mov dword [0x101681c], eax
call esi
push 0x10022ec
push edi
mov dword [0x1016820], eax
call esi
push 0x10022e0
push edi
mov dword [0x1016824], eax
call esi
push edi
mov dword [0x1016828], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1016840], 1
pop edi
mov ecx, ebx
call fcn.0100fd4f
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
cmp dword [0x1016700], 2
jne 0x100ff09
cmp dword [0x10166f4], 4
jb 0x100ff09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x100ff48
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x100ff13