joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d2e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
mov eax, 0x5a4d
mov dword [esp + 0x10], ecx
cmp word [esi], ax
je 0x403d4b
xor eax, eax
jmp 0x403eb9
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi + 0x74], 0x10
jne 0x403d44
mov ecx, dword [eax + esi + 0x7c]
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x403d44
push ebx
push ebp
push edi
mov edi, dword [eax + esi + 0x78]
xor ebx, ebx
add edi, esi
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
add eax, esi
mov dword [esp + 0x10], eax
add edx, esi
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x28], ebx
je 0x403dcc
xor ebp, ebp
cmp dword [edi + 0x14], ebx
jbe 0x403eb4
mov ecx, dword [edx + ebp*4]
add ecx, esi
call fcn.004020de
cmp eax, dword [esp + 0x28]
je 0x403db7
mov edx, dword [esp + 0x24]
inc ebp
cmp ebp, dword [edi + 0x14]
jb 0x403d98
jmp 0x403eb4
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + ebp*2]
mov ebx, dword [ebx + eax*4]
jmp 0x403ddf
mov ebx, dword [esp + 0x2c]
sub ebx, dword [edi + 0x10]
cmp ebx, dword [edi + 0x14]
jae 0x403e73
mov ebx, dword [eax + ebx*4]
add ebx, esi
cmp ebx, edi
jbe 0x403eb4
lea eax, [ecx + edi]
cmp ebx, eax
jae 0x403eb4
push 0x104
call fcn.0040d548
mov esi, 0x100
mov dword [esp + 0x2c], eax
push esi
call fcn.0040d548
push 0x2e
push ebx
mov ebp, eax
call fcn.0040e970
add esp, 0x10
lea edi, [eax + 1]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push ebp
call esi
sub edi, ebx
push edi
mov edi, dword [esp + 0x2c]
push ebx
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x423f28
push edi
call esi
push 0x423f2c
push edi
call esi
push 0x423f30
push edi
call esi
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
push edi
call fcn.00403cc5
mov esi, eax
test esi, esi
jne 0x403e77
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0040467d
mov esi, eax
test esi, esi
jne 0x403e77
xor eax, eax
jmp 0x403eb6
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x403e92
cmp byte [ebp], 0x23
jne 0x403e92
movsx eax, byte [ebp + 1]
push eax
push 0
jmp 0x403e9c
push 0
mov ecx, ebp
call fcn.004020de
push eax
push esi
mov ecx, ebx
call fcn.00403d2e
push ebp
mov ebx, eax
call fcn.0040e7a2
push edi
call fcn.0040e7a2
pop ecx
pop ecx
mov eax, ebx
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 0xc

Function at 0x404f88
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x404fce
sub ebx, 0x4225d0
mov ax, word [ebx + edi*2 + 0x4225d0]
mov ecx, esi
xor ax, word [edi*2 + 0x4225d0]
movzx eax, ax
push eax
call fcn.00402bc2
inc edi
cmp edi, dword [esp + 0x10]
jl 0x404fac
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x404fd8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x40501e
sub ebx, 0x422640
mov ax, word [ebx + edi*2 + 0x422640]
mov ecx, esi
xor ax, word [edi*2 + 0x422640]
movzx eax, ax
push eax
call fcn.00402bc2
inc edi
cmp edi, dword [esp + 0x10]
jl 0x404ffc
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x4051b3
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [esp + 0x28]
call fcn.00405026
push 0x10
pop edi
cmp dword [esp + 0x3c], edi
lea edx, [esp + 0x28]
push dword [esi + 0x10]
cmovae edx, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
xor ebp, ebp
mov dword [esp + 0x4c], 0x67452301
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], 0xefcdab89
mov dword [esp + 0x54], 0x98badcfe
mov dword [esp + 0x58], 0x10325476
call fcn.00408238
lea ecx, [esp + 0x40]
call fcn.004082c4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebp
lea esi, [esp + 0x98]
mov word [esp + 0x10], ax
movzx eax, byte [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00402bc2
inc esi
dec edi
jne 0x405233
push dword [esp + 0x20]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.004050c7
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.0040199b
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.0040176d
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x9c
ret
Function at 0x407c81
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, esi
test edx, edx
jle 0x407ca6
push ebx
mov ebx, dword [esp + 0x10]
mov al, byte [esi + ebx]
xor byte [edi + ecx], al
inc esi
xor eax, eax
cmp esi, dword [esp + 0x14]
cmove esi, eax
inc edi
cmp edi, edx
jl 0x407c90
pop ebx
pop edi
pop esi
ret 8

Function at 0x408bdc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x408c22
sub ebx, str._n2i
mov ax, word [ebx + edi*2 + str._n2i]
mov ecx, esi
xor ax, word [edi*2 + str._n2i]
movzx eax, ax
push eax
call fcn.00402bc2
inc edi
cmp edi, dword [esp + 0x10]
jl 0x408c00
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x408c2a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x408c70
sub ebx, 0x422720
mov ax, word [ebx + edi*2 + 0x422720]
mov ecx, esi
xor ax, word [edi*2 + 0x422720]
movzx eax, ax
push eax
call fcn.00402bc2
inc edi
cmp edi, dword [esp + 0x10]
jl 0x408c4e
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x40b73c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x40b747
xor eax, eax
jmp 0x40b81f
push ebx
push esi
mov esi, dword [esp + 0xc]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40b800
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4238a0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4238a0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4238a0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4238a0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4238a0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4238a0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4238a0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4238a0]
dec edi
jne 0x40b763
pop edi
test esi, esi
je 0x40b819
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4238a0]
inc edx
dec esi
jne 0x40b804
not ecx
pop esi
mov eax, ecx
pop ebx
ret 4

Function at 0x40b822
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x4238a0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x4238a0]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x40c73e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
jne 0x40c753
push 0xffffffffffffff9a
pop eax
jmp 0x40c87c
push ebp
xor ebp, ebp
cmp dword [edi + 0x18], ebp
jne 0x40c75f
push 0xffffffffffffff9a
jmp 0x40c784
cmp dword [edi + 0x7c], ebp
je 0x40c769
call fcn.0040cab2
lea eax, [esp + 0x10]
mov ecx, edi
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
call fcn.0040c59f
test eax, eax
je 0x40c78a
push 0xffffffffffffff99
pop eax
jmp 0x40c87b
push esi
push 0x7e
call fcn.0040f0b2
mov esi, eax
pop ecx
test esi, esi
je 0x40c7b4
push 0x4000
call fcn.0040f0b2
mov dword [esi], eax
mov dword [esi + 0x4c], ebp
pop ecx
test eax, eax
jne 0x40c7bc
push esi
call fcn.0040f03a
pop ecx
push 0xffffffffffffff98
pop eax
jmp 0x40c87a
mov dword [esi + 0x40], ebp
xor ecx, ecx
cmp dword [edi + 0x34], ebp
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
sete cl
mov dword [esi + 0x50], ebp
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], ebp
test ecx, ecx
jne 0x40c804
lea ecx, [esi + 4]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call fcn.0040b9f8
test eax, eax
jne 0x40c804
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40c827
mov al, byte [edi + 0x39]
jmp 0x40c82a
mov al, byte [edi + 0x3f]
mov byte [esi + 0x7d], al
xor eax, eax
cmp byte [esi + 0x6c], al
push 0xc
pop ecx
cmovne eax, ecx
mov dword [esi + 0x79], eax
mov dword [esi + 0x6d], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
test ebx, ebx
je 0x40c865
mov dl, byte [ebx]
test dl, dl
je 0x40c865
lea ecx, [esi + 0x6d]
call fcn.0040b822
inc ebx
jne 0x40c854
mov eax, dword [esp + 0x10]
add eax, 0x1e
add eax, dword [edi + 0x78]
and dword [esi + 8], ebp
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x7c], esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret
Function at 0x419124
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426a74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.launcher28.exe__DecodePointer_4]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00414baa
mov dword [ebp - 0x14], eax
cmp dword [0x44ba04], esi
jne 0x419217
push 0x800
push esi
push 0x421cd4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4191a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4192f7
push esi
push esi
push 0x421cd4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4192f7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4192f7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44ba04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44ba08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44ba0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44ba14], eax
test eax, eax
je 0x419214
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44ba10], eax
mov edi, dword [ebp - 0x18]
call dword [0x424100]
test eax, eax
je 0x41923c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41922f
push eax
call dword [0x424108]
cmp dword [ebp - 0x14], esi
je 0x419251
push 4
pop eax
jmp 0x4192f9
cmp dword [ebp - 0x14], esi
je 0x419251
push dword [0x44ba04]
call dword [0x4240fc]
push 3
jmp 0x419236
mov eax, dword [0x44ba10]
mov ebx, dword [sym.launcher28.exe__DecodePointer_4]
cmp eax, edi
je 0x4192af
cmp dword [0x44ba14], edi
je 0x4192af
push eax
call ebx
push dword [0x44ba14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4192af
test eax, eax
je 0x4192af
call ecx
test eax, eax
je 0x4192a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4192a4
test byte [ebp - 8], 1
jne 0x4192af
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4192df
mov eax, dword [0x44ba08]
cmp eax, edi
je 0x4192dc
push eax
call ebx
test eax, eax
je 0x4192dc
call eax
mov esi, eax
test esi, esi
je 0x4192dc
mov eax, dword [0x44ba0c]
cmp eax, edi
je 0x4192dc
push eax
call ebx
test eax, eax
je 0x4192dc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44ba04]
call ebx
test eax, eax
je 0x4192f7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4192f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f6ed
mov esp, ebp
pop ebp
ret
Function at 0x100aadd
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
je 0x100ab81
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
push edi
mov edi, 0x10013b4
push edi
push eax
call esi
push edi
push ebx
call esi
add esp, 0x10
jmp 0x100ab5d
push 0x100139c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100ab65
push 0x1001380
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100ab73
push 0xffffffffffffffff
push 0x100136c
push 0xffffffffffffffff
push ebx
xor ebx, ebx
inc ebx
push ebx
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x100ab56
mov eax, dword [ebp + 8]
mov dword [eax], ebx
push edi
push 0
call esi
pop ecx
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x100ab16
jmp 0x100ab7f
mov dword [ebp - 4], 1
call fcn.01011864
jmp 0x100ab7f
mov dword [ebp - 4], 1
call fcn.01011458
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 4

Function at 0x100cebf
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0xc]
lea ebx, [esi + 0x50]
push ebx
xor edi, edi
push edi
push esi
push 0x100d168
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x100cf20
mov dword [ebp - 4], edi
push 1
mov edi, 0x1038860
push edi
call fcn.0102667d
mov ecx, dword [0x1038858]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], esi
call fcn.0100cf37
push edi
mov esi, eax
call fcn.01024fbf
jmp 0x100cf2b
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov esi, 0x80000001
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1011231
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1037f7c]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x20c], ecx
call fcn.01010b83
xor eax, eax
cmp edi, eax
je 0x1011294
push 0x100130c
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.01011193
push edi
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.01011193
xor eax, eax
push eax
lea ecx, [ebp - 0x208]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0x204]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10112e6
test ebx, ebx
je 0x10112ea
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x20c]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10112ea
xor eax, eax
jmp 0x10112f9
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010248c0
leave
ret 0x10

Function at 0x101130d
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1037f7c]
push ebx
push esi
push edi
lea esi, [ebp + 0x10]
lea edi, [ebp - 0x414]
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], eax
mov esi, 0x80
push esi
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x1003f30
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.01010b83
lea eax, [ebp - 0x404]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.01011193
push 0x1003f14
lea eax, [ebp - 0x104]
push eax
push 0x1003f08
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.01011165
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x14
lea eax, [ebp - 0x204]
push eax
mov ebx, 0x80000000
push ebx
call edi
cmp dword [ebp + 8], 0
je 0x1011407
push 0x1003ef8
push esi
lea eax, [ebp - 0x304]
push eax
call fcn.01010b83
lea eax, [ebp - 0x404]
push eax
push esi
lea eax, [ebp - 0x304]
push eax
call fcn.01011193
lea eax, [ebp - 0x304]
push eax
push ebx
call edi
push 0x1003edc
lea eax, [ebp - 0x104]
push eax
push 0x1003f08
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.01011165
add esp, 0x14
lea eax, [ebp - 0x204]
push eax
push ebx
call edi
cmp dword [ebp + 0xc], 0
je 0x1011438
push 0x1003ebc
lea eax, [ebp - 0x104]
push eax
push 0x1003f08
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.01011165
add esp, 0x14
lea eax, [ebp - 0x204]
push eax
push ebx
call edi
lea eax, [ebp - 0x104]
push eax
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.010248c0
leave
ret 0x18
Function at 0x10255bd
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0x28
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1025687
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
push dword [ebp - 8]
call fcn.0100dba4
mov edi, eax
cmp edi, ebx
pop ecx
je 0x1025673
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 3
push dword [ebp - 4]
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x102566a
xor eax, eax
xor esi, esi
cmp dword [edi], ebx
jbe 0x102565e
lea edx, [edi + 0xc]
mov ecx, dword [edx]
test cl, 2
jne 0x1025641
or ecx, 2
xor eax, eax
mov dword [edx], ecx
inc eax
inc esi
add edx, 0xc
cmp esi, dword [edi]
jb 0x1025632
cmp eax, ebx
je 0x102565e
push ebx
push ebx
push ebx
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jne 0x102566a
mov dword [ebp - 0xc], 0x80041003
push edi
call fcn.0100dbce
pop ecx
jmp 0x102567a
mov dword [ebp - 0xc], 0x80041006
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
jmp 0x1025694
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], 0x80041003
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret

Function at 0x102651a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push 0x1006014
push 0x80000002
mov dword [0x1037f8c], 0x40000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102657a
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x1037f8c
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1006050
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1037f8c]
leave
ret

Function at 0x1026586
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push 0x10060ac
push 0x80000002
mov dword [0x1038ae4], 0x8000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10265f8
and dword [ebp - 4], 0
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1006084
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10265ef
mov eax, dword [ebp - 4]
shl eax, 0xa
mov dword [0x1038ae4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1038ae4]
leave
ret
Function at 0x1027692
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push dword [0x1038040]
lea eax, [ebp - 4]
push dword [ebp + 8]
mov esi, ecx
push eax
push 2
call fcn.0102671e
mov ebx, eax
add esp, 0x10
test ebx, ebx
jl 0x1027753
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x644]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
or eax, 0x20019
push eax
push 0
push dword [ebp - 4]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102774a
push edi
push dword [ebp + 8]
xor edi, edi
inc edi
mov ecx, esi
mov dword [esi + 0x10], edi
call fcn.010274ab
mov ebx, eax
test ebx, ebx
jl 0x1027719
push dword [ebp + 8]
mov ecx, esi
call fcn.01027592
mov ebx, eax
lea eax, [ebp - 8]
push eax
add esi, 0x2c
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [0x1038b04]
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x1027760
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push esi
push dword [0x1038044]
lea eax, [ebp - 4]
push dword [ebp + 8]
mov esi, ecx
push eax
push 2
call fcn.0102671e
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x102780b
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x644]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
or eax, 0x20019
push eax
push 0
push dword [ebp - 4]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1027802
and dword [esi + 0xc], 0
inc eax
mov dword [esi + 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [esi + 8], 2
lea eax, [ebp - 8]
push eax
add esi, 0x234
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [0x1038b04]
mov dword [ebp - 8], 0x208
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
pop esi
leave
ret 4