joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008545
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1008554
pop dword [ebp - 0x1c]
mov eax, 0x9d3bdeab
sub eax, 0x9c3b5957
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x9205a28a
sub dword [ebp - 0x2c], 0x43b35d3f
mov dword [ebp - 0x28], 0x944db9f8
add dword [ebp - 0x28], 0x9de5924d
mov dword [ebp - 0x24], 0xd9aced3c
sub dword [ebp - 0x24], 0x8d60a90e
mov dword [ebp - 0x20], 0x2031a22f
add dword [ebp - 0x20], 0xdfce5dd1
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xce12fbab
add dword [ebp - 0x2c], 0xa65f6dab
mov dword [ebp - 0x28], 0xb1710b11
add dword [ebp - 0x28], 0x8ffb5664
mov dword [ebp - 0x24], 0x9387d8fc
add dword [ebp - 0x24], 0xcfe79370
mov dword [ebp - 0x20], 0xb0e93647
sub dword [ebp - 0x20], 0xb0e93647
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x19f73ca3
add eax, 0xe708d41d
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b7e4
push 0
call eax
mov ecx, 0x58ee
mov edi, eax
mov ebx, 0xa98cf70f
add ebx, 0x578168f1
add ebx, dword [ebp - 0x1c]
mov esi, 0x69c75f60
sub esi, 0xe2d4f637
add dword [ebp - 8], edx
mov edx, dword [ebx]
xor dword [ebp - 0xc], 0x5d3bac8d
xor edx, esi
xor dword [ebp - 0x10], edx
mov dword [edi], edx
add dword [ebp - 0xc], 0xddc79c15
add edi, 0x64545643
add edi, 0x9baba9c1
add ebx, 0x89516e85
sub ebx, 0x89516e81
loop 0x100866b
add eax, 0x7acee5b7
sub eax, 0x7acd8f2c
mov ebx, eax
add eax, 0x8a116626
add eax, 0x75ee99df
mov ecx, 0xf414083f
add ecx, 0xcebf7c1
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4012b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 8

Function at 0x401a90
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push 0x20
push str.hra_u.dll
push eax
xor ebx, ebx
call dword [0x408d9c]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401b0f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartWork
push esi
call edi
push str.StopWork
push esi
mov dword [0x40933c], eax
call edi
test eax, eax
mov dword [0x409340], eax
pop edi
je 0x401afd
mov eax, dword [0x40933c]
test eax, eax
je 0x401afd
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x4024b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x4024dc
mov eax, dword [esp + 8]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x4024d0
pop esi
ret
Function at 0x4026c0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Distribuoyo
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [0x408d60]
test eax, eax
je 0x402715
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call dword [0x408d64]
test eax, eax
je 0x402761
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x408d68]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x408d68]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402788
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x2c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4027b5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4027d9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4027fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40282d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x40285d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edx
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x402896
push str.Distribuoyo
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Distribuoyo
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x4028b7
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x403d90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret

Function at 0x4627fe
Capabilities:
Encode data using xor

Disassembly:
mov esi, dword [ecx + 0xa]
add edx, ebx
mov ax, word [edx + esi]
shl eax, 0x10
lea edx, [ebx]
shr eax, 0xe
push dword [eax + edi]
add dword [esp], ebx
mov eax, dword [esp - 4]
pop esi
jmp eax
ret
lea ecx, [ebx + 9]
mov edx, ecx
xchg dh, dh
or al, 0x14
push 0xffffffffffffffff
push dword [ecx + 0x33]
pop edx
add ecx, dword [edx + ebx + 0x78]
pop edx
mov edi, dword [ecx + 0x17]
mov eax, dword [edi + ebx]
inc edx
dec esi
add edi, 4
lea eax, [eax]
lea esi, [eax + ebx - 3]
cmp edx, dword [ecx + 0xf]
jae 0x462720
adc al, bl
or al, ah
not eax
push ebx
cmc
xor eax, eax
and ebx, ebp
push ecx
movzx ecx, byte [esi + 3]
and bh, dh
xor bh, 2
imul eax, eax, 0xf
inc bh
sbb bh, cl
test bl, dh
dec ebx
test ebx, ecx
sub esi, 0xffffffee
sub eax, ecx
lea esi, [esi - 0x11]
cmp byte [esi + 3], 0xa
jae 0x462839
and bh, cl
or ebx, edx
xor eax, dword [esp + 0xc]
pop ecx
pop ebx
xor eax, 0xdd80b22b
mov eax, eax
jne 0x462815
xor eax, ebp
sub al, 0x37
sub ecx, 0xffffffef
add esp, 8
xor esi, eax
push dword [ecx + 2]
pop edi
sub esi, esi
add edi, ebx
add edx, edx
jmp 0x4626e4
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00406dc2
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00406dc2
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00406dc2
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00406dc2
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00406dc2
mov dword [0x41203c], eax
call fcn.00406dc2
test eax, eax
jge 0x402550
push 8
call fcn.00406dc2
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00406dc2
pop ecx
push 1
call fcn.00406dc2
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00406dc2
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00406dc2
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00406dc2
jmp 0x402495

Function at 0x406dc2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x406dd1
pop dword [ebp - 0x4c]
mov eax, 0xe1cba6eb
add eax, 0x1e74c6e6
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x39aed
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x5da6c09b
add ecx, 0xa25988f2
xor edi, edi
add edi, eax
mov ebx, 0x129e84b
add ebx, 0xff175379
add ebx, dword [ebp - 0x4c]
mov edx, 0xd15dbbe7
xor dword [ebp - 0x14], ecx
mov esi, dword [ebx]
sub dword [ebp - 0x2c], 0xf64950b9
sub esi, edx
sub dword [ebp - 0x48], edx
mov dword [edi], esi
add edi, 0xabbc36bf
add edi, 0x5443c945
add ebx, 4
loop 0x406e27
add eax, 0xc9fc5ab
sub eax, 0xc9eaca4
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xd20d1471
sub ecx, 0xd1cd1471
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x1002449
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x2001f
xor edi, edi
push edi
push str.Control_PanelAppearanceSchemes
push 0x80000001
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10025bf
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x10024c9
cmp eax, 0xea
jne 0x10025bf
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push edi
call esi
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
push edi
call esi
mov ebx, eax
cmp ebx, edi
je 0x10025bf
cmp dword [ebp - 4], edi
je 0x10025bf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 1
push edi
jmp 0x10025ae
cmp word [ebx], 1
jne 0x100258a
push 0x1f
pop ecx
lea eax, [ebx + 2]
push eax
mov word [ebp - 0x312], di
lea eax, [ebp - 0x310]
mov word [ebp - 0x314], 2
lea esi, [ebx + 0x188]
lea edi, [ebp - 0xc0]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0100239f
lea eax, [ebx + 0x156]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.010022c0
push 0x2d0
lea eax, [ebp - 0x314]
push eax
push dword [ebp - 0x20]
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edi, edi
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
push ecx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1002521
cmp dword [ebp - 8], edi
je 0x10025cd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10025da
push ebx
call esi
cmp dword [ebp - 4], edi
je 0x10025e4
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002cda
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x1002d8d
and dword [ebp - 4], eax
push 0x20a
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 8], eax
jne 0x1002d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002d8d
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, 0x105
push ebx
push eax
push 0
jmp 0x1002d6a
lea eax, [ebp - 0xc]
push eax
push 0x60008
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1002d7f
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.01002cda
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1002d7f
inc dword [ebp - 4]
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x1002d29
cmp esi, 0x103
jne 0x1002d7f
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x10030bb
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1003185
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
push esi
push 0x1001450
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100313b
test al, 4
jne 0x100313b
or eax, 4
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
push esi
push 0x100142c
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
je 0x1003185
test al, 4
jne 0x1003185
or eax, 4
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
leave
ret
Function at 0x1003187
Capabilities:
Persist via screensaver registry key
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_IsOS]
push 0x1b
call esi
test eax, eax
je 0x1003247
push 0x1a
call esi
test eax, eax
je 0x1003247
push ebx
lea eax, [ebp - 4]
push eax
push 2
xor ebx, ebx
push ebx
push 0x10014fc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003246
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 4
push 0x10014f8
push 1
push ebx
push 0x10014d4
push dword [ebp - 4]
call esi
push ebx
push ebx
push ebx
push ebx
mov edi, 0x10014b8
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100323c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1001478
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100323c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100364c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
shr eax, 0x10
movzx eax, al
push eax
movzx eax, byte [ebp + 0x11]
push eax
movzx eax, byte [ebp + 0x10]
push eax
lea eax, [ebp - 0x20]
push 0x1001b20
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x18
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
push 1
push 0
push dword [eax*4 + 0x1005160]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
leave
ret 0xc
Function at 0x10036e7
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa8
push ebx
mov eax, 0xc0c0c0
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp], eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x74]
push eax
push 0x2001b
push edi
mov ecx, 0x808080
mov edx, 0x800000
mov esi, 0xffffff
push 0x10014fc
mov ebx, 0x80000001
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x4c], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
mov dword [ebp - 0xc], 0x808000
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov dword [ebp + 4], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], edx
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x50], 0xe1ffff
mov dword [ebp + 0x58], edx
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x60], ecx
call edi
test eax, eax
jne 0x10037a2
push 0x1001b60
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x74]
push eax
push 0x2001b
push 0
push 0x1001b34
push ebx
call edi
test eax, eax
jne 0x100387a
xor edi, edi
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push dword [edi + 0x1005160]
mov dword [ebp + 0x64], 0x40
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003818
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0x30]
push 0x1001b20
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
movzx ecx, byte [ebp + 0x6c]
xor eax, eax
mov ah, byte [ebp + 0x68]
add esp, 0x14
mov al, byte [ebp + 0x70]
shl eax, 8
or eax, ecx
mov dword [ebp + edi - 0x10], eax
add edi, 4
cmp edi, 0x74
jb 0x10037bf
xor edi, edi
mov edx, 0x10051d8
xor eax, eax
mov ecx, edx
mov ebx, dword [ecx]
and ebx, esi
cmp dword [ebp + eax*4 - 0x10], ebx
jne 0x100383e
inc eax
add ecx, 4
cmp eax, 0x19
jl 0x100382b
cmp eax, 0x19
je 0x1003851
add edx, 0x74
inc edi
cmp edx, 0x1005e14
jl 0x1003827
jmp 0x1003871
push edi
push dword [ebp + 0x74]
call fcn.010036a6
cmp edi, 0x12
je 0x1003869
cmp edi, 0x17
je 0x1003869
cmp edi, 0x18
jne 0x1003871
push dword [ebp + 0x74]
call fcn.010036d4
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x100395d
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp ebx, 2
jl 0x1003a50
cmp ebx, 3
jg 0x1003a50
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
push dword [esi*8 + 0x1005e18]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1003996
inc esi
cmp esi, 0x10
jb 0x100397c
cmp esi, 0x10
jb 0x10039a3
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [esi*8 + 0x1005e1c]
cmp esi, 0xf
ja case.default.0x10039b3
jmp dword [esi*4 + 0x1003a58]
call fcn.01002449
jmp 0x1003a40
call fcn.010025e9
jmp 0x1003a40
call fcn.01002872
jmp 0x1003a40
call dword [sym.imp.USERENV.dll_Ordinal_128]
jmp 0x1003a40
call fcn.01002fda
jmp 0x1003a40
call fcn.01003042
jmp 0x1003a40
call fcn.01003079
jmp 0x1003a40
call fcn.01002a63
jmp 0x1003a40
call dword [sym.imp.USERENV.dll_Ordinal_127]
jmp 0x1003a40
call fcn.01003fcd
jmp 0x1003a40
cmp ebx, 2
jle 0x1003a0c
mov edi, dword [edi + 8]
jmp 0x1003a0e
xor edi, edi
push edi
call fcn.0100407f
jmp 0x1003a40
call fcn.010030bb
jmp 0x1003a40
cmp ebx, 2
jle 0x1003a27
mov eax, dword [edi + 8]
jmp 0x1003a29
xor eax, eax
push eax
push dword [edi + 4]
call fcn.010038f4
jmp 0x1003a40
call fcn.010035d1
jmp 0x1003a40
call fcn.01003187
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1003a98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x18
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x1003b4d
cmp dword [ebp - 8], 1
jne 0x1003b4d
push esi
push edi
mov byte [ebp + 0xc], bl
mov byte [ebp + 0xd], bl
mov byte [ebp + 0xe], bl
lea esi, [ebp - 0x20]
xor edi, edi
jmp 0x1003aec
cmp ax, 0x20
jne 0x1003af4
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x1003ae4
mov eax, esi
jmp 0x1003b00
cmp word [esi], 0x20
je 0x1003b05
inc esi
inc esi
cmp word [esi], bx
jne 0x1003af8
cmp edi, 2
je 0x1003b0f
cmp word [esi], bx
je 0x1003b27
mov word [esi], bx
inc esi
push eax
inc esi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov byte [ebp + edi + 0xc], al
inc edi
cmp edi, 3
jb 0x1003aec
jmp 0x1003b2e
mov dword [ebp + 8], 0xd
movzx eax, byte [ebp + 0xe]
movzx ecx, byte [ebp + 0xd]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp + 0xc]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 0x10]
pop edi
mov dword [ecx], eax
pop esi
jmp 0x1003b54
mov dword [ebp + 8], 6
mov eax, dword [ebp + 8]
pop ebx
leave
ret 0xc