joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010a69
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x14
push 0x100297f8
call fcn.1002649c
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
push dword [ebp + 0xc]
call fcn.10010811
test eax, eax
je 0x10010a8f
xor eax, eax
jmp 0x10010bd1
lea eax, [ebp - 0x20]
push eax
call fcn.1001083d
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10010bce
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp - 0x20]
test eax, eax
jne 0x10010ab0
mov eax, dword [ebx + 8]
mov dword [edi + 0x14], eax
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
push dword [ebx]
push dword [ebp + 0xc]
call fcn.1001351f
mov esi, eax
test esi, esi
jne 0x10010ae9
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
push dword [ebx]
mov eax, dword [ebp + 0xc]
call fcn.100135c5
mov esi, eax
test esi, esi
je 0x10010b97
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10010b8c
mov dword [edi + 0x18], ebx
cmp dword [ebx + 0x10], 0
jne 0x10010b14
mov eax, ebx
mov ecx, dword [esi]
mov dword [eax + 0x10], ecx
mov eax, dword [esi]
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov eax, dword [esi]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [ebp + 0x10]
test ebx, 0x200
je 0x10010b4a
push edi
mov esi, dword [ebp + 8]
call fcn.100108d7
or ebx, 0x101
or dword [edi + 0x1c], ebx
mov esi, 0x1002d4a0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1002d498]
mov dword [edi], eax
mov dword [edi + 4], 0x1002d498
mov dword [eax + 4], edi
mov dword [0x1002d498], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10010b9e
mov dword [eax], edi
jmp 0x10010b9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x10010b9e
mov dword [ebp - 0x1c], 2
or dword [ebp - 4], 0xffffffff
jmp 0x10010bc2
cmp dword [ebp - 0x1c], 0
je 0x10010bce
push edi
call fcn.100012ff
mov eax, dword [ebp - 0x1c]
call fcn.100264d7
ret 0x10
Function at 0x10010cf3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x1c
push 0x100297e8
call fcn.1002649c
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 4]
mov edi, dword [ebp + 0xc]
call fcn.1001365c
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x10010e59
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x10010e51
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov ecx, dword [esi]
add ecx, dword [ebp + 0xc]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov ecx, dword [esi]
mov dword [edi + 0x10], ecx
push dword [ebp + 0x10]
push eax
mov esi, edi
mov eax, dword [ebp + 0xc]
call fcn.10010c30
mov dword [ebp - 0x1c], eax
cmp eax, 1
jne 0x10010e79
mov eax, dword [0x1002d218]
test eax, eax
je 0x10010dd5
push dword [edi + 8]
push dword [ebp + 0xc]
call fcn.10010bd9
mov esi, eax
test esi, esi
je 0x10010dd5
lea eax, [ebp + 0x14]
push eax
push 0x40
push 5
push esi
call ebx
test eax, eax
je 0x10010dd5
mov eax, dword [edi + 0x14]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
mov byte [esi], 0xe9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x14], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], esi
cmp dword [ebp + 0x14], 0x40
je 0x10010dc9
mov dword [ebp + 0x14], 0x20
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push 5
push esi
call ebx
mov ecx, dword [edi + 0x14]
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
mov dword [eax], ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x20]
push 4
push eax
call ebx
or dword [edi + 0x1c], 0x102
test dword [edi + 0x1c], 0x200
je 0x10010e05
push edi
mov esi, dword [ebp - 0x24]
call fcn.100108d7
mov esi, 0x1002d4a0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1002d498]
mov dword [edi], eax
mov dword [edi + 4], 0x1002d498
mov dword [eax + 4], edi
mov dword [0x1002d498], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x10]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
and dword [ebp - 0x1c], 0
push dword [ebp + 0xc]
call fcn.10011920
test eax, eax
je 0x10010e79
and dword [eax + 0x44], 0
jmp 0x10010e79
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10010e76
mov dword [ebp - 0x1c], 2
jmp 0x10010e79
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.100264d7
ret 0x10
Function at 0x10010ed7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.1001083d
mov ebx, eax
test ebx, ebx
jne 0x10010f8e
and dword [ebp - 4], eax
mov eax, dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [ebp - 8]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [edi + 4]
call ebx
test eax, eax
je 0x10010f7b
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [edi + 4]
call ebx
or dword [esi + 0x1c], 0x101
mov ebx, 0x1002d4a0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1002d498]
mov dword [esi], eax
mov dword [esi + 4], 0x1002d498
mov dword [eax + 4], esi
push ebx
mov dword [0x1002d498], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
xor ebx, ebx
jmp 0x10010f8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x10010f8d
push esi
call fcn.100012ff
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10010f93
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x18
push 0x100297c8
call fcn.1002649c
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1c]
mov dword [ebp - 0x24], eax
dec eax
je 0x10011087
dec eax
je 0x10011021
sub eax, 6
jne 0x100110de
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test dword [esi + 0x1c], 0x200
je 0x10011015
cmp dword [esi + 0x20], 0
je 0x10011015
mov eax, dword [esi + 0x18]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push 0x40
push ebx
push dword [esi + 0x20]
call edi
test eax, eax
je 0x10011015
mov eax, dword [esi + 0x18]
push dword [eax + 4]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push ebx
push dword [esi + 0x20]
call edi
and dword [esi + 0x1c], 0xfffffeff
jmp 0x100110de
mov eax, dword [0x1002d218]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10011060
mov ebx, dword [esi + 0x14]
cmp byte [ebx], 0xe9
jne 0x1001108d
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 5
push ebx
call edi
test eax, eax
je 0x1001108d
mov eax, dword [esi + 8]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 5
push ebx
call edi
jmp 0x1001108d
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 4
push dword [esi + 0xc]
call edi
test eax, eax
je 0x1001108d
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 4
push dword [esi + 0xc]
jmp 0x1001105c
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 4
push dword [esi + 0xc]
call edi
test eax, eax
je 0x100110b9
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 4
push dword [esi + 0xc]
call edi
jmp 0x10010fcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x10010fcc
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.100264d7
ret

