joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100174f0
Capabilities:
Print debug messages

Disassembly:
cmp ecx, 0xc00002b6
jg 0x10017567
je 0x10017561
cmp ecx, 0xc0000022
jg 0x1001752d
je 0x10017527
add ecx, 0x3fffffff
cmp ecx, 0x1c
ja case.0x10017586.1071775737
movzx eax, byte [ecx + 0x10017604]
jmp dword [eax*4 + 0x100175ec]
mov eax, 0x88760872
ret
mov eax, 0x8876086a
ret
add ecx, 0x3fffff6a
cmp ecx, 0x97
ja case.0x10017586.1071775737
movzx eax, byte [ecx + 0x10017638]
jmp dword [eax*4 + 0x10017624]
mov eax, 0x80070057
ret
mov eax, 0x8007000e
ret
mov eax, 0x88760871
ret
mov eax, 0x88760879
ret
mov eax, 0x88760870
ret
cmp ecx, 0xc01e0109
jg 0x100175b6
je 0x100175b0
add ecx, 0x3fe1fffa
cmp ecx, 0xfc
ja case.0x10017586.1071775737
movzx eax, byte [ecx + 0x100176e4]
jmp dword [eax*4 + 0x100176d0]
mov eax, 0x8876021c
ret
mov eax, 0x8876017c
ret
push 0x100043c0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, 0x80004005
ret
mov eax, 0xc0262109
ret
test ecx, ecx
jg 0x100175de
je case.0x10017586.1071775738
cmp ecx, 0xc01e0111
je 0x100175d5
lea eax, [ecx + 0x3fe1feee]
cmp eax, 3
ja case.0x10017586.1071775737
mov eax, 0x88760873
ret
mov eax, 0xc0262111
ret
xor eax, eax
ret
cmp ecx, 0x103
jne case.0x10017586.1071775737
mov eax, 0x8000000a
ret
Function at 0x100177f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100a70b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov dword [ebp - 0x20], esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [edi + 4], 0
mov edx, eax
mov dword [ebp - 0x24], edx
mov ebx, edx
je 0x1001795d
test esi, esi
je 0x1001795d
mov esi, dword [edi + 0xcc]
sub eax, esi
mov ecx, dword [edi + 0xd0]
cmp eax, ecx
jae 0x10017850
sub ecx, edx
add ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
mov edi, dword [edi]
mov ecx, dword [ecx + 0x2c]
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, ecx
cdq
mov ecx, 0x64
and edx, 7
lea esi, [edx + eax]
sar esi, 3
mov dword [ebp - 0x18], esi
lea ecx, [ecx]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp dword [0x100a8520], eax
je 0x100178a2
mov ecx, edi
call fcn.10016730
mov ecx, 0x64
test byte [edi + 0x8c], 2
jne 0x1001796e
mov eax, dword [edi + 0xb30]
mov esi, dword [0x100a84a8]
mov ecx, esi
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xb3c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
call dword [0x100ad4e8]
call esi
mov esi, eax
mov edx, edi
mov ecx, esi
call fcn.1000f270
test eax, eax
jne 0x100178ef
mov ecx, esi
call fcn.100174f0
test eax, eax
jne 0x1001795b
mov ecx, dword [edi + 0x116c]
mov eax, dword [ebp - 8]
cmp ecx, 2
je 0x10017902
cmp ecx, 4
jne 0x1001791d
cmp byte [ebp - 0xc], 0
jne 0x1001791d
mov esi, dword [edi + 0x117c]
test esi, esi
je 0x1001791d
imul eax, dword [edi + 0x1180]
xor edx, edx
div esi
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
cmp ecx, dword [edx + 4]
jl 0x1001795b
mov ecx, dword [edx + 0xc]
cmp eax, ecx
jg 0x1001795b
add eax, esi
cmp eax, ecx
jge 0x10017942
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov ecx, 0x64
sub eax, dword [ebp - 0x24]
cmp eax, 0x1e
jb 0x10017880
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret
mov edx, dword [0x100a848c]
mov eax, edx
add edx, 0xa
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edx
mov dword [0x100a848c], ecx
jmp 0x10017920
Function at 0x1001f6d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100a70b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3c
mov esi, ecx
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x10004f7c
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10004f88
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test edi, edi
je 0x1001f838
test ebx, ebx
je 0x1001f838
push 0x10004f98
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10004fa8
push edi
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10004fb8
push edi
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10004fd0
push edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10004ff4
push edi
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10005018
push edi
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10005034
push edi
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10005050
push edi
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10005074
push edi
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10005094
push edi
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100050b0
push ebx
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi + 0x18], 0
mov dword [esi + 0x38], eax
je 0x1001f838
cmp dword [esi + 0x10], 0
je 0x1001f838
cmp dword [esi + 0x14], 0
je 0x1001f838
cmp dword [esi + 0x20], 0
je 0x1001f838
cmp dword [esi + 0x1c], 0
je 0x1001f838
mov ecx, dword [esi + 0x24]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x1001f838
cmp dword [esi + 0x28], 0
je 0x1001f838
cmp dword [esi + 0x2c], 0
je 0x1001f838
cmp dword [esi + 0x30], 0
je 0x1001f838
cmp dword [esi + 0x34], 0
je 0x1001f838
test eax, eax
je 0x1001f838
push 0
push 0
lea eax, [esi + 0xc]
push eax
call dword [0x100ad4e8]
call dword [ebp - 8]
test eax, eax
je 0x1001f838
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi], 1
jmp 0x1001f84b
cmp dword [esi], 0
jne 0x1001f84b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret
Function at 0x10023660
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100a70b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [edi], 0x10001068
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], 0
test eax, eax
jne 0x100236b1
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100ad4e8]
call esi
xor eax, eax
lea ecx, [eax + 1]
jmp 0x100236b8
mov eax, 1
xor ecx, ecx
mov dword [edi + 4], ecx
lea esi, [edi + 0x84]
mov dword [edi + 8], eax
push 0xdc
push 0
push esi
mov dword [edi], 0x10001060
mov dword [edi + 0x1c], 0x1000104c
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 0x1a0], 0xffffffff
mov dword [edi + 0x1b0], 0
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0xc]
add esp, 0xc
mov eax, dword [eax + 0x208]
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0xc0], 0xcc0020
mov dword [edi + 0x15c], 0x80004005
mov dword [edi + 0x1b4], eax
mov dword [edi + 0x1b8], eax
lea eax, [ebp - 8]
push eax
push 0x100040c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002380a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x10005498
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100237ce
cmp dword [ebp - 0xc], eax
je 0x100237ce
or dword [edi + 0x194], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x100054a8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10023801
cmp dword [ebp - 0xc], eax
je 0x10023801
or dword [edi + 0x194], 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
mov dword [edi + 0x198], 0
push eax
push 0x100054b4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10023865
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100054d4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002385c
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x198], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100054e8
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x1ac], eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret 8
Function at 0x10037bb0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
call fcn.10037920
mov edi, eax
add esp, 4
test edi, edi
jne 0x10037be2
push 0x100056a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x80004005
pop edi
pop ebp
ret 0x10
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10037c35
mov eax, dword [edi + 0x24]
test eax, eax
je 0x10037bf7
mov eax, dword [eax + 8]
inc eax
jmp 0x10037bf9
xor eax, eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
jne 0x10037c2d
push 0x100056a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [edi + 0x18]
push ecx
mov ecx, edi
call fcn.10037b10
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x10
push eax
mov ecx, edi
call fcn.10037c50
mov esi, dword [edi + 0x18]
push ecx
mov ecx, edi
call fcn.10037b10
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x10

