joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476720
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x66e253c]
xor edx, edx
cmp eax, edx
jne 0x476746
xor eax, eax
mov byte [eax + 0x66e243c], al
inc eax
cmp eax, 0x100
jl 0x47672e
mov dword [0x66e253c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x66e243c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4767d7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4767aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x476778
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x476850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4768a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47688a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47d230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a921e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047db50
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x668d564
call fcn.0049af3b
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47d2c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049af3b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47d2bc
push 0
mov ecx, eax
call fcn.00474360
mov dword [esi + 0xc], eax
jmp 0x47d2c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47d2c5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x100012f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
jne 0x10001303
xor al, al
jmp 0x100013f0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ecx, 1
test ecx, ecx
je 0x10001336
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0xe9
jne 0x1000132b
jmp 0x10001336
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x10001310
cmp dword [ebp - 4], 5
jae 0x10001343
xor al, al
jmp 0x100013f0
mov edx, 1
imul eax, edx, 5
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
add eax, dword [ecx + 1]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x1c]
push eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10001381
xor al, al
jmp 0x100013f0
mov dword [ebp - 8], 0
jmp 0x10001393
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jae 0x100013ad
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x1000138a
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100013d0
xor al, al
jmp 0x100013f0
push 0x8000
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100013ee
xor al, al
jmp 0x100013f0
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10003f80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
push 0x400
mov ecx, dword [ebp - 8]
push ecx
call fcn.100043b0
add esp, 8
push str.d3d9.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1000604c], eax
cmp dword [0x1000604c], 0
jne 0x10003fc2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.Direct3DCreate9
mov edx, dword [0x1000604c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003ff5
mov eax, dword [0x1000604c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003e70
mov ecx, dword [ebp - 4]
push ecx
call fcn.10001090
add esp, 8
mov dword [0x10006048], eax
cmp dword [0x10006048], 0
jne 0x1000402d
mov edx, dword [0x1000604c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x101c139
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100118c
push eax
mov ebx, 0x10012d8
push ebx
mov dword [ebp - 0x41c], eax
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x418], 0x80004005
call fcn.0101c079
push 0x10011a8
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push ebx
push edi
push eax
call fcn.0101c079
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [esi + 4], eax
lea eax, [ebp - 0x414]
push eax
call edi
mov dword [esi], eax
test eax, eax
je 0x101c2ab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10012c8
push eax
call edi
push 0x10012b8
push dword [esi]
mov dword [esi + 0x124], eax
call edi
push 0x10012a8
push dword [esi]
mov dword [esi + 0x228], eax
call edi
push 0x1001298
push dword [esi]
mov dword [esi + 0x128], eax
call edi
push 0x1001288
push dword [esi]
mov dword [esi + 0xe8], eax
call edi
mov ebx, 0x1001278
push ebx
push dword [esi]
mov dword [esi + 0xf4], eax
call edi
push 0x1001264
push dword [esi]
mov dword [esi + 0x4c], eax
call edi
push 0x100124c
push dword [esi]
mov dword [esi + 0x1dc], eax
call edi
push 0x1001234
push dword [esi]
mov dword [esi + 0x1e0], eax
call edi
push 0x1001220
push dword [esi]
mov dword [esi + 0x64], eax
call edi
push 0x100120c
push dword [esi]
mov dword [esi + 0x7c], eax
call edi
push 0x10011f4
push dword [esi]
mov dword [esi + 0x9c], eax
call edi
push 0x10011e4
push dword [esi]
mov dword [esi + 0xa0], eax
call edi
push 0x10011d4
push dword [esi]
mov dword [esi + 0x184], eax
call edi
push 0x10011c0
push dword [esi]
mov dword [esi + 0x140], eax
call edi
push ebx
push dword [esi]
mov dword [esi + 0xf0], eax
call edi
mov dword [esi + 0x4c], eax
mov ecx, esi
call fcn.0101bffa
pop edi
pop esi
pop ebx
test eax, eax
je 0x101c2c0
and dword [ebp - 0x418], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
call fcn.0101cfe5
leave
ret 4

Function at 0x101c8a0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0101d000
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1021358]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
shl eax, 2
xor edi, edi
test eax, eax
jle 0x101c8f4
push 0
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x10019cc
push dword [section..data]
call esi
mov eax, dword [0x1021358]
inc edi
shl eax, 2
cmp edi, eax
jl 0x101c8cf
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.0101c840
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [section..data]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101cfe5
leave
ret
Function at 0x101c947
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0101d000
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1021358]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
shl eax, 2
xor edi, edi
test eax, eax
jle 0x101c99b
push 0
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x10019cc
push dword [section..data]
call esi
mov eax, dword [0x1021358]
inc edi
shl eax, 2
cmp edi, eax
jl 0x101c976
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.0101c840
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [section..data]
call esi
push 0
lea eax, [ebp - 0x1008]
push eax
push 4
push 0x10019d0
push dword [section..data]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101cfe5
leave
ret

