joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10116ab
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push 4
dec eax
dec eax
pop esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov ecx, 0x80000001
mov edx, 0x1003938
je 0x10116f0
dec eax
je 0x10116e9
sub eax, 3
jne 0x10116fa
mov edx, 0x10038c8
jmp 0x10116f5
mov edx, 0x1003850
jmp 0x10116f5
mov edx, 0x10037e8
mov ecx, 0x80000002
lea eax, [ebp - 4]
push eax
push 1
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1011711
jg 0x1011733
jmp 0x101173d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x1011741
jle 0x101173d
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1011749
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
cmp dword [ebp - 4], edi
je 0x1011757
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x10026f3
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x100276f
cmp word [ebx + 8], 2
jne 0x100274b
cmp word [ebx + 0xa], 4
jne 0x100274b
mov esi, dword [ebx + 0xc]
jmp 0x1002745
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01002686
test eax, eax
mov dword [edi], eax
je 0x100276a
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x1002729
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x1002795
push 8
pop eax
jmp 0x1002795
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x1002795
dec ecx
je 0x1002790
dec ecx
je 0x1002789
dec ecx
jmp 0x1002795
mov eax, 0x2afb
jmp 0x1002795
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x1002deb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x1010378], 0
mov eax, dword [0x1010368]
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x100143c
mov dword [ebp - 0x22c], 0x1002998
mov dword [ebp - 0x228], 0x1001430
mov dword [ebp - 0x224], 0x1002c1a
mov dword [ebp - 0x220], 0x1001420
mov dword [ebp - 0x21c], fcn.01002952
jne 0x1002f6c
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002f62
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x1002e63
push edi
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002e7e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, 0x1001418
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x1002ec1
push 0x100143c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1002ebd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x1002f18
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x1002ec3
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002edd
mov esi, 0x1001410
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x1002f5f
push 0x100143c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1002f14
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x1002f5f
xor edi, edi
push dword [ebp + edi*8 - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + edi*8 - 0x22c], eax
je 0x1002f3b
inc edi
cmp edi, 3
jl 0x1002f1a
jmp 0x1002f44
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x1002f5f
xor eax, eax
mov ecx, dword [ebp + eax - 0x22c]
mov dword [eax + 0x1010340], ecx
add eax, 8
cmp eax, 0x18
jl 0x1002f4a
pop esi
pop ebx
pop edi
mov dword [0x1010378], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x1010340]
call fcn.0100cc0e
leave
ret 4
Function at 0x100372e
Capabilities:
Compare security identifiers
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1010368]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x4050]
cmp dword [edi], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x224], 0x105
mov word [esi + 0x3ff4], 1
mov byte [esi + 0x3fde], bl
jne 0x10037be
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 0x218], bl
mov byte [ebp - 0x217], bl
mov byte [ebp - 0x216], bl
mov byte [ebp - 0x215], bl
mov byte [ebp - 0x214], bl
mov byte [ebp - 0x213], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x10037be
mov dword [edi], ebx
jmp 0x1003922
cmp dword [esi + 0x4054], ebx
jne 0x100384d
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x10017d8
push ebx
mov dword [ebp - 0x21c], ebx
call edi
push dword [ebp - 0x21c]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
push 0x10017d8
push ebx
mov dword [esi + 0x4054], eax
call edi
test eax, eax
jne 0x100384d
mov eax, dword [esi + 0x4054]
cmp eax, ebx
je 0x100384d
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi + 0x4054], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push 2
push dword [esi + 0x4008]
call edi
push dword [ebp - 0x21c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x220], eax
je 0x1003922
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp - 0x21c]
push eax
push 2
push dword [esi + 0x4008]
call edi
test eax, eax
je 0x1003916
mov edi, dword [ebp - 0x220]
cmp dword [edi], ebx
mov dword [ebp - 0x218], ebx
jbe 0x1003916
add edi, 4
push dword [esi + 0x4050]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10038ce
mov eax, dword [edi + 4]
test al, 4
je 0x10038ce
test al, 0x10
je 0x1003908
mov eax, dword [esi + 0x4054]
cmp eax, ebx
je 0x10038ed
cmp byte [esi + 0x3fde], bl
jne 0x10038ed
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100390f
inc dword [ebp - 0x218]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x218]
add edi, 8
cmp ecx, dword [eax]
jb 0x10038b1
jmp 0x1003916
mov word [esi + 0x3ff4], bx
mov byte [esi + 0x3fde], 1
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor al, al
pop ebx
call fcn.0100cc0e
leave
ret
Function at 0x1003a95
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
call edi
test eax, eax
jne 0x1003b45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003b45
push esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1003b44
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push 0x40
call esi
mov esi, eax
cmp esi, ebx
je 0x1003b3b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push ebx
call edi
test eax, eax
je 0x1003b34
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_RtlSubAuthorityCountSid]
movzx eax, byte [eax]
dec eax
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov eax, dword [eax]
cmp eax, dword [ebp + 0xc]
jne 0x1003b34
mov byte [ebp - 1], 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x1003caa
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1010368]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
mov esi, ecx
jne 0x1003ccb
xor al, al
jmp 0x1003d31
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push edi
push 0xfffffffffffffff6
mov dword [esi + 0x1720], eax
lea edi, [esi + 0x1700]
call ebx
push 0xfffffffffffffff5
mov dword [edi], eax
call ebx
mov edi, dword [edi]
cmp edi, 0xffffffff
mov dword [esi + 0x1704], eax
je 0x1003d2d
cmp eax, 0xffffffff
je 0x1003d2d
push 0
push 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
call edi
push 0
push 1
push dword [esi + 0x1704]
call edi
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1003d3e
push eax
call fcn.0100d471
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100cc0e
leave
ret 4
mov al, 1
jmp 0x1003d2f
Function at 0x10044a5
Capabilities:
Impersonate user

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 4]
push eax
mov esi, ecx
mov eax, dword [esi + 0x1720]
add eax, 0x39b7
push eax
call fcn.0100d1fa
mov eax, dword [esi + 0x1720]
lea ecx, [eax + 0x4008]
push ecx
push 0
push 2
push dword [ebp - 4]
lea ecx, [eax + 0x3dcc]
push ecx
add eax, 0x3bc2
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
push dword [ebp - 4]
mov dword [esi + 0x170c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp - 4]
call fcn.0100cfa7
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x1720]
pop ecx
lea ecx, [eax + 0x39b7]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004523
sub eax, edi
push eax
push ecx
call fcn.0100cfa7
mov eax, dword [esi + 0x1720]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
add eax, 0x3bc2
cmp word [eax], 0
je 0x1004562
push eax
call edi
shl eax, 1
pop ecx
push eax
mov eax, dword [esi + 0x1720]
add eax, 0x3bc2
push eax
call fcn.0100cfa7
mov eax, dword [esi + 0x1720]
add eax, 0x3dcc
cmp word [eax], 0
je 0x100458b
push eax
call edi
shl eax, 1
pop ecx
push eax
mov eax, dword [esi + 0x1720]
add eax, 0x3dcc
push eax
call fcn.0100cfa7
mov eax, dword [esi + 0x170c]
pop edi
pop esi
leave
ret

Function at 0x1004788
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 0x1700]
cmp eax, 0xffffffff
je 0x10047d2
lea edx, [ecx + 0x16d0]
push edx
lea edx, [ecx + 0x16f0]
push edx
push 0x274
add ecx, 0x1028
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10047d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10047d5
push eax
push 0xc0000fb8
push 1
call fcn.0100d50f
xor al, al
ret
mov al, 1
ret
Function at 0x10047dd
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
mov esi, ecx
mov eax, dword [esi + 0x1074]
xor ebx, ebx
push ebx
lea ecx, [esi + 0x1028]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
mov dword [esi + 0x16fc], eax
jne 0x1004824
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0100db3a
pop ecx
jmp 0x10048c6
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [esi + 0x16fc]
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1004852
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10048c6
push 4
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], ebx
push 0xffffff7f
mov ebx, 0xffff
push ebx
push dword [esi + 0x16fc]
mov dword [ebp - 0xc], edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
call edi
push dword [esi + 0x16fc]
call fcn.0100d64d
cmp eax, 0xffffffff
je 0x10048c0
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push ebx
push dword [esi + 0x16fc]
call edi
cmp eax, 0xffffffff
je 0x10048c0
push 4
lea eax, [ebp - 4]
push eax
push 0x100
push ebx
push dword [esi + 0x16fc]
mov dword [ebp - 4], 1
call edi
cmp eax, 0xffffffff
jne 0x10048ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x10048cc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004962
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [ecx + 0x16c8]
push esi
lea esi, [ecx + 0x12b4]
push esi
mov eax, ecx
sub eax, edx
lea esi, [ecx + 0x16cc]
push esi
add eax, 0x16c8
push eax
push edx
push dword [ecx + 0x16fc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop esi
jne 0x10049bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x10049bc
cmp eax, 0x3e5
je 0x10049bc
cmp eax, 0x40
je 0x10049b9
push eax
push 0xc0000fb7
push 1
call fcn.0100d50f
xor al, al
ret
mov al, 1
ret
Function at 0x1004a8d
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1010368]
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
cmp esi, eax
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
je 0x1004b64
mov dword [esi], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x3c]
push eax
push 4
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUdateFromDate]
test eax, eax
jne 0x1004b64
fld qword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push eax
push closesocket
push 0x800
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_VarBstrFromDisp]
test eax, eax
jne 0x1004b64
push ebx
push edi
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
mov ebx, 0x1010380
push ebx
mov dword [ebp - 0x34], eax
call edi
mov ecx, dword [ebp - 0x34]
add ecx, eax
lea eax, [ecx + ecx + 0x20]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0xc
test eax, eax
mov dword [esi], eax
je 0x1004b62
and word [ebp - 0x24], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1004b4b
and word [ebp - 0x24], ax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov byte [ebp - 0x25], 1
pop edi
pop ebx
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x25]
pop esi
call fcn.0100cc0e
leave
ret 4

Function at 0x10059b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
push 0
lea edi, [esi + 0x16cc]
push edi
lea eax, [esi + 0x12b4]
push eax
push dword [esi + 0x16fc]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x10059db
cmp dword [edi], 0
jne 0x10059df
xor al, al
jmp 0x10059fc
push ebx
mov ecx, esi
call fcn.0100594f
mov ebx, eax
test bl, 1
je 0x10059ff
mov ecx, esi
call fcn.010048f6
test al, al
jne 0x10059ff
xor al, al
pop ebx
pop edi
pop esi
ret
test bh, 0x10
mov ecx, esi
je 0x1005a19
push 0x1001c28
call fcn.010049c4
mov ecx, esi
call fcn.010048f6
jmp 0x10059f9
pop ebx
pop edi
pop esi
jmp fcn.01004962
Function at 0x1007ac5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x1010368]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
mov edi, 0xf003f
push edi
push ebx
push ebx
push ebx
push 0x1001790
mov esi, getpeername
push esi
mov dword [ebp - 0x820], ebx
call fcn.0100d979
test eax, eax
je 0x1007b1a
push 0x1001790
jmp 0x1007cd3
push ebx
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x81c]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
mov edi, 0x1001e80
push edi
push esi
mov dword [ebp - 0x80c], ebx
call fcn.0100d979
test eax, eax
jne 0x1007cc6
push ebx
push 0x10014e8
lea eax, [ebp - 0x80c]
push eax
push 0x1001e6c
push ebx
push dword [ebp - 0x81c]
call fcn.0100d0c5
push dword [ebp - 0x81c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x805], al
call esi
cmp byte [ebp - 0x805], bl
jne 0x1007b8f
push dword [ebp - 0x810]
call esi
jmp 0x1007ce2
push 0x5c
push dword [ebp - 0x80c]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1007ba6
mov word [eax], bx
push dword [ebp - 0x80c]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
mov esi, eax
mov dword [esp], 0x1001e5c
call edi
add esi, eax
lea eax, [esi + esi + 4]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x814], esi
jne 0x1007bea
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007ce2
push dword [ebp - 0x80c]
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x1001804
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
call esi
push 0x1001e5c
push dword [ebp - 0x814]
call esi
add esp, 0x18
push ebx
push dword [ebp - 0x814]
lea eax, [ebp - 0x818]
push eax
push 0x1001e4c
push ebx
push dword [ebp - 0x810]
call fcn.0100d0c5
push dword [ebp - 0x810]
mov byte [ebp - 0x805], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x805], bl
je 0x1007ce2
push 0x400
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x814]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x80c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x818]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
lea eax, [ebp - 0x804]
push eax
call edi
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
cmp eax, ebx
mov dword [0x10105fc], eax
je 0x1007ce2
lea ecx, [ebp - 0x804]
push ecx
push 0x1001e48
push 0x3ff
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
mov al, 1
jmp 0x1007ce4
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0xc0000fc1
push 1
call fcn.01005a57
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100cc0e
leave
ret
Function at 0x100970a
Capabilities:
Get token privileges
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push ebx
push 3
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x1009740
push 0x1001f5c
call sub.ntdll.dll_DbgPrint
pop ecx
jmp 0x10097da
push esi
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x10097d9
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 3
push dword [ebp + 8]
call edi
test eax, eax
je 0x10097bf
push 0x17
xor ecx, ecx
pop eax
xor edx, edx
cmp dword [esi], ebx
mov edi, eax
mov dword [ebp - 8], ecx
jbe 0x100979d
lea eax, [esi + 0xc]
cmp dword [eax - 8], edi
jne 0x1009789
mov ecx, dword [ebp - 8]
cmp dword [eax - 4], ecx
je 0x1009795
mov ecx, dword [eax]
test cl, 2
je 0x1009795
and ecx, 0xfffffffc
mov dword [eax], ecx
inc edx
add eax, 0xc
cmp edx, dword [esi]
jb 0x100977c
push ebx
push ebx
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10097d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f2c
jmp 0x10097cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f04
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x100a233
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, 0x104
push 0x208
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
mov esi, dword [ebp + 8]
pop ecx
mov dword [esi], eax
je 0x100a29d
mov edi, ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x100a2a1
push dword [esi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100a293
add dword [ebp - 4], ebx
movzx edi, word [ebp - 4]
lea eax, [edi + edi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [esi], eax
jne 0x100a25a
jmp 0x100a29d
push eax
push 0
push 1
call fcn.0100d50f
xor al, al
jmp 0x100a2a3
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100a60a
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x24
mov esi, ecx
xor bl, bl
mov dword [ebp - 4], 0x12
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
je 0x100a68b
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x100a643
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100a684
add dword [ebp - 4], 3
mov eax, dword [ebp - 4]
add eax, eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [esi + 0x50], eax
je 0x100a684
mov ecx, dword [ebp - 4]
add ecx, ecx
push ecx
push eax
call fcn.0100cfa7
mov eax, dword [ebp - 4]
push edi
push 0x1002128
push 0x10020f8
dec eax
push eax
push dword [esi + 0x50]
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x14
mov bl, 1
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret