joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003592
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [str._This_is_LOG_0]
add eax, 0xd
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
test eax, eax
pop ecx
je 0x10003693
push esi
lea eax, [ebp + 0xc]
push edi
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x42c]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x10003614
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x42c]
push eax
call sub.MSVCRT.dll_strlen
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
call esi
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x100937f8
push edi
call esi
push 0x10093864
push 0x10093854
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x10003684
lea eax, [ebp - 0x42c]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10003655
lea eax, [ebp - 0x42c]
push eax
push 0x10093850
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
jmp 0x1000367c
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll__strtime]
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll__strdate]
pop ecx
push eax
push 0x10093844
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
leave
ret

Function at 0x100036c3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x100036fa
cmp dword [ebp - 0x90], 5
jb 0x100036fa
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x1000372b
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push edi
push eax
push 0x28
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10003767
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100938cc
push 0x100938ac
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
jmp 0x100037e1
lea eax, [ebp - 0xc]
push eax
push 0x10093898
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10003797
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10093880
push 0x100938ac
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
jmp 0x100037d8
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x1c]
push 0x10
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100037d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10093868
jmp 0x10003787
push 1
pop edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
leave
ret

Function at 0x100037e6
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and byte [ebp - 0x1c], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
mov esi, 0x280
push esi
call edi
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x10003836
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
push dword [ebp - 8]
call edi
pop ecx
mov dword [ebp - 4], eax
pop ecx
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x100038a2
test esi, esi
je 0x100038a2
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea ebx, [esi + 0x10c]
push 0x10093908
push ebx
call edi
pop ecx
test eax, eax
pop ecx
jne 0x10003887
push 0x100938e8
push ebx
call edi
pop ecx
test eax, eax
pop ecx
jne 0x10003887
lea eax, [esi + 0x1b0]
push 0x100938e0
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x1000388f
mov esi, dword [esi]
test esi, esi
jne 0x10003851
jmp 0x100038a2
add esi, 0x1b0
lea eax, [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100038bb
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100038ea
push 0x10093928
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
xor eax, eax
ret
push 1
pop eax
ret

Function at 0x100038ee
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
xor edx, edx
pop ecx
test edi, edi
mov esi, eax
jle 0x10003928
mov eax, dword [ebp + 0xc]
push ebx
mov ecx, esi
sub eax, esi
mov dword [ebp + 0x10], edi
mov edx, edi
mov bl, byte [eax + ecx]
add bl, byte [0x1008e5d0]
mov byte [ecx], bl
inc ecx
dec dword [ebp + 0x10]
jne 0x10003916
pop ebx
and byte [edx + esi], 0
push 0
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
cmp eax, edi
je 0x10003942
mov edi, eax
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x1000399a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1404
call fcn.10014f70
push ebx
push esi
mov esi, 0xff
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0xc03]
mov byte [ebp - 0xc04], bl
mov byte [ebp - 0x1404], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1403]
mov byte [ebp - 0x804], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x803]
mov byte [ebp - 0x1004], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1003]
push 0x400
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1404]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x400]
mov dword [ebp - 0x404], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x404]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1404]
push eax
call fcn.10003950
push dword [ebp - 0x400]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, 0x10093664
lea eax, [ebp - 0x1004]
push esi
push eax
call edi
push 0x2f
push dword [ebp - 0x400]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x2c
cmp eax, ebx
je 0x10003b6c
mov byte [eax], bl
inc eax
push eax
lea eax, [ebp - 0x804]
push esi
push eax
call edi
add esp, 0xc
cmp dword [ebp + 8], 2
jl 0x10003b67
mov esi, dword [sym.imp.MSVCRT.dll__strnicmp]
push 7
push 0x10093958
push dword [ebp - 0x400]
call esi
add esp, 0xc
test eax, eax
jne 0x10003ac6
lea eax, [ebp - 4]
push eax
push ebx
push ebx
lea eax, [ebp - 0x1004]
push ebx
push eax
push ebx
call fcn.10002cce
jmp 0x10003af4
push 6
push 0x1009394c
push dword [ebp - 0x400]
call esi
add esp, 0xc
test eax, eax
jne 0x10003b67
lea eax, [ebp - 4]
push eax
push ebx
push ebx
lea eax, [ebp - 0x1004]
push ebx
push eax
push ebx
call fcn.1000208f
add esp, 0x18
test eax, eax
je 0x10003b67
cmp dword [ebp + 8], 3
mov esi, 0x10093948
jne 0x10003b22
push esi
push dword [ebp - 0x3fc]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x10003b22
push ebx
lea eax, [ebp - 0x804]
jmp 0x10003b60
cmp dword [ebp + 8], 4
jne 0x10003b67
push esi
push dword [ebp - 0x3fc]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x10003b67
push dword [ebp - 0x3f8]
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xc04]
push 0x10093940
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0xc04]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 1
pop eax
jmp 0x10003b6e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10003b75
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
call fcn.10003695
test eax, eax
je 0x10003be9
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x10093964
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp + 8], esi
jne 0x10003bd3
push esi
push 6
jmp 0x10003bf9
cmp dword [ebp + 8], 2
jne 0x10003bde
push esi
push 4
jmp 0x10003bf9
cmp dword [ebp + 8], 1
jne 0x10003c07
push esi
push 0xc
jmp 0x10003bf9
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10003bce
cmp dword [ebp + 8], 2
push esi
je 0x10003bda
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x10003c07
xor eax, eax
jmp 0x10003c0a
push 1
pop eax
pop esi
leave
ret

Function at 0x10003c0d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push edi
push 0x49
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x124]
mov dword [ebp - 0x128], ebx
push ebx
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003c40
xor eax, eax
jmp 0x10003cbc
lea eax, [ebp - 0x128]
push esi
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10003cb2
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x120], esi
je 0x10003c7a
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10003cb2
jmp 0x10003c5f
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
cmp dword [ebp + 0x10], eax
pop ecx
jb 0x10003c99
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push 1
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x10003cc0
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x100164e4
push 1
push esi
push 0x10016564
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x10003d3e
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push edx
push 0x10016554
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10003d3e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10003d2f
push 1
pop eax
jmp 0x10003d40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
leave
ret

Function at 0x10003d43
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x100164e4
push 1
push esi
push 0x10016564
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x10003dc1
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push edx
push 0x10016544
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10003dc1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10003db2
push 1
pop eax
jmp 0x10003dc3
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
leave
ret
Function at 0x10003dc6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
and byte [ebp - 0x814], 0
push ebx
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x813]
mov ebx, connect
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 1
push 0
mov esi, 0x800
push 0x100939b0
push ebx
mov dword [ebp - 0x14], esi
call edi
test eax, eax
jne 0x10003ea3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push 0
push 0x100939a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10003ea3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov dword [ebp - 0x10], 3
mov dword [ebp - 8], esi
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
xor esi, esi
push esi
push eax
mov dword [ebp - 0xc], eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 1
push esi
lea eax, [ebp - 0x814]
push 0x10093998
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
push eax
push ebx
call edi
test eax, eax
jne 0x10003ea3
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
push esi
push 0x10093978
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10003ea7
xor eax, eax
jmp 0x10003eb7
movzx eax, byte [edi + 3]
movzx ecx, byte [edi + 2]
shl eax, 8
add eax, ecx
shl eax, 6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004249
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004273
push 0x10093a7c
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
xor eax, eax
jmp 0x100042d8
lea eax, [ebp - 0x128]
push esi
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100042cc
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [ebp - 0x104]
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x100042c4
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x100042cc
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
jmp 0x1000429f
mov esi, dword [ebp - 0x120]
jmp 0x100042ce
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
leave
ret
Function at 0x1000493a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
cmp dword [ebp + 0xc], 0
push esi
push edi
je 0x1000496e
and dword [ebp - 0x128], 0
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x124]
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004975
xor eax, eax
jmp 0x100049ff
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100049f4
push dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVCRT.dll__strupr]
call esi
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
call esi
pop ecx
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x100049c9
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x100049ef
push dword [ebp + 0xc]
jmp 0x10004999
push dword [ebp - 0x120]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 8]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x100049f6
push 1
pop esi
jmp 0x100049f6
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x10004a03
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10004a25
lea eax, [ebp - 4]
push 0x10093e30
push eax
call fcn.1000493a
pop ecx
test eax, eax
pop ecx
jne 0x10004a29
xor eax, eax
jmp 0x10004a7e
push 0x44
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCRT.dll_memset
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
mov dword [ebp - 0x58], 0x44
push dword [ebp + 8]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x50], 0x10093e20
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x10004a81
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10004aa3
lea eax, [ebp - 4]
push 0x10093e30
push eax
call fcn.1000493a
pop ecx
test eax, eax
pop ecx
jne 0x10004aa7
xor eax, eax
jmp 0x10004afe
push 0x44
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCRT.dll_memset
mov ax, word [ebp + 0x10]
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
mov dword [ebp - 0x58], 0x44
push dword [ebp + 0xc]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x50], 0x10093e20
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x10004b01
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x213]
mov byte [ebp - 0x214], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push 0x10093e58
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004bbe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10093e50
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004bbe
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strlen
mov byte [ebp + eax - 0x111], bl
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x214]
push 0x10093e40
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push dword [ebp + 8]
push eax
call fcn.10004a81
add esp, 0x1c
push 1
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x10004bcd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push ebx
push eax
push 0xf003f
push 0
push 0x10093a50
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push 1
pop ebx
push ebx
push 0
push 0x10093a44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10004c15
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x10004c23
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 0xf003f
push ebx
push 0x10093a50
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x10093a44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10004c58
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x10004c66
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push ebx
push eax
push 0xf003f
push 0
push 0x10093a50
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push 1
pop ebx
push ebx
push 0
push 0x10093a38
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10004cae
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x10004cbc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 0xf003f
push ebx
push 0x10093a50
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x10093a38
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10004cf1
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x100052a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
and byte [ebp - 0x60c], 0
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x60b]
and byte [ebp - 0x20c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x10093a50
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10005309
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100053f6
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x20c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x100940e0
push dword [ebp - 4]
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
test eax, eax
jne 0x10005379
lea eax, [ebp - 0x20c]
push eax
call edi
push eax
lea eax, [ebp - 0x60c]
push 0x100940c0
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x60c]
push 0
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 8]
call fcn.100038ee
add esp, 0x10
push 0x200
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x100940b4
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x100053eb
lea eax, [ebp - 0x20c]
push eax
call edi
push eax
lea eax, [ebp - 0x60c]
push 0x10094094
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x60c]
push 0
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 8]
call fcn.100038ee
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
leave
ret