joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41c6bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41c6df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41c6fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x422e67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x422ea9
call fcn.00426ed5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [0x4370dc]
cmp eax, edi
je 0x422ea9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x422ea0
xor eax, eax
jmp 0x422eb1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00422eb7
pop edi
pop esi
pop ebx
ret 4
Function at 0x4278dd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42790b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427929
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00427843
jmp 0x427929
mov eax, dword [esi + 0x14]
test eax, eax
je 0x427929
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00427843
test edi, edi
mov eax, edi
jne 0x427913
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x57a655ba
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2a857768
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x5e1630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x163000]
push edi
or ebp, 0xffffffff
jmp 0x5e1652
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5e1659
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e1648
mov eax, 1
add ebx, ebx
jne 0x5e166b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5e167c
jne 0x5e169b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e169b
dec eax
add ebx, ebx
jne 0x5e1688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5e1660
add ebx, ebx
jne 0x5e1697
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5e16ed
xor ecx, ecx
sub eax, 3
jb 0x5e16b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5e1722
sar eax, 1
mov ebp, eax
jmp 0x5e16be
add ebx, ebx
jne 0x5e16be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e168c
inc ecx
add ebx, ebx
jne 0x5e16cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e168c
add ebx, ebx
jne 0x5e16d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5e16ce
jne 0x5e16ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5e16ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5e170c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5e16fe
jmp 0x5e164e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5e170c
add edi, ecx
jmp 0x5e164e
pop esi
mov edi, esi
mov ecx, 0xa34b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5e172a
cmp byte [edi], 0x24
jne 0x5e172a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5e172f
lea edi, [esi + 0x1dc000]
mov eax, dword [edi]
or eax, eax
je 0x5e17a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f11b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f12f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5e175c
mov ecx, edi
jns 0x5e178b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f12f4]
or eax, eax
je 0x5e17a1
mov dword [ebx], eax
add ebx, 4
jmp 0x5e1779
call dword [esi + 0x1f12fc]
mov ebp, dword [esi + 0x1f12f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5e17db
sub esp, 0xffffff80
jmp 0x50d070
Function at 0x404db4
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov ebx, 0xc6ef3720
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x20
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, edi
shr eax, 5
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
add dword [ebp + 0xc], eax
lea eax, [ebx + edi]
push eax
lea eax, [ebp - 4]
push eax
mov dword [0x2b8e604], 0xffcf03fc
call fcn.00404708
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp - 4]
push dword [ebp - 0x18]
and dword [0x2b8e604], 0
or dword [0x2b8e60c], 0xffffffff
sub esi, eax
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x14]
mov dword [0x2b8e608], 0xff6b3619
mov dword [ebp - 4], eax
mov eax, esi
shr eax, 5
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
call fcn.00404d97
lea eax, [ebx + esi]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00404708
mov eax, dword [ebp - 4]
xor eax, dword [ebp + 0xc]
add ebx, 0x61c88647
sub edi, eax
dec dword [ebp - 8]
jne 0x404deb
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 8
Function at 0x405759
Capabilities:
Copy file
Read .ini file

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x2b8ea54], 0x9e
push edi
jne 0x405813
push esi
push 0x401590
push 0x4015d8
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
cmp dword [0x2b8ea54], 0xf76
jne 0x4057a7
push esi
push esi
push esi
push esi
push 0x4015f0
push 0x401628
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
push esi
push esi
push esi
call fcn.00406346
fldz
pop ecx
pop ecx
fstp dword [esp]
call fcn.00404650
push 0x401650
fstp st(0)
push esi
call fcn.00406346
push esi
push esi
push esi
push 0x42ae88
call fcn.00406329
push esi
call fcn.00406268
push esi
call fcn.00406298
push esi
push esi
call fcn.0040615c
push esi
call fcn.00405ffd
push esi
push esi
call fcn.00405fbd
push esi
call fcn.00405f41
push esi
push esi
push esi
call fcn.00405e45
add esp, 0x44
push esi
push esi
push esi
push esi
push esi
call fcn.00405c32
add esp, 0x14
mov eax, dword [0x419e9c]
mov dword [0x2b8ea54], eax
mov edi, 0x79a863
cmp dword [0x2b8ea54], 0x4c5
jne 0x405852
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push 0x40165c
push esi
lea eax, [esp + 0x10]
push eax
push 0x401688
push 0x4016f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
dec edi
jne 0x405822
mov eax, dword [0x419008]
mov dword [0x2b8ee68], eax
call fcn.0040543b
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x40e229
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a4e8]
jne 0x40e233
repz ret
jmp fcn.00414401
Function at 0x4124fe
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.0040961a
and dword [ebp - 4], 0
cmp dword [0x2b8f5e8], 0
mov ebx, eax
jne 0x4125af
push 0x4044f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412660
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4044e4
push edi
call esi
test eax, eax
je 0x412660
push eax
call fcn.004095a8
mov dword [esp], 0x4044d4
push edi
mov dword [0x2b8f5e8], eax
call esi
push eax
call fcn.004095a8
mov dword [esp], 0x4044c0
push edi
mov dword [0x2b8f5ec], eax
call esi
push eax
call fcn.004095a8
mov dword [esp], 0x4044a4
push edi
mov dword [0x2b8f5f0], eax
call esi
push eax
call fcn.004095a8
pop ecx
mov dword [0x2b8f5f8], eax
test eax, eax
je 0x4125af
push 0x40448c
push edi
call esi
push eax
call fcn.004095a8
pop ecx
mov dword [0x2b8f5f4], eax
mov eax, dword [0x2b8f5f4]
cmp eax, ebx
je 0x412607
cmp dword [0x2b8f5f8], ebx
je 0x412607
push eax
call fcn.00409623
push dword [0x2b8f5f8]
mov esi, eax
call fcn.00409623
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412607
test edi, edi
je 0x412607
call esi
test eax, eax
je 0x4125fe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4125fe
test byte [ebp - 0xc], 1
jne 0x412607
or dword [ebp + 0x10], 0x200000
jmp 0x412640
mov eax, dword [0x2b8f5ec]
cmp eax, ebx
je 0x412640
push eax
call fcn.00409623
pop ecx
test eax, eax
je 0x412640
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412640
mov eax, dword [0x2b8f5f0]
cmp eax, ebx
je 0x412640
push eax
call fcn.00409623
pop ecx
test eax, eax
je 0x412640
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2b8f5e8]
call fcn.00409623
pop ecx
test eax, eax
je 0x412660
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412662
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001551
Capabilities:
Terminate process

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.010014a3
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100159c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 0x8001
call esi
push 1
mov dword [ebp - 4], eax
call fcn.010013cb
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push 0x100118c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10015ec
push dword [ebp - 4]
call esi
mov dword [ebp + 8], 0xc0000034
jmp 0x100161d
push ebx
lea eax, [ebp - 8]
push eax
push 0x10
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100160a
cmp dword [ebp - 8], 0x10
mov dword [ebp + 8], ebx
je 0x1001611
mov dword [ebp + 8], 0xc0000102
push dword [ebp - 4]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.010013cb
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100162d
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
push esi
push edi
push 0x8001
call ebx
push 1
mov dword [esp + 0x18], eax
call fcn.010013cb
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
mov edi, 0x10011bc
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x10016f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
mov dword [esp + 0x10], eax
jne 0x10016dd
push 0x100119c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x100119c
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x10016a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x10016dd
xor eax, eax
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x100169c
push 0x40
push 0x5df
push 0x5ee
push dword [esp + 0x2c]
call fcn.0100142e
and dword [esp + 0x10], 0
cmp dword [esp + 0x10], 0
je 0x10016f0
push dword [esp + 0x14]
call ebx
mov esi, dword [esp + 0x10]
jmp 0x100171e
push 0
lea eax, [esp + 0x1c]
push eax
push 0x10
push dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001729
cmp dword [esp + 0x18], 0x10
jne 0x1001729
push dword [esp + 0x14]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
call fcn.010013cb
mov eax, esi
jmp 0x1001743
push dword [esp + 0x14]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.010013cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x1001a78
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0100174d
push 2
pop edi
cmp eax, edi
je 0x1001aca
mov eax, dword [0x1006064]
mov ecx, eax
dec ecx
je 0x1001ae2
dec ecx
je 0x1001ad1
dec ecx
jne 0x1001af0
lea eax, [ebp - 0x34]
push eax
push 0x10019c1
push ebx
push 0x38e
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, edi
jne 0x1001aeb
mov eax, edi
jmp 0x1001c31
lea eax, [ebp - 0x34]
push eax
push 0x10018c5
push ebx
push 0x384
jmp 0x1001ab7
lea eax, [ebp - 0x34]
push eax
call fcn.010013a7
mov eax, dword [0x1006064]
push esi
lea ecx, [ebp - 0x34]
push 0x10
mov dword [ebp - 0x10], ecx
pop ecx
push 3
pop esi
cmp dword [ebp - 4], esi
lea edx, [ebp - 0x24]
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], cx
mov dword [ebp - 8], edx
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], cx
jne 0x1001b21
mov dword [ebp - 4], 1
jmp 0x1001b24
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
neg eax
sbb eax, eax
lea ecx, [ebp - 0x14]
and eax, ecx
push eax
push dword [ebp - 4]
push dword [0x10062d8]
call sub.SAMLIB.dll_SamiSetBootKeyInformation
test eax, eax
jge 0x1001b5e
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
push 0x5e2
push ebx
call fcn.010014a3
mov eax, edi
jmp 0x1001c30
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
mov ebx, 0x10011e0
push ebx
push dword [0x1006300]
call edi
cmp dword [ebp - 4], 1
jne 0x1001b8b
lea eax, [ebp - 0x24]
push eax
call fcn.01001390
push 0x40
push 0x5e4
push 0x5e3
push dword [ebp + 8]
call fcn.0100142e
cmp esi, 3
mov dword [ebp - 4], esi
jne 0x1001c13
push 0x20
mov esi, 0x5e6
push esi
push 0x5e5
jmp 0x1001bbe
push 0x10
push esi
push 0x5e8
push dword [ebp + 8]
call fcn.0100142e
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.0100162d
test eax, eax
jne 0x1001bb6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [0x10062d8]
call sub.SAMLIB.dll_SamiSetBootKeyInformation
test eax, eax
jl 0x1001c03
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push ebx
push dword [0x1006300]
call edi
push 0x40
push esi
push 0x5e7
push dword [ebp + 8]
call fcn.0100142e
cmp dword [ebp - 4], 1
je 0x1001c2d
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.010025ef
lea eax, [ebp - 0x24]
push eax
call fcn.01001390
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x1001efb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1006064]
push esi
xor esi, esi
inc esi
cmp eax, esi
jne 0x1001f20
lea eax, [ebp - 0x24]
push eax
call fcn.010013a7
test eax, eax
je 0x1001f67
mov eax, dword [0x1006064]
push 0x10
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ecx
pop ecx
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], cx
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], cx
lea ecx, [ebp - 0xc]
push ecx
neg eax
sbb eax, eax
lea ecx, [ebp - 0x14]
and eax, ecx
push eax
push esi
push dword [0x10062d8]
lea edx, [ebp - 0x34]
mov dword [ebp - 4], esi
mov dword [ebp - 8], edx
call sub.SAMLIB.dll_SamiSetBootKeyInformation
test eax, eax
jge 0x1001f6b
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
xor eax, eax
jmp 0x1001f91
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x10011e0
push dword [0x1006300]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x34]
push eax
call fcn.01001390
mov eax, esi
pop esi
leave
ret
Function at 0x1002093
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
call fcn.01002255
lea eax, [ebp - 0xc]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x1001200
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov esi, 0x5de
je 0x10020d1
push eax
push esi
push ebx
call fcn.01001551
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov edi, 0x10011e0
push edi
push eax
mov dword [0x1006300], eax
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1002101
mov dword [ebp - 4], ebx
call fcn.01001f94
cmp eax, ebx
je 0x1002112
push eax
push esi
push ebx
call fcn.01001551
lea eax, [ebp - 8]
push eax
push dword [0x10062d8]
call sub.SAMLIB.dll_SamiGetBootKeyInformation
cmp eax, ebx
jge 0x1002134
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
push esi
push ebx
call fcn.01001551
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x1002167
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push ebx
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x10
push 0x5df
push 0x5dc
push ebx
call fcn.0100142e
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], 1
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x1006060], eax
mov dword [0x1006064], eax
jle 0x10021db
push 4
push 0x10062e8
push 0x5e9
push ebx
call esi
push eax
call edi
push 4
push 0x10062f8
push 0x5ea
push ebx
call esi
push eax
call edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov cx, word [eax]
cmp cx, 0x2d
je 0x10021bc
cmp cx, 0x2f
jne 0x10021db
movzx eax, word [eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_towupper]
cmp ax, word [0x10062e8]
pop ecx
jne 0x10021db
mov dword [0x1006068], 1
cmp dword [0x1006068], ebx
je 0x100222f
mov eax, dword [0x1006064]
cmp eax, 1
je 0x1002228
cmp eax, ebx
je 0x1002228
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x5eb
push ebx
call esi
push eax
call edi
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x10011f8
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
jmp 0x1002242
call fcn.01001efb
jmp 0x1002242
push ebx
push 0x1001daf
push ebx
push 0x64
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push dword [0x1006300]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret