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

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x78dffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x78e035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0078de00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x78dfc5
mov edi, 0x7a88b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x78e035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0078de00
add edi, 4
add esp, 0xc
cmp edi, 0x7a88c0
jb 0x78e000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x78e070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00794082
mov esi, eax
add esp, 8
test esi, esi
je 0x78e107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x78e102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00793946
add esp, 8
test eax, eax
je 0x78e0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x78e0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00793946
add esp, 8
test eax, eax
jne 0x78e0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x78e102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x78ef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7a39fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x78f002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00792dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x78f002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0078a6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0079320b
push 0x10
call fcn.007931d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x78efc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0077f1c0
jmp 0x78efc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0078eb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x78eff0
mov ecx, edi
call fcn.0077f2c0
push edi
call fcn.007931c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x78f021
inc ebx
cmp ebx, 0x20
jb 0x78ef3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x790250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a4808
push 0x794288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x790329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x790329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007931d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x790329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x790329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x79032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00790351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x791000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x791131
push esi
call fcn.00794145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00783080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x791131
push 0
push ebp
call fcn.007833a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00783260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x79108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007832f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x791121
push 0x7a9918
push edi
call fcn.007923f0
push eax
push ebx
push esi
call fcn.00790f60
push 0x7a98f8
push edi
call fcn.007923f0
push eax
push ebx
push esi
call fcn.00790f60
push 0x7a98d8
push edi
call fcn.007923f0
push eax
push ebx
push esi
call fcn.00790f60
push 0x7a98c0
push edi
call fcn.007923f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00790f60
push 0x7a98a0
push edi
call fcn.007923f0
push eax
push ebx
push esi
call fcn.00790f60
push 0x7a9888
push edi
call fcn.007923f0
push eax
push ebx
push esi
call fcn.00790f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7921b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00792140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00792140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00792140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00792140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x792bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x792c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7a487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x792c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x792c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Accept command line arguments
Delete file
Get common file path
Read file on windows
Set current directory
Terminate process
Write file on windows

Disassembly:
and dword [0x410c9c], 0
and dword [0x410ca0], 0
and dword [0x410ca4], 0
and dword [0x410cac], 0
and dword [0x410ca8], 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x410be0], eax
push 0x400
push 0x40408c
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x4107dc
push 0x40448c
push 0x400
push 0x40408c
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
push 0x4107e0
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov edi, dword [0x4107dc]
mov byte [edi], 0
push 0x40448c
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [0x410bfc], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [0x410c00], eax
mov dword [0x410be8], 0
mov dword [0x410bec], 0x402c3b
mov dword [0x410bf0], 0
mov dword [0x410bf4], 0
mov eax, dword [0x410be0]
mov dword [0x410bf8], eax
mov dword [0x410c04], 0
mov dword [0x410c08], 0
mov dword [0x410c0c], 0x403011
push 0x410be8
call dword [sym.imp.USER32.DLL_RegisterClassA]
test eax, eax
je 0x4028fd
test eax, eax
je 0x4028fd
mov dword [0x410be4], eax
push 0
push 0x410c9c
push 0
call dword [sym.imp.DDRAW.DLL_DirectDrawCreate]
or eax, eax
jne 0x4028fd
jmp 0x402087
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0x80000000
push str.nw2.pak
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
push 2
push 0
push 0xffff67fe
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x40217a
push 0
push 0x404084
push 0x9802
push 0x40448c
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x40408c
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
rdtsc
xor eax, edx
and eax, 0x7070707
add eax, 0x61616161
push 0
mov ah, 0x2e
push eax
mov eax, esp
push eax
push 0x40408c
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
pop eax
pop eax
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push 0x40408c
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
push 0
push 0x404088
push dword [0x404084]
push 0x40448c
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x40408c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x40217a
mov ebx, eax
push str.main
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x40217a
push 0
push 0
call eax
push 0x4107e0
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push 0
push str.nw2.pak
call fcn.00402cdf
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 0x40408c
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x402985
jmp 0x402087
push dword [0x410c18]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x402cdf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x10], 1
pushal
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x10]
push 0
push 0x44
push esi
call fcn.00402cca
push 0
push 0x10
push edi
call fcn.00402cca
mov dword [ebp - 0x54], 0x44
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x402d61
push dword [ebp + 8]
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x25c]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x25c]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
popal
leave
ret 8
Function at 0x1000c02d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10032118]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.1000bf6c
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.1000c950
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1000c07c
cmp dword [ebp - 0x1c], 5
jb 0x1000c094
jmp 0x1000c090
cmp dword [ebp - 0x10], 1
jne 0x1000c094
cmp dword [ebp - 0x1c], 4
ja 0x1000c090
jne 0x1000c094
cmp dword [ebp - 0x18], 0
jbe 0x1000c094
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002a39c
call fcn.1000be02
test eax, eax
jge 0x1000c0b5
mov byte [0x1003478c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000c2ef
add ebp, 0x78
leave
ret

Function at 0x1000c2ef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10032118]
jne 0x1000c2f9
repz ret
jmp fcn.10010541
Function at 0x100115ec
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100322c0]
je 0x10011607
inc edi
cmp edi, 0x17
jb 0x100115f8
cmp edi, 0x17
jae 0x10011787
push ebp
push 3
call fcn.10017b34
cmp eax, 1
pop ecx
je 0x10011753
push 3
call fcn.10017b34
test eax, eax
pop ecx
jne 0x1001163b
cmp dword [0x10033b10], 1
je 0x10011753
cmp ebx, 0xfc
je 0x10011786
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10033e90
push ebp
call fcn.10011475
add esp, 0xc
test eax, eax
je 0x10011671
push esi
push esi
push esi
push esi
push esi
call fcn.1000c700
add esp, 0x14
push 0x104
mov esi, 0x10033ea9
push esi
push 0
mov byte [0x10033fad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100116b5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10011475
add esp, 0xc
test eax, eax
je 0x100116b5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000c700
add esp, 0x14
push esi
call fcn.1000c410
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100116fa
push esi
call fcn.1000c410
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100341a4
push 0x1002b2f4
sub ecx, eax
push ecx
push eax
call fcn.10016c95
add esp, 0x14
test eax, eax
je 0x100116fa
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000c700
add esp, 0x14
jmp 0x100116fc
xor esi, esi
push 0x1002b2f0
push ebx
push ebp
call fcn.10016c24
add esp, 0xc
test eax, eax
je 0x1001171c
push esi
push esi
push esi
push esi
push esi
call fcn.1000c700
add esp, 0x14
push dword [edi*8 + 0x100322c4]
push ebx
push ebp
call fcn.10016c24
add esp, 0xc
test eax, eax
je 0x1001173e
push esi
push esi
push esi
push esi
push esi
call fcn.1000c700
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10017977
add esp, 0xc
jmp 0x10011786
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10011786
cmp ebp, 0xffffffff
je 0x10011786
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100322c4]
push dword [esi]
call fcn.1000c410
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10017977
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001189f
xor ebx, ebx
cmp dword [0x100344ac], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10017a4d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10017b2d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10017b2d
push eax
call fcn.10011831
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100344ac], eax
call esi
push eax
call fcn.10011831
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100344b0], eax
call esi
push eax
call fcn.10011831
mov dword [0x100344b4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000f0ba
test eax, eax
pop ecx
pop ecx
je 0x10017a1b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000c700
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10017a4d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10011831
cmp eax, ebx
pop ecx
mov dword [0x100344bc], eax
je 0x10017a4d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10011831
pop ecx
mov dword [0x100344b8], eax
mov eax, dword [0x100344b8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10017ad2
cmp dword [0x100344bc], ecx
je 0x10017ad2
push eax
call fcn.100118a8
push dword [0x100344bc]
mov esi, eax
call fcn.100118a8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10017ad2
cmp edi, ebx
je 0x10017ad2
call esi
cmp eax, ebx
je 0x10017a9f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10017a9f
test byte [ebp - 0x18], 1
jne 0x10017ad2
lea eax, [ebp - 0x10]
push eax
call fcn.1000f0f1
test eax, eax
pop ecx
je 0x10017aba
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000c700
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10017ac9
or dword [ebp + 0x10], 0x200000
jmp 0x10017b0d
or dword [ebp + 0x10], 0x40000
jmp 0x10017b0d
mov eax, dword [0x100344b0]
cmp eax, dword [ebp - 8]
je 0x10017b0d
push eax
call fcn.100118a8
cmp eax, ebx
pop ecx
je 0x10017b0d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10017b0d
mov eax, dword [0x100344b4]
cmp eax, dword [ebp - 8]
je 0x10017b0d
push eax
call fcn.100118a8
cmp eax, ebx
pop ecx
je 0x10017b0d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100344ac]
call fcn.100118a8
cmp eax, ebx
pop ecx
je 0x10017b2d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10017b2f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001b4c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.1001b300
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001b4f2
mov eax, dword [ebp - 8]
jmp 0x1001b55f
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 1
jne 0x1001b507
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x1001b53d
cmp dword [ebp + 0x14], 7
jne 0x1001b515
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
jmp 0x1001b53d
cmp dword [ebp + 0x14], 2
jne 0x1001b523
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
jmp 0x1001b53d
cmp dword [ebp + 0x14], 4
jne 0x1001b531
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x1001b53d
cmp dword [ebp + 0x14], 3
jne 0x1001b53d
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001b570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 1
jne 0x1001b5b6
mov dword [ebp - 8], 0x410
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
jmp 0x1001b673
cmp dword [ebp + 0x14], 7
jne 0x1001b5e5
mov dword [ebp - 8], 0x410
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
jmp 0x1001b673
cmp dword [ebp + 0x14], 2
jne 0x1001b611
mov dword [ebp - 8], 0x410
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
jmp 0x1001b673
cmp dword [ebp + 0x14], 4
jne 0x1001b63d
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
jmp 0x1001b673
cmp dword [ebp + 0x14], 3
jne 0x1001b673
mov dword [ebp - 8], 0x100
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx + 0x100], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1001c1d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100288a4
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x10032118]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push eax
lea ecx, [ebp - 0x24c]
call fcn.10008820
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.100057e0
cmp eax, 0xffffffff
jne 0x1001c257
mov byte [ebp - 0x24d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.10008850
mov al, byte [ebp - 0x24d]
jmp 0x1001c2de
mov dword [ebp - 0x244], 0x22c
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.100057e0
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1001c2bd
mov ecx, dword [ebp + 8]
call fcn.10004010
push eax
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001c2a1
mov byte [ebp - 0xd], 1
jmp 0x1001c2bd
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x24c]
call fcn.100057e0
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001c281
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0x24e], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.10008850
mov al, byte [ebp - 0x24e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000c2ef
mov esp, ebp
pop ebp
ret 4