joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003502
Capabilities:
Parse pe header

Disassembly:
push 8
mov eax, 0x10043c54
call fcn.1002e5bb
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10002ea3
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.1000268f
lea ecx, [ebp - 0x10]
call fcn.10001ea5
mov ecx, dword [ebp + 0xc]
push eax
call fcn.1001415c
push 1
push ebx
push dword [ebp + 8]
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
jne 0x10003555
mov dword [esi + 0x1c], ebx
jmp 0x100036d4
push 0x40
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x100036bc
mov eax, 0x5a4d
cmp ax, word [edi]
jne 0x100036bc
mov ebx, dword [edi + 0x3c]
push pe_nt_image_headers32
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x10003696
cmp dword [ebx], 0x4550
jne 0x10003696
mov ebx, dword [ebx + 0x80]
test ebx, ebx
jne 0x100035b9
push edi
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
inc esi
jmp 0x100036b0
add ebx, edi
jne 0x100035d0
push edi
mov dword [esi + 0x1c], 3
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100036ae
mov ecx, esi
call fcn.1000315a
lea eax, [ebx + 0xc]
cmp dword [eax], 0
je 0x1000366a
mov ebx, eax
mov eax, dword [ebx]
add eax, edi
push eax
lea ecx, [ebp + 8]
call fcn.10002ae2
lea eax, [ebp + 8]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10002ffb
cmp eax, 1
jne 0x10003652
lea ecx, [ebp + 8]
call fcn.1000268f
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.10001ea5
mov ecx, dword [ebp + 0xc]
push eax
call fcn.10013f58
test eax, eax
jne 0x10003652
lea ecx, [ebp + 8]
call fcn.10001ea5
mov ecx, dword [ebp + 0xc]
push eax
call fcn.1001415c
push dword [ebp + 0xc]
and dword [eax], 0
lea ecx, [ebp + 8]
call fcn.10001ea5
push eax
mov ecx, esi
call fcn.10003502
test eax, eax
je 0x1000367e
lea ecx, [ebp + 8]
add ebx, 0x14
mov byte [ebp - 4], 0
call fcn.100013a3
cmp dword [ebx], 0
jne 0x100035e5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.100013a3
xor eax, eax
inc eax
jmp 0x100036de
push edi
mov dword [esi + 0x1c], 3
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 8]
call fcn.100013a3
jmp 0x100036ae
push edi
mov dword [esi + 0x1c], 3
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.100013a3
mov eax, esi
jmp 0x100036de
push edi
mov dword [esi + 0x1c], 3
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
lea ecx, [ebp - 0x10]
call fcn.100013a3
xor eax, eax
call fcn.1002e693
ret 8
Function at 0x100063f4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
and dword [ebx], 0
test eax, eax
je 0x1000648a
mov edx, dword [eax + 0x3c]
push esi
mov esi, 0x5a4d
lea ecx, [edx + eax]
cmp word [eax], si
jne 0x10006436
test edx, edx
jle 0x10006436
cmp edx, 0x10000000
jae 0x10006436
cmp dword [ecx], 0x4550
jne 0x10006436
lea esi, [ecx + 4]
add ecx, 0x18
jmp 0x1000643b
mov esi, eax
lea ecx, [eax + 0x14]
push edi
movzx edi, word [ecx]
mov edx, 0x107
sub edi, edx
je 0x1000647b
sub edi, 4
je 0x1000646a
sub edi, 0x100
je 0x10006459
xor eax, eax
jmp 0x10006488
push ecx
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.10006306
jmp 0x10006488
push ecx
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.100062c5
jmp 0x10006488
push ecx
push esi
push ebx
push dword [ebp + 0x10]
push edx
push eax
call fcn.10006347
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1000648f
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100064d7
push edi
movzx edi, word [eax + 6]
test edi, edi
jne 0x100064a4
xor eax, eax
jmp 0x100064d6
movzx ecx, word [eax + 0x14]
push ebx
push esi
lea esi, [ecx + eax + 0x18]
xor eax, eax
test edi, edi
jbe 0x100064d2
lea ecx, [esi + 0x10]
mov edx, dword [ecx - 4]
cmp dword [esp + 0x18], edx
jb 0x100064ca
mov ebx, dword [ecx]
add ebx, edx
cmp dword [esp + 0x18], ebx
jb 0x100064da
inc eax
add ecx, 0x28
cmp eax, edi
jb 0x100064b7
xor eax, eax
pop esi
pop ebx
pop edi
ret 0xc
imul eax, eax, 0x28
add eax, esi
jmp 0x100064d4
Function at 0x1000715f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0x10], edi
jbe 0x100071dd
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [0x100594bc]
xor edx, edx
lea eax, [edi + 1]
div ecx
mov edi, edx
mov bl, byte [edi + esi]
movzx eax, bl
add eax, dword [ebp - 4]
xor edx, edx
div ecx
lea eax, [edx + esi]
mov cl, byte [eax]
mov byte [edi + esi], cl
mov byte [eax], bl
movzx eax, byte [edi + esi]
movzx ecx, bl
add eax, ecx
mov dword [ebp - 4], edx
xor edx, edx
div dword [0x100594bc]
mov eax, dword [ebp + 0xc]
mov bl, byte [0x10059528]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
lea ecx, [edx + eax]
mov al, bl
imul bl
mov ebx, dword [ebp - 0xc]
mov bl, byte [ebx + esi]
sub bl, al
xor byte [ecx], bl
inc edx
mov dword [ebp - 8], edx
cmp edx, dword [ebp + 0x10]
jb 0x10007178
pop esi
pop ebx
pop edi
leave
ret
Function at 0x1000eb62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1000eba9
call fcn.10011f5f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000eba9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1000ebc5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1000e6da
mov esi, eax
test edi, edi
je 0x1000ebc3
test ebx, ebx
je 0x1000ebc3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1000ef05
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x100445bd
call fcn.1002e5bb
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1000ef2a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1000ef70
lea ecx, [ebp - 0x10]
call fcn.1000138f
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10015904
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001080
mov eax, esi
call fcn.1002e693
ret 8

Function at 0x10010a11
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.10011f5f
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10010a4a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.1001065d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x10010aa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x10010acc
cmp dword [edi + 0x54], 0
jne 0x10010acc
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10011f5f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10010a69
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10025183
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.10011f5f
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x100251b0
xor eax, eax
jmp 0x10025256
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x100251a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100251a9
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10008037
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x10025207
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x100251f6
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.10023f11
push edi
mov ebx, eax
call fcn.10008071
pop ecx
test ebx, ebx
je 0x10025249
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.10024598
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.1002464c
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x10028f02
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x10045619
call fcn.1002e5bb
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10002ea3
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x10028f64
call fcn.10011810
cmp eax, 1
jne 0x10028f64
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1001d43f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.1000298e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10001080
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001080
mov eax, esi
call fcn.1002e693
ret 0x10

Function at 0x10028f8d
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x10045619
call fcn.1002e5bb
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10002ea3
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x10028fef
call fcn.10011810
cmp eax, 1
jne 0x10028fef
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1001d43f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.1000298e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10001080
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001080
mov eax, esi
call fcn.1002e693
ret 0x14
Function at 0x1002e5ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005a660]
jne 0x1002e5b6
repz ret
jmp fcn.10035bec

Function at 0x1003d48b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10035564
and dword [ebp - 4], 0
cmp dword [0x1005e4c0], 0
mov ebx, eax
jne 0x1003d53c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1003d5ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1003d5ed
push eax
call fcn.100354f2
mov dword [esp], 0x1004f38c
push edi
mov dword [0x1005e4c0], eax
call esi
push eax
call fcn.100354f2
mov dword [esp], 0x1004f378
push edi
mov dword [0x1005e4c4], eax
call esi
push eax
call fcn.100354f2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1005e4c8], eax
call esi
push eax
call fcn.100354f2
pop ecx
mov dword [0x1005e4d0], eax
test eax, eax
je 0x1003d53c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100354f2
pop ecx
mov dword [0x1005e4cc], eax
mov eax, dword [0x1005e4cc]
cmp eax, ebx
je 0x1003d594
cmp dword [0x1005e4d0], ebx
je 0x1003d594
push eax
call fcn.1003556d
push dword [0x1005e4d0]
mov esi, eax
call fcn.1003556d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1003d594
test edi, edi
je 0x1003d594
call esi
test eax, eax
je 0x1003d58b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1003d58b
test byte [ebp - 0xc], 1
jne 0x1003d594
or dword [ebp + 0x10], 0x200000
jmp 0x1003d5cd
mov eax, dword [0x1005e4c4]
cmp eax, ebx
je 0x1003d5cd
push eax
call fcn.1003556d
pop ecx
test eax, eax
je 0x1003d5cd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1003d5cd
mov eax, dword [0x1005e4c8]
cmp eax, ebx
je 0x1003d5cd
push eax
call fcn.1003556d
pop ecx
test eax, eax
je 0x1003d5cd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1005e4c0]
call fcn.1003556d
pop ecx
test eax, eax
je 0x1003d5ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1003d5ef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002445
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x1012d58], bl
jne 0x10024d1
push esi
push 4
pop esi
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x1001290
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10024c9
lea eax, [ebp - 0xc]
push eax
push 0x1012034
lea eax, [ebp - 8]
push eax
push ebx
push 0x1001260
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10024b6
cmp dword [ebp - 8], esi
jne 0x10024b6
cmp dword [0x1012034], esi
mov dword [0x1012034], esi
je 0x10024c0
mov dword [0x1012034], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x1012d58], 1
pop esi
mov eax, dword [0x1012034]
pop ebx
leave
ret

Function at 0x1002714
Capabilities:
Access the windows event log
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
je 0x1002797
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10027a3
cmp dword [ebp - 0xc], 0x10
jne 0x100278e
cmp dword [ebp - 8], 3
jne 0x100278e
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10027a3
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x100279e
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x100279e
mov dword [ebp - 4], 0x3f2
cmp dword [ebp - 4], ebx
je 0x10027e1
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
cmp esi, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
je 0x10027e1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 4
push 2
push ebx
push 0x800007d6
push ebx
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov edi, dword [ebp + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10027f0
Capabilities:
Access the windows event log
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
je 0x100286d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call edi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1002879
cmp dword [ebp - 0xc], 4
jne 0x1002864
cmp dword [ebp - 8], 4
je 0x100283d
cmp dword [ebp - 8], 3
jne 0x1002864
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], esi
call edi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1002879
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x1002874
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x1002874
mov dword [ebp - 4], 0x3f2
cmp dword [ebp - 4], esi
je 0x10028b4
mov edi, dword [ebp + 0x14]
cmp edi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
je 0x10028b4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 4
push 2
push esi
push 0x800007d6
push esi
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [edi]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10028c3
Capabilities:
Access the windows event log
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x1c]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [eax], esi
je 0x100295b
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x100296b
cmp dword [ebp - 8], 2
jbe 0x1002949
push dword [ebp - 8]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, esi
je 0x1002952
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1002962
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x1002962
mov dword [ebp - 4], 0xe
jmp 0x1002962
mov dword [ebp - 4], 0x3f2
cmp dword [ebp - 4], esi
je 0x1002a09
cmp ebx, esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
je 0x100298b
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov dword [ebp - 8], esi
cmp dword [ebp + 0x14], esi
je 0x1002a04
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 1
mov dword [ebp - 8], eax
jbe 0x1002a04
add eax, eax
push eax
push 8
mov dword [ebp - 8], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 4
push 2
push esi
je 0x10029e9
push 0x800007d6
push esi
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 4], esi
jmp 0x1002a09
push 0x800007d7
push esi
push 2
push dword [0x1012b30]
mov dword [ebp - 4], 0xe
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp dword [ebp - 4], esi
jne 0x1002a2c
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
cmp eax, esi
je 0x1002a1d
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [eax], ebx
mov eax, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x1002a40
cmp ebx, esi
je 0x1002a40
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1003a63
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push edi
lea eax, [ebp - 0x18]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1001790
push 0x80000002
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x1003ba8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push 0x1001758
push dword [ebp - 0x18]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call ebx
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x1003ba7
cmp dword [ebp - 8], edi
jbe 0x1003ba7
push esi
push dword [ebp - 8]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x1003b9f
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push edi
mov word [esi], di
push 0x1001758
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
call ebx
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x1003b8e
cmp dword [ebp - 8], edi
jbe 0x1003b8e
cmp word [esi], di
je 0x1003b8e
mov dword [ebp - 4], edi
mov ebx, esi
inc dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], di
jne 0x1003b1c
mov eax, dword [ebp - 4]
shl eax, 2
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [0x1012b38], eax
je 0x1003b86
cmp dword [ebp - 4], edi
mov ebx, esi
mov dword [ebp - 0xc], edi
jle 0x1003b86
cmp word [ebx], di
je 0x1003b86
push ebx
call fcn.01009ce6
mov edx, dword [ebp - 0xc]
pop ecx
mov ecx, dword [0x1012b38]
push ebx
mov dword [ecx + edx*4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc dword [ebp - 0xc]
lea ebx, [ebx + eax*2 + 2]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jl 0x1003b58
mov eax, dword [ebp - 4]
mov dword [0x1012b3c], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003ba6
mov dword [ebp - 0x10], 0xe
pop esi
pop ebx
mov eax, dword [ebp - 0x10]
pop edi
leave
ret