Function at 0x1003aaa0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a083b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100a70b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 0x10]
mov esi, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0xc], 0
mov dword [edi], esi
mov dword [ebp - 0x10], eax
mov edx, 0x14
test esi, esi
je 0x1003ab81
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
jbe 0x1003ab2b
add eax, 0x20
je 0x1003ab55
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
jne 0x1003ab57
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1003ab6c
push 0x1003a860
push fcn.1003a830
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push 0x14
push edi
call fcn.1009feba
jmp 0x1003ab6e
xor edx, edx
mov eax, edx
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
mov dword [edx + ecx - 4], ecx
lea eax, [edx + ecx]
jmp 0x1003ab2d
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], edi
test edi, edi
je 0x1003abcc
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov esi, dword [edi]
xor edx, edx
test esi, esi
je 0x1003aba6
xor eax, eax
jmp 0x1003ab90
mov ecx, dword [ebx]
lea eax, [eax + 0x14]
mov esi, dword [ebp + 0x14]
inc edx
mov dword [ecx + eax - 4], esi
mov esi, dword [edi]
cmp edx, esi
jb 0x1003ab90
mov eax, dword [ebp - 0x10]
inc eax
add ebx, 4
mov dword [ebp - 0x10], eax
cmp eax, 4
jb 0x1003aaef
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x10006a7c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1003ac00
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a086b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100a70b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x30
push 0x40
mov dword [esi], 0x10001b34
mov dword [esi + 0x28], 0
mov dword [esi + 0x18], 0x80004005
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
je 0x1003ac62
and eax, 0x1f
mov ecx, 0x20
sub ecx, eax
add edx, ecx
mov dword [edx - 4], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
test edx, edx
je 0x1003ac8f
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [edx + 8], 0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 0xc], eax
jmp 0x1003ac91
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x24], edx
test edx, edx
jne 0x1003acbe
push 0x10006aa8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x14], eax
test eax, eax
je 0x1003acfb
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x14], eax
jmp 0x1003acfd
xor ecx, ecx
mov dword [esi + 8], ecx
mov eax, esi
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100401b0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x424
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x10040260
push esi
mov ecx, eax
mov edx, 0x20
and ecx, 0x1f
sub edx, ecx
push edi
push 0x400
push 0
lea esi, [eax + edx]
mov dword [esi - 4], edx
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp + 0x10]
mov edx, 0x400
mov ecx, esi
push eax
push dword [ebp + 0xc]
call fcn.1003a3e0
push 0x1000a950
mov edx, 0x400
mov ecx, esi
call fcn.1003a320
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
je 0x10040250
cmp dword [ecx], 0
jne 0x10040222
mov dword [ecx], esi
mov eax, dword [ecx + 4]
test eax, eax
je 0x1004022f
mov dword [eax + 0x400], esi
mov dword [ecx + 4], esi
lea edx, [esi + 1]
mov dword [esi + 0x400], 0
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10040240
sub esi, edx
add dword [ecx + 8], esi
pop edi
pop esi
pop ebp
ret
sub esi, dword [esi - 4]
je 0x1004024c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
ret
push 0x100056a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
ret
Function at 0x10046b10
Capabilities:
Connect pipe

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a70b4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp byte [edi + 0x38], 0
je 0x10046ba0
mov eax, dword [edi]
push esi
push 1
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100ad4e8]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov eax, dword [edi]
push 0
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100ad4e8]
mov ecx, edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret
Function at 0x10048490
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x100040c0
push 0x80000002
mov esi, edx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100484f1
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100484f1
cmp dword [ebp - 8], edi
jne 0x100484f1
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10048500
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100a70b4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1000aa28
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10048683
push esi
push edi
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 0x104
jae 0x10048675
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
push 0
push 0
push 2
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x10048643
mov edi, dword [ebp - 0x110]
add edi, 0xd
mov ecx, edi
call fcn.1000f000
mov esi, eax
test esi, esi
je 0x10048675
lea eax, [ebp - 0x110]
push eax
push esi
push 0
push 2
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x10048635
push 0x1000aa6c
mov edx, edi
mov ecx, esi
call fcn.1003a320
push 0x1000aa70
mov edx, edi
mov ecx, esi
call fcn.1003a320
push edi
push esi
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push 0
push 0x1000aa80
push 0x1000aa90
call dword [sym.imp.ntdll.dll_EtwEventWriteNoRegistration]
sub esi, dword [esi - 4]
je 0x10048675
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10048675
push 0xd
push 0x1000aa70
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push 0
push 0x1000aa80
push 0x1000aa90
call dword [sym.imp.ntdll.dll_EtwEventWriteNoRegistration]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret
Function at 0x10048eb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x260]
mov eax, dword [eax + 0x14]
cmp eax, 4
jl 0x10048ed8
cmp eax, 6
jge 0x10048ee2
test dword [edi + 0x7c], 0xc00
jne 0x10048ee2
or dword [edi + 0x250], 0x2000
test dword [edi + 0x7c], 0x400
jne 0x10048ef5
or dword [edi + 0x250], 0x4000
mov eax, dword [edi + 0xcc]
mov ecx, dword [edi + 0x7f4]
test eax, eax
je 0x10048f96
movzx eax, ax
mov dword [ecx + 0x13814], eax
test dword [edi + 0xcc], 0x80000
je 0x10048f2b
mov eax, dword [edi + 0x7f4]
or dword [eax + 0x12fbc], 0x40
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push 0x100040c0
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10048fa0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1000aaa0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10048fa0
cmp dword [ebp - 0xc], 4
jne 0x10048fa0
cmp dword [ebp - 0x10], esi
je 0x10048fa0
mov eax, dword [edi + 0x7f4]
or dword [eax + 0x12fbc], 0x40
jmp 0x10048fa0
mov dword [ecx + 0x13814], 1
mov eax, dword [edi + 0x7f4]
or dword [edi + 0x7f8], 0x800
mov dword [edi + 0x2d8], 0x11
mov dword [edi + 0x2dc], 6
mov dword [eax + 0x1328c], 0xffffffff
fld dword [edi + 0xb4]
fldz
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x10049014
fld dword [edi + 0xbc]
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x10049014
fld dword [edi + 0xb8]
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x10049014
fld dword [edi + 0xc0]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x100490ac
jmp 0x10049016
fstp st(0)
mov eax, dword [edi + 0x7f4]
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], 0
or dword [eax + 0x12fbc], 2
mov eax, dword [edi + 0x7f4]
mov dword [eax + 0x1328c], 0xfffffff0
lea eax, [ebp - 4]
push eax
push 0x100040c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100490ac
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1000aab0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100490ac
cmp dword [ebp - 0xc], 4
jne 0x100490ac
cmp dword [ebp - 8], esi
je 0x100490ac
mov eax, dword [edi + 0x7f4]
and dword [eax + 0x12fbc], 0xfffffffd
mov eax, dword [edi + 0x7f4]
mov dword [eax + 0x1328c], 0xffffffff
mov eax, dword [edi + 0x7f4]
mov dword [edi + 0x800], 0
mov dword [edi + 0x804], 0
mov dword [edi + 0x808], 0x100a7000
mov dword [eax + 0x11b58], 0
mov ecx, dword [edi + 0x7f4]
mov eax, dword [edi + 0x260]
mov dword [edi + 0x7ec], 0
mov dword [edi + 0x7f0], 0xffffffff
pop edi
mov dword [ecx + 0x1381c], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret