joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ab06
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x4008]
push esi
xor esi, esi
cmp eax, esi
jne 0x100ab25
mov al, 1
jmp 0x100ac1e
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x100ab6a
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push 1
mov dword [ebp - 0xc], 0x4000
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
je 0x100ab71
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x100ab6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xc0001772
push 1
call fcn.0100d50f
xor al, al
jmp 0x100ac1e
push ebx
mov ebx, 0x103
push edi
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x100abe0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call sub.MPR.dll_WNetEnumResourceW
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x100abce
cmp dword [ebp - 8], esi
mov dword [ebp - 4], esi
jbe 0x100abd2
lea esi, [edi + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x100abbc
push 0
push 1
push eax
call sub.MPR.dll_WNetCancelConnection2W
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 0x20
cmp eax, dword [ebp - 8]
jb 0x100abac
xor esi, esi
jmp 0x100abd2
cmp eax, ebx
jne 0x100ac01
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x14], ebx
jne 0x100ab78
jmp 0x100ac08
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x100abfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xc0001772
push 1
call fcn.0100d50f
xor al, al
jmp 0x100ac1c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x10]
call sub.MPR.dll_WNetCloseEnum
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x100abea
mov al, 1
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100ac26
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x101061c]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, ecx
je 0x100ac43
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [0x101061c], ebx
push edi
mov ecx, esi
call fcn.0100ab06
lea edi, [esi + 0x10]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x100ac68
cmp eax, ebx
je 0x100ac68
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
push ebx
call fcn.0100dc41
mov eax, dword [esi + 4]
add eax, 0x3ed0
cmp dword [eax + 4], ebx
mov ecx, dword [eax]
pop edi
jne 0x100ac7c
cmp ecx, ebx
je 0x100ac86
push dword [eax + 4]
push dword [eax]
call fcn.0100e1fd
mov eax, dword [0x10105d8]
cmp eax, ebx
je 0x100acac
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x100acac
push ecx
mov ecx, dword [esi + 4]
push dword [ecx + 0x4008]
call eax
test eax, eax
jne 0x100acac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x100acba
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi + 0xc], ebx
pop esi
pop ebx
jmp dword [sym.imp.KERNEL32.dll_FreeConsole]
Function at 0x100acca
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1010368]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov ebx, ecx
xor eax, eax
mov byte [ebp - 0x20c], 0
mov ecx, 0x81
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x207
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100adac
cmp eax, 0x208
jae 0x100adac
sub esi, eax
push esi
lea eax, [ebp + eax - 0x20c]
push 0x10021c8
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebx + 0x14], eax
je 0x100adac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10021b4
push eax
call esi
push 0x10021a0
mov dword [0x10105d4], eax
push dword [ebx + 0x14]
call esi
push 0x1002188
mov dword [0x10105d8], eax
push dword [ebx + 0x14]
call esi
push 0x1002170
mov dword [0x10105e0], eax
push dword [ebx + 0x14]
call esi
push 0x1002154
mov dword [0x10105e4], eax
push dword [ebx + 0x14]
call esi
push 0x1002134
mov dword [0x10105e8], eax
push dword [ebx + 0x14]
call esi
mov dword [0x10105ec], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100cc0e
leave
ret

Function at 0x100b25a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010368]
and word [ebp - 0x210], 0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov ebx, ecx
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov edi, 0x104
push edi
push dword [0x10105f0]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], eax
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call fcn.0100af0f
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x210]
push eax
push 0x1002240
call esi
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
sub eax, ecx
sar eax, 1
sub edi, eax
push edi
push 0x1001804
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0xc
push dword [ebp - 0x214]
push 0x100222c
call esi
mov eax, dword [ebx + 4]
add eax, 0x3ed8
push eax
push 0x1002224
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100cc0e
leave
ret
Function at 0x100bb3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x100bb55
xor al, al
jmp 0x100bc1b
push esi
mov esi, 0x400
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [ebp - 0xc], eax
jne 0x100bb76
xor al, al
jmp 0x100bc1a
push esi
push eax
call fcn.0100cfa7
mov edi, dword [ebx + 4]
movzx eax, word [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x100bbaa
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0xc]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bba6
cmp dword [ebp - 8], 0
je 0x100bc21
and dword [ebp - 4], 0
movzx eax, word [ebp - 4]
mov ecx, dword [ebp - 0xc]
movsx ax, byte [eax + ecx]
inc dword [ebp - 4]
cmp ax, 0xd
jne 0x100bbcb
movzx eax, word [ebp - 4]
movsx ax, byte [eax + ecx]
inc dword [ebp - 4]
cmp ax, 0xa
jne 0x100bbe2
cmp edi, dword [ebx + 4]
jbe 0x100bbf8
lea eax, [edi - 1]
cmp byte [eax], 0x5c
jne 0x100bbf8
mov edi, eax
jmp 0x100bb80
mov ecx, edi
sub ecx, dword [ebx + 4]
cmp ecx, esi
jge 0x100bbf0
mov byte [edi], al
inc edi
jmp 0x100bb80
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push dword [ebp + 8]
mov ecx, ebx
mov byte [edi], 0
call fcn.0100b84f
test al, al
je 0x100bb7d
mov bl, 1
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov al, bl
pop esi
pop edi
pop ebx
leave
ret 4
xor bl, bl
jmp 0x100bc0f
Function at 0x100c6ad
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call fcn.0100bfaa
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x100c6dd
xor al, al
jmp 0x100c7a5
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
push 0x1001790
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c790
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x100227c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c790
cmp dword [ebp - 8], ebx
je 0x100c790
push esi
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
cmp esi, ebx
pop ecx
je 0x100c78f
mov ecx, dword [ebp - 8]
push edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x100227c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x100c788
cmp dword [ebp - 0x10], 7
jne 0x100c788
mov eax, dword [ebp - 8]
add eax, esi
cmp byte [eax], bl
je 0x100c779
cmp byte [eax - 1], bl
je 0x100c779
mov byte [ebp - 1], bl
jmp 0x100c788
mov ecx, dword [ebp - 0x14]
push esi
push dword [ebp + 8]
call fcn.0100c026
mov byte [ebp - 1], al
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x100cd26
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10023e0
call fcn.0100ced8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100cd61
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100cd61
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100cd79
cmp eax, 0x20b
je 0x100cd66
mov dword [ebp - 0x1c], edi
jmp 0x100cd8d
cmp dword [ecx + 0x84], 0xe
jbe 0x100cd61
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100cd87
cmp dword [ecx + 0x74], 0xe
jbe 0x100cd61
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1010638], 0xffffffff
or dword [0x101063c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1010614]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1010610]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1010640], eax
call fcn.0100cf64
cmp dword [0x1010370], edi
jne 0x100cde8
push fcn.0100cf64
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100cf4d
push 0x1010010
push 0x101000c
call sub.msvcrt.dll__initterm
mov eax, dword [0x101060c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1010608]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1010008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01005aa5
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100ce5f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100ce94
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100cf13
ret

Function at 0x100d3a8
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, eax
je 0x100d423
movzx ecx, word [ebp + 0xc]
dec ecx
je 0x100d40e
dec ecx
je 0x100d3fe
dec ecx
dec ecx
je 0x100d3ee
sub ecx, 4
je 0x100d3de
sub ecx, 8
jne 0x100d423
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
push dword [ebp + 0x10]
push eax
push 0x10
jmp 0x100d41c
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
push dword [ebp + 0x10]
push eax
push 8
jmp 0x100d41c
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
push dword [ebp + 0x10]
push eax
push 4
jmp 0x100d41c
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
push dword [ebp + 0x10]
push eax
push 2
jmp 0x100d41c
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
push dword [ebp + 0x10]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop ebp
ret 0x10
Function at 0x100dc8c
Capabilities:
Check if file exists
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push edi
xor edi, edi
cmp dword [0x101061c], esi
mov dword [ebp - 4], esi
jne 0x100dcc6
push 0xf0000000
push 1
push esi
push esi
push 0x101061c
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100dcc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x100dd3a
lea eax, [ebp - 4]
push eax
push 4
push dword [0x101061c]
inc edi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push dword [ebp - 4]
push 0x100247c
push 0x103
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
push esi
push 0xc0100080
push 3
push dword [ebp + 0xc]
push esi
push 0x2000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x100dd1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100dd31
lea eax, [ebp - 8]
push eax
push esi
call fcn.0100dc41
cmp edi, 0xc8
jl 0x100dcc6
xor eax, eax
cmp dword [ebp - 8], 0xffffffff
sete al
pop edi
pop esi
leave
ret 8

Function at 0x100dd45
Capabilities:
Create pipe

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1010368]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
je 0x100de42
cmp edi, ebx
je 0x100de42
cmp byte [ebp + 0x14], bl
je 0x100dd85
cmp byte [ebp + 0x14], 1
jne 0x100de42
mov dword [ebp - 0x214], eax
mov al, byte [ebp + 0x14]
sub al, bl
mov dword [ebp - 0x218], 0xc
je 0x100ddac
dec al
jne 0x100ddb2
mov dword [ebp - 0x210], 1
jmp 0x100ddb2
mov dword [ebp - 0x210], ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0100dc8c
test al, al
je 0x100de42
lea eax, [ebp - 0x218]
push eax
push ebx
mov eax, 0x800
push eax
push eax
push 1
push 6
push 0x40080001
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x100de42
mov al, byte [ebp + 0x14]
sub al, bl
je 0x100de08
dec al
jne 0x100de12
mov dword [ebp - 0x210], ebx
jmp 0x100de12
mov dword [ebp - 0x210], 1
push ebx
push 0xc0110080
push 3
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x100de53
push esi
push ebx
call fcn.0100dc41
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100cc0e
leave
ret 0x10
mov al, 1
jmp 0x100de44
Function at 0x100deb0
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp word [esi + 4], di
mov dword [ebp - 4], edi
jbe 0x100def7
lea eax, [ebp - 4]
push eax
movzx eax, di
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x100def0
mov eax, dword [ebp - 4]
add eax, 8
push eax
push dword [0x1010634]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100deff
inc edi
cmp di, word [esi + 4]
jb 0x100dec6
xor al, al
pop edi
pop esi
leave
ret 4
mov al, 1
jmp 0x100def9

Function at 0x100dfa3
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100dfc4
leave
ret
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x10024a8
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor esi, esi
test eax, eax
je 0x100e00d
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push edi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 4]
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100e00d
xor esi, esi
lea eax, [ebp - 4]
push eax
push edi
call fcn.0100dc41
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x100e11d
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xfb8
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0100dfa3
lea eax, [ebp - 0xc]
push eax
push 0x3e8
lea eax, [ebp - 0xfb8]
push eax
call sub.PSAPI.DLL_EnumProcesses
mov eax, dword [ebp - 0xc]
shr eax, 2
mov dword [ebp - 0x18], eax
mov edi, ebx
je 0x100e1f2
push esi
push 8
lea eax, [ebp - 0x14]
push eax
call fcn.0100cfa7
lea esi, [ebp + edi*4 - 0xfb8]
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100e1e7
lea ecx, [ebp - 4]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100e1dd
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call fcn.0100e022
test eax, eax
je 0x100e1d3
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x100e1d3
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jne 0x100e1d3
cmp dword [ebp + 0x14], ebx
jne 0x100e1ca
push dword [ebp - 4]
call fcn.0100df08
test al, al
jne 0x100e1d3
push ebx
push dword [esi]
push dword [ebp - 8]
call dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0100dc41
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0100dc41
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x100e161
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x100e29c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x18], ebx
jne 0x100e31f
cmp eax, 0xea
je 0x100e2d3
cmp eax, ebx
jne 0x100e31f
cmp dword [ebp - 8], 2
je 0x100e2df
cmp dword [ebp - 8], 1
jne 0x100e316
cmp dword [ebp - 4], ebx
jne 0x100e2eb
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add eax, eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x100e316
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x100e369
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14
push dword [ebp + 0x14]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [esi], eax
je 0x100e316
push dword [ebp + 0x14]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [esi]
call edi
add esp, 0xc
lea eax, [eax + eax + 2]
push eax
push dword [esi]
mov dword [ebp - 4], eax
push 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
jmp 0x100e318
Function at 0x100e455
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x1010368]
mov ecx, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x638], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x620], ebx
mov dword [edi], ecx
jne 0x100e4a5
mov dword [ebp - 0x620], 0x8000ffff
jmp 0x100e632
lea eax, [ebp - 0x624]
push eax
push 1
push ebx
push 0x1002520
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100e4d2
mov dword [ebp - 0x620], 0x8000ffff
jmp 0x100e61d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x628]
push eax
push ebx
push 0x1002500
push dword [ebp - 0x624]
mov dword [ebp - 0x62c], 0x208
call esi
test eax, eax
je 0x100e519
mov dword [ebp - 0x620], 0x8000ffff
jmp 0x100e61c
cmp dword [ebp - 0x628], 1
jne 0x100e50a
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push 0x10024e8
push dword [ebp - 0x624]
mov dword [ebp - 0x634], 0x208
call esi
test eax, eax
jne 0x100e50a
cmp dword [ebp - 0x628], 1
jne 0x100e50a
push dword [ebp - 0x630]
call sub.msvcrt.dll_wcslen
add eax, dword [ebp - 0x634]
pop ecx
mov ecx, dword [ebp - 0x62c]
lea eax, [eax + ecx + 2]
cmp eax, 0x104
jb 0x100e58f
mov dword [ebp - 0x620], 0x8007000e
jmp 0x100e61c
mov ecx, dword [ebp - 0x20c]
test cx, cx
je 0x100e5ba
lea eax, [ebp - 0x20c]
inc eax
lea edx, [ebx + ebx*4]
lea ebx, [ecx + edx*2 - 0x30]
inc eax
xor ecx, ecx
mov cx, word [eax]
test cx, cx
jne 0x100e5a0
cmp bx, 0x409
je 0x100e61c
push dword [ebp - 0x630]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x10024cc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x100e5fd
mov dword [ebp - 0x620], 0x80070006
jmp 0x100e61c
cmp dword [ebp - 0x638], 0
mov dword [edi], eax
je 0x100e61c
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x638]
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0x624], 0
je 0x100e632
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
pop edi
pop ebx
call fcn.0100cc0e
leave
ret 0x10