joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd5b1b0
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.00d5b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d5b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d5b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d5b140
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 0xd5bbfa
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 0xd5bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd6d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd5bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd5bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40b330
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426e2c]
jne 0x40b33a
repz ret
jmp fcn.0041386c

Function at 0x41b294
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426e2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004105ea
and dword [ebp - 0x14], 0
cmp dword [0x47a7d4], 0
mov dword [ebp - 0x18], eax
jne 0x41b347
push 0x4038b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41b3ef
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4038a4
push ebx
call edi
test eax, eax
je 0x41b3ef
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403894
push ebx
mov dword [0x47a7d4], eax
call edi
push eax
call esi
push 0x403880
push ebx
mov dword [0x47a7d8], eax
call edi
push eax
call esi
push 0x403864
push ebx
mov dword [0x47a7dc], eax
call edi
push eax
call esi
mov dword [0x47a7e4], eax
test eax, eax
je 0x41b347
push 0x40384c
push ebx
call edi
push eax
call esi
mov dword [0x47a7e0], eax
mov eax, dword [0x47a7e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41b3a0
cmp dword [0x47a7e4], ecx
je 0x41b3a0
push eax
call esi
push dword [0x47a7e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41b3a0
test ebx, ebx
je 0x41b3a0
call edi
test eax, eax
je 0x41b397
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41b397
test byte [ebp - 8], 1
jne 0x41b3a0
or dword [ebp + 0x10], 0x200000
jmp 0x41b3d3
mov eax, dword [0x47a7d8]
cmp eax, dword [ebp - 0x18]
je 0x41b3d3
push eax
call esi
test eax, eax
je 0x41b3d3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b3d3
mov eax, dword [0x47a7dc]
cmp eax, dword [ebp - 0x18]
je 0x41b3d3
push eax
call esi
test eax, eax
je 0x41b3d3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47a7d4]
call esi
test eax, eax
je 0x41b3ef
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41b3f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b330
leave
ret
Function at 0x422f20
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Manipulate console buffer

Disassembly:
mov eax, 0x1004
call fcn.004221e0
cmp dword [0x81b558], 0x37
jne 0x422fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea edx, [esp + 0x808]
push edx
push 0x4044a8
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x81b55c]
mov edx, dword [0x8179c8]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1004
ret
Function at 0x40cb60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0040b701
hlt

Function at 0x40dc40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x448a16
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0xa50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563c4]
xor eax, esp
push eax
lea eax, [esp + 0xa68]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa78]
mov ebp, dword [esp + 0xa7c]
mov dword [esp + 0x20], ecx
xor ecx, ecx
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ecx
mov word [esp + 0x44], cx
mov dword [esp + 0xa70], ecx
cmp byte [eax + 0x246], cl
je 0x40dde6
add eax, 0x18
push eax
mov ebx, str.Uninstall
lea esi, [esp + 0x28]
call fcn.00416100
add esp, 4
push edi
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0xa78], 1
call fcn.00403460
mov esi, 8
mov byte [esp + 0xa70], 0
cmp dword [esp + 0x3c], esi
jb 0x40dd07
mov edx, dword [esp + 0x28]
push edx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x58], esi
mov eax, dword [esp + 0x44]
jae 0x40dd15
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add edi, 1
push edi
push ebp
lea edx, [esp + 0x64]
push str._s_d
push edx
call esi
mov ecx, dword [esp + 0x28]
add esp, 0x10
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
push ecx
call ebx
cmp eax, 2
jne 0x40dd41
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x268]
push eax
mov eax, dword [esp + 0x28]
call fcn.00421020
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [ecx + ecx]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x268]
push eax
push 7
push 0
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40ddc7
push eax
push str.Error_creating_uninstall_key_0x_X
push 0x4575e0
mov eax, 2
call fcn.00419140
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x58], 8
jb 0x40dde6
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00422b32
add esp, 4
mov ecx, dword [esp + 0xa68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa50]
xor ecx, esp
call fcn.00422b23
add esp, 0xa60
ret 8
Function at 0x418460
Capabilities:
Get file version info

Disassembly:
sub esp, 0x220
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, ecx
test ebx, ebx
push esi
push edi
jne 0x418492
push 0x208
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x4184bd
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00422b23
add esp, 0x220
ret
push edi
call fcn.0042260a
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x44d9c8
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
xor edx, edx
xor edi, edi
push esi
or edi, ecx
or ebx, edx
call fcn.00422b32
mov ecx, dword [esp + 0x228]
add esp, 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.00422b23
add esp, 0x220
ret

Function at 0x4186b0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.temp
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
push 0
push 0x44eb38
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00422b23
add esp, 0x20c
ret
Function at 0x419140
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x1c], 8
mov esi, eax
jb 0x419155
mov eax, dword [edi + 8]
jmp 0x419158
lea eax, [edi + 8]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4192be
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 1
jne 0x419195
mov esi, 0x44f648
jmp 0x4191a4
cmp esi, 2
mov esi, 0x44f650
je 0x4191a4
mov esi, 0x44cf34
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4191b0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
push edx
push esi
push ebp
call ebx
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4191e0
sub eax, edx
mov edx, dword [edi + 0x20]
sar eax, 1
add edx, edx
test edx, edx
mov esi, eax
mov eax, 0x45a228
jle 0x41921f
mov ecx, edx
shr ecx, 1
mov eax, 0x200020
mov edi, 0x45a228
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x18]
lea eax, [edx*2 + 0x45a228]
mov word [eax], 0
mov ecx, dword [edi + 0x20]
push 0
add ecx, ecx
lea eax, [esp + 0x14]
push eax
sub ecx, esi
add ecx, ecx
push ecx
push 0x45a228
push ebp
call ebx
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00424af9
mov esi, eax
add esi, 3
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042260a
mov ecx, dword [esp + 0x28]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push ecx
push esi
push edi
call fcn.00424c8e
push 0x44f65c
push esi
push edi
call fcn.00424ca9
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419290
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0x14]
push edx
add eax, eax
push eax
push edi
push ebp
call ebx
push edi
call fcn.00422b32
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x405140
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
cmp word [esi], 0
je 0x40517d
push str.SQLDUMPER_ERRORLOG.log
push esi
push 0x4192c8
push 0x104
push eax
call fcn.00401fd0
add esp, 0x14
jmp 0x4051c5
mov edi, str.SQLDUMPER_ERRORLOG.log
lea ecx, [esp + 0xc]
mov edx, 0x104
sub edi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4051ae
movzx eax, word [edi + ecx]
test ax, ax
je 0x4051ae
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x405190
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
test edx, edx
mov word [eax], cx
mov eax, 0x8007007a
cmovne eax, ecx
test eax, eax
js 0x405308
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x410], eax
cmp eax, 0xffffffff
jne 0x4052aa
cmp word [esi], 0
mov dword [esi + 0x410], 0
je 0x405253
lea ecx, [esp + 0xc]
mov edi, str.SQLDUMPER_ERRORLOG.log
mov eax, ecx
mov edx, 0x104
sub edi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40523e
movzx eax, word [edi + ecx]
test ax, ax
je 0x40523e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x405220
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x405308
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x410], eax
cmp eax, 0xffffffff
jne 0x4052aa
mov dword [esi + 0x410], 0
xor eax, eax
lfence
cmp dword [esi + 0x410], eax
pop edi
setne al
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00414600
add esp, 0x210
ret
push 0
lfence
push dword [esi + 0x410]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x4052e3
push eax
lfence
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 2
push 0x418b74
push dword [esi + 0x410]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405308
xor eax, eax
lfence
cmp dword [esi + 0x410], eax
pop edi
setne al
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00414600
add esp, 0x210
ret
mov ecx, dword [esp + 0x214]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00414600
add esp, 0x210
ret
Function at 0x405860
Capabilities:
Terminate process

Disassembly:
sub esp, 0xaa8
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0xaa4], eax
push esi
push edi
mov esi, ecx
mov edi, edx
push 0x42e620
lea ecx, [esp + 0xc]
call fcn.00401ee0
call fcn.00404310
mov dl, 1
mov ecx, str.SQLDumper.exe_starting
call fcn.00404350
call 0x404510
test eax, eax
js 0x4058b8
push str.TraceLogging_successfully_initialized.
push 2
push 0x429048
call fcn.00404d90
add esp, 0xc
jmp 0x4058d0
push eax
push str.TraceLogging_initialization_failed_with_return_code:__d.
push 1
push 0x429048
lfence
call fcn.00404d90
add esp, 0x10
push 0x42e640
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, edi
mov ecx, esi
call fcn.004043d0
call 0x405530
call 0x412220
push dword [esp + 0xab4]
mov ecx, 0x42e620
push edi
push esi
call 0x407170
mov ecx, 0x42e620
call 0x40c910
mov ecx, 0x42e620
call 0x408fc0
mov ecx, 0x429048
call fcn.00404d80
mov ecx, 0x42e620
call fcn.0040a200
mov ecx, 0x42e620
call 0x409780
mov ecx, 0x42e620
call 0x411360
lea ecx, [esp + 8]
call fcn.0040e500
mov ecx, 0x42e620
call 0x411820
mov ecx, 0x42e620
call fcn.00409660
mov ecx, 0x42e620
call fcn.00405520
test eax, 0x2000
je 0x40596f
push 0
jmp 0x405978
test eax, 0x800000
je 0x405982
push 1
mov ecx, 0x42e620
call fcn.0040a470
mov ecx, 0x42e620
call 0x40c8b0
mov ecx, 0x42e620
call fcn.0040d150
mov ecx, 0x42e620
call fcn.00405520
test eax, 0x200
je 0x4059b4
push 0
push 0x3a98
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov dl, 1
mov ecx, str.SQLDumper.exe_ending
call fcn.00404350
call 0x4044c0
call 0x404540
push dword [0x429040]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4080c0
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Move file
Query or enumerate registry value

Disassembly:
mov eax, 0x1494
call fcn.00415f70
mov eax, dword [0x429008]
xor eax, esp

Function at 0x409900
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x134
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
mov esi, ecx
test dword [esi + 0xe7e4], 0x400
je 0x409a8c
push str.Send_To_Watson_flag_is_set_to_true
push 2
push 0x429048
call fcn.00404d90
add esp, 0xc
test dword [esi + 0xe7e4], 0x4000
je 0x409978
push str.Force_Watson_flag_is_set_to_true
push 2
push 0x429048
call fcn.00404d90
add esp, 0xc
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00414600
add esp, 0x134
ret
mov eax, dword [esi + 0xe818]
test eax, eax
je 0x4099f5
push 0x418b34
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4099f5
push 0x118
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x11c
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409a8c
cmp dword [esp + 0x24], 2
jne 0x409a8c
cmp dword [esp + 0x18], 6
jb 0x409a8c
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00414600
add esp, 0x134
ret
push dword [esi + 0xe7e4]
mov edx, dword [esi + 0xe81c]
mov ecx, dword [esi + 0xe818]
call fcn.00405610
mov esi, eax
test esi, esi
je 0x409a8c
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push str.EnableErrorReporting
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
jne 0x409a6c
cmp dword [esp + 8], 4
jne 0x409a6c
cmp dword [esp + 0xc], 4
jne 0x409a6c
mov eax, 1
cmp dword [esp + 0x10], eax
cmove ebx, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00414600
add esp, 0x134
ret
mov ecx, dword [esp + 0x138]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x134
ret
Function at 0x40b440
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x4d0
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x4cc], eax
mov eax, dword [esp + 0x4d4]
push ebx
push ebp
push esi
push edi
push 0x190
mov dword [esp + 0x18], eax
mov ebp, edx
lea eax, [esp + 0x34]
mov ebx, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x190
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x40b5c5
mov edi, dword [esp + 0x10]
shr edi, 2
cmp edi, 0x64
jbe 0x40b4ac
mov edi, 0x64
jmp 0x40b4b4
test edi, edi
je 0x40b5e0
xor esi, esi
push 0xc
lea eax, [esp + 0x28]
push eax
push dword [esp + esi*4 + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x40b55f
push 0x104
lea eax, [esp + 0x2cc]
push eax
push dword [esp + esi*4 + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x40b55f
push 0x104
lea eax, [esp + 0x1c4]
push eax
push dword [esp + esi*4 + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x40b55f
lea eax, [esp + 0x1c0]
push ebp
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40b57a
push 1
push eax
lea eax, [esp + 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40b585
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2cc]
push eax
push str.Could_not_load_module__s___d_.
push 1
push 0x429048
call fcn.00404d90
add esp, 0x14
mov eax, esi
jmp 0x40b5e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_module_information_for_remote_process___d_.
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
inc esi
cmp esi, edi
jl 0x40b4b6
jmp 0x40b5e0
push 0xc
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x40b5b0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, esi
jmp 0x40b5e2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_module_information_for_local_image___d_.
jmp 0x40b5d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_enumerate_process_modules___d_.
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x4dc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x4d0
ret 4
Function at 0x40cb80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x22c
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
mov eax, ecx
mov dword [esp + 4], 0
push ebp
mov dword [esp + 0xc], eax
push esi
mov eax, dword [eax + 0x2dec0]
push edi
movzx eax, word [eax + 4]
push eax
push str.Lookup_process_by_port__d
push 2
push 0x429048
call fcn.00404d90
add esp, 0x10
mov ecx, 2
call fcn.0040cad0
mov ecx, 0x17
mov ebx, eax
call fcn.0040cad0
mov ebp, eax
test ebp, ebp
je 0x40cc1f
xor esi, esi
cmp dword [ebp], esi
jbe 0x40cc1f
mov edi, ebp
nop word [eax + eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2dec0]
movzx eax, word [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, dword [edi + 0x18]
je 0x40cc18
inc esi
add edi, 0x38
cmp esi, dword [ebp]
jb 0x40cbf0
jmp 0x40cc1f
mov eax, dword [edi + 0x38]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x40cc60
test ebx, ebx
je 0x40cc60
xor esi, esi
cmp dword [ebx], esi
jbe 0x40cc60
mov edi, ebx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2dec0]
movzx eax, word [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, dword [edi + 0xc]
je 0x40cc59
inc esi
add edi, 0x18
cmp esi, dword [ebx]
jb 0x40cc32
jmp 0x40cc60
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
push 0x1c
push ebx
call fcn.00414c50
push 0x3c
push ebp
call fcn.00414c50
add esp, 0x10
cmp dword [esp + 0x10], 0
jne 0x40cd2e
push str.Lookup_process_by_uptime_pid
push 2
push 0x429048
call fcn.00404d90
add esp, 0xc
mov dword [esp + 0x18], 0
lea eax, [esp + 0x24]
push 0x20a
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], 0x105
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push 0
mov eax, dword [eax + 0x2dec0]
add eax, 0x316
push eax
call dword [sym.imp.instapi160.dll_GetInstRegPathByName]
test eax, eax
je 0x40cd2e
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
lea eax, [esp + 0x30]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cd2e
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push str.uptime_pid
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x10]
push str.Lookup_process_finished_with_PID_d
push 2
push 0x429048
call fcn.00404d90
mov ecx, dword [esp + 0x248]
add esp, 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x22c
ret