Function at 0x101cfd6
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x101fba0
call fcn.0101d544
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10219d0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101cdeb
cmp eax, esi
jne 0x101cdde
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x101cdee
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101cdc5
xor esi, esi
inc esi
mov eax, dword [0x10219cc]
cmp eax, esi
jne 0x101ce01
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101ce3c
mov eax, dword [0x10219cc]
test eax, eax
jne 0x101ce36
mov dword [0x10219cc], esi
push 0x1001168
push 0x100115c
call fcn.0101cd42
pop ecx
pop ecx
test eax, eax
je 0x101ce3c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x101cf06
mov dword [0x10215e0], esi
mov eax, dword [0x10219cc]
cmp eax, esi
jne 0x101ce60
push 0x1001158
push 0x100114c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10219cc], 2
cmp dword [ebp - 0x1c], ebx
jne 0x101ce6d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10219e0], ebx
je 0x101ce8e
push 0x10219e0
call fcn.0101d4b9
pop ecx
test eax, eax
je 0x101ce8e
push ebx
push 2
push ebx
call dword [0x10219e0]
push dword [0x10215c8]
push dword [0x10215cc]
push dword [0x10215c4]
call fcn.0101cca5
add esp, 0xc
mov dword [0x10215dc], eax
cmp dword [0x10215d0], ebx
jne 0x101ceec
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10215e0], ebx
jne 0x101cefa
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10215dc]
call fcn.0101d589
ret
call fcn.0101d691
jmp 0x101cda3
Function at 0x101ecbb
Capabilities:
Check if file exists
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5601
push edi
push ebx
mov dword [ebp - 0x218], edi
call fcn.0101eaaf
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x101eda0
push esi
mov esi, 0x5610
push esi
push edi
push ebx
call fcn.0101eb55
inc esi
cmp esi, 0x5613
jbe 0x101ed0a
and dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0x5630
mov esi, 0x5631
push dword [ebp - 0x210]
push edi
push ebx
call fcn.0101ec5f
test eax, eax
je 0x101ed48
inc dword [ebp - 0x214]
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], esi
jbe 0x101ed31
cmp dword [ebp - 0x214], 2
jl 0x101ed9f
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
jne 0x101ed81
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x101ed9f
mov edi, 0x5630
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push ebx
call fcn.0101ebac
inc edi
cmp edi, esi
jbe 0x101ed86
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101cfe5
leave
ret 8