Function at 0x100110eb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, 0x1002d4a0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
push edi
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [esi + 0xc]
call edi
test eax, eax
je 0x10011145
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [esi + 0xc]
call edi
and dword [esi + 0x1c], 0xfffffeff
xor edi, edi
jmp 0x1001114d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.100012ff
mov eax, edi
pop edi
leave
ret
Function at 0x100113d7
Capabilities:
Check os version

Disassembly:
push ebx
push 0xc
xor ebx, ebx
call fcn.100012ea
mov dword [0x1002d21c], eax
cmp eax, ebx
je 0x1001147a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x1002d4a0
call esi
mov eax, 0x1002d498
push 0x1002d480
mov dword [0x1002d49c], eax
mov dword [0x1002d498], eax
call esi
mov eax, 0x1002d470
mov dword [0x1002d474], eax
mov dword [0x1002d470], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x1001143e
cmp dword [0x1002d2bc], ebx
jne 0x1001143e
call fcn.10013da2
mov dword [0x1002d2bc], eax
xor edi, edi
inc edi
mov dword [0x1002d218], edi
xor esi, esi
push dword [esi + 0x1002c588]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x1002d21c]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0xc
jb 0x10011449
mov dword [0x1002d220], 3
mov dword [0x1002d214], edi
pop edi
pop esi
jmp 0x1001147d
push 8
pop ebx
mov eax, ebx
pop ebx
ret

Function at 0x10011481
Capabilities:
Check os version

Disassembly:
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1002d23c], eax
test eax, eax
je 0x100114f0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x100114ad
mov ecx, eax
shr ecx, 8
test cl, cl
ja 0x100114af
cmp al, al
jbe 0x100114eb
mov dword [0x1002d22c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 4]
push eax
push 0
push 0x47a
mov dword [0x1002d228], eax
mov dword [0x1002d234], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x1002d224], eax
test eax, eax
jne 0x100114e7
or dword [0x1002d224], 0xffffffff
xor eax, eax
jmp 0x100114f6
push 0x32
pop eax
jmp 0x100114f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 4

Function at 0x1001186f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, eax
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 8], esi
call fcn.10012279
test eax, eax
jne 0x10011917
push esi
push esi
push dword [ebp + 8]
call fcn.1001365c
cmp eax, esi
je 0x1001190f
sub eax, edi
push ebx
push eax
mov eax, edi
call fcn.1001383a
mov ebx, eax
cmp ebx, esi
je 0x1001190e
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1001190e
push esi
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jne 0x10011905
push esi
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10011905
cmp dword [ebp - 0xc], 4
jne 0x10011905
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 4]
call fcn.100012ff
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x100121e1
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1002d224]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov esi, 0x1000
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 8
mov ebx, esi
call fcn.100012ea
mov edi, eax
test edi, edi
je 0x1001226f
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp - 0xc]
call sub.PSAPI.DLL_EnumProcessModules
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10012240
mov eax, dword [ebp - 4]
cmp ebx, eax
ja 0x10012243
push edi
call fcn.100012ff
add ebx, esi
push ebx
call fcn.100012ea
mov edi, eax
test edi, edi
jne 0x10012210
mov eax, dword [ebp - 4]
test edi, edi
je 0x1001226f
cmp dword [ebp - 0x10], 0
je 0x10012260
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov ecx, dword [ebp + 0xc]
shr eax, 2
and dword [ebp - 8], 0
mov dword [ecx], eax
jmp 0x1001226f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 8], eax
call fcn.100012ff
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10012300
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 8
pop esi
push dword [ebp + 8]
xor eax, eax
xor edi, edi
call fcn.100128d1
mov ebx, eax
test ebx, ebx
je 0x10012371
cmp dword [ebp + 0x14], edi
je 0x10012330
push dword [ebp + 0x14]
xor eax, eax
call fcn.100128d1
mov edi, eax
test edi, edi
je 0x1001236b
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100101a5
mov esi, eax
test esi, esi
jne 0x10012361
push dword [ebp + 0x18]
push eax
push edi
push ebx
push 0x1002e620
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x1001235f
xor eax, eax
mov esi, eax
test edi, edi
je 0x1001236b
push edi
call fcn.100012ff
push ebx
call fcn.100012ff
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x100124d0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], 0x10000
test esi, esi
je 0x100124e9
push esi
call fcn.100012ff
push dword [ebp - 4]
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x10012513
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp edi, 0xc0000004
je 0x100124df
jmp 0x10012518
mov edi, 0xc000009a
test edi, edi
jl 0x1001253b
push 0x1002d2e0
push esi
call fcn.10006c01
mov ecx, dword [esi]
test ecx, ecx
je 0x10012531
add esi, ecx
jmp 0x10012533
xor esi, esi
test esi, esi
je 0x1001253b
test eax, eax
jne 0x1001251c
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
leave
ret
Function at 0x10012e15
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
and dword [esp + 4], 0
push ebx
push edi
lea eax, [esp + 0x10]
push eax
push 0x201
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10012edf
push 0x10
push eax
push esi
call sub.ntdll.dll_memset
add esp, 0xc
push 2
pop eax
push dword [ebp + 8]
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.100012ea
mov ebx, eax
test ebx, ebx
je 0x10012ed9
push dword [ebp + 8]
push ebx
call sub.ntdll.dll_strcpy
pop ecx
pop ecx
push 0x3a
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov edi, eax
test edi, edi
jne 0x10012e8b
cmp dword [ebp + 0xc], eax
je 0x10012ea5
mov edi, ebx
jmp 0x10012e8f
mov byte [edi], 0
inc edi
test edi, edi
je 0x10012ea5
push edi
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
cmp edi, ebx
je 0x10012ec0
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10012ed3
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
jmp 0x10012ecb
and dword [esi + 4], 0
cmp word [esi + 2], 0
je 0x10012ed3
mov dword [esp + 0xc], 1
push ebx
call fcn.100012ff
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100130e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [ebp - 4]
push ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x10]
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 8], eax
cmp dword [ebp - 4], edi
je 0x10013162
push ebx
push dword [ebp - 4]
call fcn.100012ea
mov ebx, eax
cmp ebx, edi
je 0x1001315a
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call esi
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10013152
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x10013161
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x10013161
push ebx
call fcn.100012ff
jmp 0x10013161
mov dword [ebp - 8], 8
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
cmp eax, dword [ebp + 8]
je 0x10013173
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 0x10
Function at 0x1001317a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor edi, edi
push SysReAllocString
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x10013218
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov dword [ebp + 8], eax
cmp dword [ebp - 4], edi
je 0x1001320e
push ebx
push dword [ebp - 4]
call fcn.100012ea
mov ebx, eax
cmp ebx, edi
je 0x10013206
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x100131fe
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x1001320d
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x1001320d
push ebx
call fcn.100012ff
jmp 0x1001320d
mov dword [ebp + 8], 8
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp + 8]
pop edi
leave
ret 0x10

Function at 0x10013220
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x10013255
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8
Function at 0x1001365c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [edi + 0x3c]
and dword [ebp - 0x14], 0
add eax, edi
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x1001367b
add eax, 0x78
jmp 0x10013680
add eax, 0x88
mov ecx, dword [eax]
push ebx
lea ebx, [ecx + edi]
test ecx, ecx
je 0x1001377d
cmp dword [eax + 4], 0
je 0x1001377d
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1001377d
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x1001377d
mov edx, dword [ebp + 8]
push esi
lea esi, [eax + edi]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], edx
test edx, edx
je 0x100136cc
cmp edx, 0xffff
ja 0x100136cc
mov dword [ebp - 0xc], ecx
jmp 0x100136d6
mov eax, dword [ebx + 0x18]
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1001376e
mov esi, dword [ebx + 0x20]
and dword [ebp - 8], 0
add eax, edi
add esi, edi
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
jbe 0x1001377c
cmp dword [ebp - 4], 0
je 0x1001370a
movzx eax, word [eax]
add eax, dword [ebx + 0x10]
cmp dword [ebp - 4], eax
jmp 0x10013736
mov eax, dword [esi]
add eax, edi
test edx, edx
je 0x1001371e
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x10013736
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi]
push eax
add edx, edi
xor eax, eax
call fcn.100141e2
not eax
cmp dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
je 0x10013753
add esi, 4
inc eax
inc eax
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp ecx, dword [ebp - 0xc]
jae 0x1001377c
mov edx, dword [ebp + 8]
jmp 0x100136f9
movzx eax, word [eax]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001377c
mov ecx, dword [esi]
add ecx, edi
mov dword [eax], ecx
jmp 0x1001377c
mov eax, dword [ebp - 4]
test eax, eax
je 0x1001377c
lea eax, [esi + eax*4 - 4]
mov dword [ebp - 0x14], eax
pop esi
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret 0xc

Function at 0x1001383a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [eax + ecx + 0x18]
movzx eax, word [ecx + 6]
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, dword [edx + 0xc]
cmp dword [ebp + 8], edi
jb 0x10013875
mov esi, dword [ecx + 0x3c]
mov ebx, dword [edx + 0x10]
lea ebx, [ebx + esi - 1]
dec esi
not esi
and ebx, esi
add ebx, edi
cmp dword [ebp + 8], ebx
jb 0x10013887
add dword [ebp - 4], 0xffff
add edx, 0x28
cmp word [ebp - 4], ax
jne 0x10013857
jmp 0x1001388f
mov eax, dword [edx + 0x14]
sub eax, edi
add eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4