Function at 0x101ef1b
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10021d0
xor ebx, ebx
push ebx
mov dword [ebp - 0x214], esi
call fcn.0101fa09
pop ecx
pop ecx
cmp esi, ebx
jne 0x101ef59
mov dword [ebp - 0x214], 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor esi, esi
lea eax, [ebp - 0x210]
push eax
push 0x20006
push ebx
push dword [esi + 0x1021320]
mov dword [ebp - 0x210], ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101f040
test byte [esi + 0x1021328], 1
je 0x101efd4
push dword [esi + 0x1021324]
push dword [ebp - 0x210]
call edi
cmp eax, ebx
jne 0x101efbf
push dword [esi + 0x1021324]
push 0x1002150
push ebx
call fcn.0101fa09
add esp, 0xc
jmp 0x101efd4
push eax
push dword [esi + 0x1021324]
push 0x10020c0
push ebx
call fcn.0101fa09
add esp, 0x10
test byte [esi + 0x1021328], 2
je 0x101f034
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x1021324]
call fcn.0101fb1a
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call edi
cmp eax, ebx
jne 0x101f01e
lea eax, [ebp - 0x20c]
push eax
push 0x1002150
push ebx
call fcn.0101fa09
add esp, 0xc
jmp 0x101f034
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10020c0
push ebx
call fcn.0101fa09
add esp, 0x10
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xc
cmp esi, 0x24
jb 0x101ef61
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101cfe5
leave
ret 4
Function at 0x101f062
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f0c3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101f0ba
cmp dword [ebp - 0xc], 4
je 0x101f0ba
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x101f106
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101f0fd
cmp dword [ebp - 0xc], esi
je 0x101f0fd
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x101f115
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
xor esi, esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101f18d
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101cfe5
leave
ret 0xc

Function at 0x101f2fb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10022a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101f34d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1002284
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x101f394
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1021350]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x101f418
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002360
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101f407
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1002354
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f3fe
cmp dword [ebp - 0xc], 4
jne 0x101f3fe
cmp dword [ebp - 0x10], eax
je 0x101f3fe
mov dword [0x1021350], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1021350]
cmp eax, 0xffffffff
jne 0x101f418
xor eax, eax
mov dword [0x1021350], eax
leave
ret
Function at 0x1001537
Capabilities:
Create thread

Disassembly:
jmp 0x101b4bf
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push edi
xor edi, edi
cmp eax, edi
je 0x101b4e3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], edi
cmp dword [esi + 0x18], edi
jne 0x101b4fe
lea eax, [esi + 0x1c]
push eax
push edi
push esi
push 0x1001028
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
pop edi
xor eax, eax
pop esi
ret

Function at 0x10018ac
Capabilities:
Create thread

Disassembly:
jmp 0x101b479
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.01001645
test eax, eax
je 0x101b4a8
mov ecx, esi
call fcn.010011cc
lea eax, [esi + 0x1c]
push eax
push edi
push esi
push 0x1001028
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
inc edi
mov eax, edi
pop edi
pop esi
ret

Function at 0x1012d36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.010013bb
mov edi, eax
cmp edi, esi
je 0x1012d98
lea ecx, [ebp - 0x208]
call fcn.01001703
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101cfa4
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1012db6
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.010015b4
cmp eax, esi
jne 0x1012dfe
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], pe_nt_image_headers32
call edi
test eax, eax
je 0x1012da0
lea ecx, [ebp - 0x208]
call fcn.01001703
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01001703
mov eax, esi
jmp 0x1012d87
Function at 0x1015714
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 2
push esi
push eax
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x408], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x40c], eax
jne 0x101576f
call fcn.0100137a
mov esi, eax
jmp 0x101584e
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x1015788
call fcn.0100137a
jmp 0x1015840
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x101577e
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x10157ed
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x10157ca
lea ecx, [ebp - 0x408]
call fcn.01001429
mov esi, 0x8007000e
lea ecx, [ebp - 0x410]
call fcn.010017da
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101cfa4
leave
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.0100135c
cmp dword [ebp - 0x408], esi
jne 0x1015808
mov esi, 0x8007000e
jmp 0x1015842
push edi
push dword [ebp - 0x408]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x101577e
mov ecx, dword [ebp - 0x408]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x408]
lea ecx, [ebp - 0x418]
call fcn.0100127b
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x10157cf
lea ecx, [ebp - 0x408]
call fcn.01001429
jmp 0x10157cf

Function at 0x10164df
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0xff
push pe_nt_image_headers32
push eax
call sub.msvcrt.dll__vsnwprintf_s
xor edi, edi
add esp, 0x14
cmp dword [esi + 0x260], edi
lea eax, [ebp - 0x204]
mov word [ebp - 6], di
mov dword [ebp - 0x208], eax
jne 0x101653b
push eax
call dword [sym.imp.msvcrt.dll__putws]
pop ecx
add esi, 0x40
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x101656a
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101cfa4
leave
ret