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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423fb0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b59
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b16
cmp dword [ebp + 0x10], ebx
jne 0x402b4d
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ac5
test eax, eax
jne 0x402b28
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402afd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405c29
cmp eax, ebx
je 0x402b60
push ebx
push dword [0x423fb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b59
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423fb0], ebx
jne 0x402b56
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b56
jmp 0x402b59
Function at 0x402ee7
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f04
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f13
mov ebx, 0x40f0c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f28
mov ecx, dword [0x423f58]
add ecx, eax
push ecx
call fcn.00403116
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030e4
test eax, eax
je 0x40308f
test byte [ebp + 0x17], 0x80
je 0x403078
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40aff0
mov dword [ebp - 0xc], eax
call fcn.00405d03
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030da
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f78
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0c0
push esi
push edi
call fcn.004030e4
test eax, eax
je 0x40308f
sub dword [ebp + 0x14], esi
mov dword [0x40b008], edi
mov dword [0x40b00c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40aff0
mov dword [0x40b010], ebx
mov dword [0x40b014], eax
call fcn.00405d23
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403070
mov esi, dword [0x40b010]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409234], 1
mov edi, eax
je 0x40301a
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402fe7
cmp dword [ebp + 0x14], 0
jne 0x40301a
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404cee
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403065
cmp dword [ebp + 0x10], eax
jne 0x403043
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403074
cmp dword [ebp - 0x10], esi
jne 0x403074
add dword [ebp - 4], esi
jmp 0x403059
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b010]
jl 0x4030da
cmp dword [ebp - 0x14], 1
jne 0x402f9b
jmp 0x4030da
cmp dword [ebp + 0x14], eax
jg 0x402f6b
jmp 0x4030da
push 0xfffffffffffffffc
jmp 0x403091
push 0xfffffffffffffffe
jmp 0x403091
test edi, edi
je 0x4030cf
cmp dword [ebp + 0x14], esi
jge 0x403084
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030e4
test eax, eax
jne 0x4030d7
push 0xfffffffffffffffd
pop eax
jmp 0x4030dd
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40309f
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0c0
push esi
push edi
call fcn.004030e4
test eax, eax
je 0x40308f
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403074
cmp esi, dword [ebp + 0x10]
jne 0x403074
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403094
jmp 0x4030da
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4051b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422518], 0x44
push eax
xor eax, eax
push 0x422518
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4051eb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405275
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405517
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4052ab
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f88], eax
jmp 0x405430
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4052c6
test eax, eax
je 0x4053db
test cl, 2
je 0x4053db
mov esi, 0x421518
push ebx
push esi
call fcn.00405943
cmp dword [ebp + 8], 0
je 0x4052e5
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4052eb
push ebx
call fcn.0040547d
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4053d1
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405461
cmp byte [eax], 0
je 0x40533c
cmp byte [ebp - 0x18], 0
je 0x40533c
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405352
mov al, byte [esi + 1]
test al, al
je 0x4053b0
cmp al, 0x2e
jne 0x405352
cmp byte [esi + 2], 0
je 0x4053b0
push esi
push edi
call fcn.00405943
test byte [ebp - 0x148], 0x10
je 0x405377
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053b0
push dword [ebp + 0xc]
push ebx
call fcn.00405275
jmp 0x4053b0
push ebx
call fcn.004055fb
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4053a8
test byte [ebp + 0xc], 4
je 0x4053a0
push ebx
push 0xfffffffffffffff1
call fcn.00404cee
push 0
push ebx
call fcn.00405691
jmp 0x4053b0
inc dword [0x423f88]
jmp 0x4053b0
push ebx
push 0xfffffffffffffff2
call fcn.00404cee
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40531a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4053db
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405430
cmp dword [ebp - 8], esi
jne 0x4053f0
inc dword [0x423f88]
jmp 0x405430
push ebx
call fcn.00405beb
test eax, eax
je 0x405430
push ebx
call fcn.00405436
push ebx
call fcn.004055fb
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405428
test byte [ebp + 0xc], 4
je 0x4053e8
push ebx
push 0xfffffffffffffff1
call fcn.00404cee
push esi
push ebx
call fcn.00405691
jmp 0x405430
push ebx
push 0xffffffffffffffe5
call fcn.00404cee
pop esi
pop ebx
leave
ret 8
Function at 0x405517
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421918
push esi
call fcn.00405943
push esi
call fcn.004054ca
mov edi, eax
test edi, edi
jne 0x405538
xor eax, eax
jmp 0x40558a
push edi
call fcn.00405b52
test byte [0x423f10], 0x80
je 0x405551
mov al, byte [edi]
test al, al
je 0x405534
cmp al, 0x5c
je 0x405534
sub edi, esi
jmp 0x405569
call fcn.00405beb
test eax, eax
je 0x405563
test byte [eax], 0x10
je 0x405534
push esi
call fcn.0040547d
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405555
call fcn.00405436
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4055fb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405617
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40561a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405649
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40568d
test edi, edi
jne 0x405654
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405687
Function at 0x405691
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405c29
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4056b5
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4057ee
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4226a0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226a0
je 0x4056f9
push 1
push 0
push esi
call fcn.0040561a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4057f4
cmp eax, edi
jg 0x4057f4
mov esi, 0x422118
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4057f4
cmp eax, edi
jg 0x4057f4
push esi
push ebp
push str._s_s_r_n
push 0x421d18
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f08]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405965
push 4
push 0xc0000000
push esi
call fcn.0040561a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4057ee
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4057e7
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4057e7
cmp edi, dword [esp + 0x18]
jne 0x4057e7
push str._Rename__r_n
push esi
call fcn.0040558f
test eax, eax
jne 0x4057fb
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405943
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d18
push eax
call fcn.004055db
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409388
push eax
call fcn.0040558f
test eax, eax
je 0x4057b2
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405822
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405817
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4057b4
Function at 0x40582a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40589b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40588a
cmp dword [ebp + 0x14], 1
je 0x40588c
cmp dword [ebp + 0x14], 2
je 0x40588c
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405965
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x405986
mov ecx, dword [0x4236dc]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x423f38]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, 0x422ea0
sub ecx, eax
mov ebx, eax
cmp ecx, 0x800
jae 0x405b2c
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405b2c
mov edx, ebx
sub edx, eax
cmp edx, 0x400
jge 0x405b39
inc edi
cmp cl, 0xfc
jbe 0x405b1f
movsx eax, byte [edi + 1]
movsx ecx, byte [edi]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405aca
cmp dword [0x423f84], 0
push 2
pop esi
je 0x405a11
push 4
pop esi
mov eax, dword [ebp - 0x14]
test al, al
jns 0x405a48
mov ecx, eax
and eax, 0x3f
add eax, dword [0x423f38]
and ecx, 0x40
push ecx
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.0040582a
cmp byte [ebx], 0
jne 0x405ab1
push dword [ebp - 0xc]
push ebx
call fcn.00405965
jmp 0x405aac
cmp eax, 0x25
jne 0x405a5b
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405aac
cmp eax, 0x24
jne 0x405aa8
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405aa8
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x423f04]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405aa5
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405aac
and byte [ebx], 0
test esi, esi
jne 0x405a70
cmp byte [ebx], 0
je 0x405ac2
cmp dword [ebp - 0xc], 0x1a
jne 0x405ac2
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call fcn.00405b52
jmp 0x405b10
cmp byte [ebp + 0xf], 0xfd
jne 0x405afe
cmp esi, 0x1d
jne 0x405ae3
push dword [0x423f04]
push ebx
call fcn.004058a1
jmp 0x405af4
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push ebx
call fcn.00405943
add esi, 0xffffffeb
cmp esi, 7
jae 0x405b10
jmp 0x405ac2
cmp byte [ebp + 0xf], 0xff
jne 0x405b10
or eax, 0xffffffff
sub eax, esi
push eax
push ebx
call fcn.00405965
push ebx
call sub.KERNEL32.dll_lstrlenA
add ebx, eax
mov eax, 0x422ea0
jmp 0x405b2c
jne 0x405b29
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
inc edi
jmp 0x405b2c
mov byte [ebx], cl
inc ebx
mov cl, byte [edi]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x4059b1
and byte [ebx], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405b4e
push eax
push dword [ebp + 8]
call fcn.00405943
leave
ret 8
Function at 0x405c95
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422aa4], 0
push esi
jne 0x405ccc
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ca6
mov dword [ecx*4 + 0x422aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ca1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cfd
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cdf
pop edi
not eax
pop esi
ret 0xc
Function at 0x41fbac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc58c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x666498]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.004c44fb
pop ecx
xor edx, edx
inc edx
mov dword [ebp - 4], edx
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41fbf7
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420e47
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
call fcn.00421a17
lea edx, [ebx + 0x60]
xor eax, eax
mov byte [edx + 0x49], al
mov dword [edx + 0x50], 0x10
test al, al
jne 0x420e78
mov eax, edx
mov byte [edx + 0x49], 1
neg eax
and eax, 0xf
add eax, edx
push 8
mov dword [edx + 0x54], eax
mov esi, 0x64d140
mov edi, dword [ebx + 0xb4]
mov eax, ebx
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebx], vtable.CryptoPP::SHA256.0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4229a9
Capabilities:
Create thread

Disassembly:
push 0x24
mov eax, 0x4dccad
call fcn.004b698d
push str.ConnectionManager::Start
push str._s:_enter
push 1
xor esi, esi
push esi
call fcn.00438d22
add esp, 0x10
mov edi, 0x66dcd0
mov ecx, edi
push 1
call fcn.00422866
push ecx
push dword [0x66dcdc]
lea ecx, [ebp - 0x2c]
call fcn.00450e12
sub esp, 0x18
mov dword [ebp - 4], esi
mov ecx, esp
call fcn.0044d498
call fcn.0044bb00
add esp, 0x18
mov dword [0x66dfbc], eax
call fcn.0044d416
mov byte [0x66dfc1], al
call fcn.00443f12
push 0xfffffffffffffffd
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x66dce0]
test eax, eax
jne 0x422a7a
cmp dword [0x66dfb0], eax
jne 0x422a7a
push 1
mov ecx, edi
call fcn.004227c5
push esi
push esi
push edi
push 0x422a98
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x66dfb0], eax
test eax, eax
jne 0x422a6c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Start:_CreateThread_failed___d_
push esi
push esi
call fcn.00438d22
add esp, 0x10
mov ecx, edi
push esi
call fcn.004227c5
push str.ConnectionManager::Start
push str._s:_exit
push 1
jmp 0x422a81
push eax
push str.Invalid_connection_manager_state_in_Start___d_
push esi
push esi
call fcn.00438d22
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.00450ea1
call fcn.004b6937
ret

Function at 0x425114
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov dword [0x66dc18], 0x66dcd0
call fcn.00426fb7
pop ecx
push eax
push dword [ebp + 8]
mov ecx, 0x66dc1c
call fcn.00426f3e
mov eax, dword [0x66dfb8]
xor esi, esi
test eax, eax
je 0x425150
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x42519b
push esi
push esi
push 0x66dc18
push 0x4251a0
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x66dfb8], eax
test eax, eax
jne 0x42519b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ConnectionManager::SendFeedback
push str._s:_CreateThread_failed___d_
push esi
push esi
call fcn.00438d22
add esp, 0x14
push esi
push esi
push 0x466
push dword [0x66d3b4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebp
ret 4
Function at 0x428d0c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x344]
cmp dword [edi], 0
je 0x428da4
cmp dword [edi], 0xffffffff
je 0x428da1
push dword [esi + 0x34c]
call dword [sym.imp.KERNEL32.DLL_AttachConsole]
test eax, eax
je 0x428d6b
push dword [esi + 0x34c]
push 1
call dword [sym.imp.KERNEL32.DLL_GenerateConsoleCtrlEvent]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
xor ebx, ebx
mov ecx, esi
call fcn.0042a81d
push 0xa
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x428da1
add ebx, 0xa
cmp ebx, 0x7d0
jl 0x428d4b
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x428d8a
push 0x1388
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x428da1
push dword [esi + 0x34c]
push str.TerminateProcess_failed_for_process_with_PID__d
push 0
push 0
call fcn.00438d22
add esp, 0x10
cmp dword [edi], 0
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x428db5
cmp dword [edi], 0xffffffff
je 0x428db5
push dword [edi]
call ebx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x354]
test eax, eax
je 0x428dcd
cmp eax, 0xffffffff
je 0x428dcd
push eax
call ebx
xor ecx, ecx
lea eax, [esi + 0x358]
mov dword [esi + 0x354], ecx
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 0x10
jb 0x428de6
mov eax, dword [eax]
mov byte [eax], cl
mov al, 1
pop edi
mov word [esi + 0x370], cx
pop esi
pop ebx
ret
Function at 0x42a81d
Capabilities:
Read file on windows
Read pipe

Disassembly:
push 0x48
mov eax, 0x4ddf50
call fcn.004b698d
mov ebx, ecx
xor ecx, ecx
lea eax, [ebp - 0x44]
push ecx
push eax
push ecx
push ecx
push ecx
push dword [ebx + 0x354]
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x42a86c
call edi
push eax
push 0x2ce
push str.CoreTransport::ConsumeCoreProcessOutput
push str._s:_d___PeekNamedPipe_failed___d_
push 0
push 0
call fcn.00438d22
add esp, 0x18
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42a995
inc eax
push eax
call fcn.004b6609
and dword [ebp - 0x50], 0
mov esi, eax
pop ecx
push 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], esi
push eax
push dword [ebp - 0x44]
push esi
push dword [ebx + 0x354]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x42a8c0
call edi
push eax
push 0x2db
push str.CoreTransport::ConsumeCoreProcessOutput
push str._s:_d___ReadFile_failed___d_
push 0
push 0
call fcn.00438d22
add esp, 0x18
mov eax, dword [ebp - 0x44]
lea edi, [ebx + 0x358]
push esi
mov byte [esi + eax], 0
call fcn.00411001
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00419074
and dword [ebp - 0x48], 0
push 0x4f3d40
call fcn.00411001
pop ecx
push eax
push 0
push 0x4f3d40
mov ecx, edi
call fcn.0042c00c
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x42a967
mov esi, dword [ebp - 0x48]
sub eax, esi
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.0042b383
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ecx, ebx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042ab4d
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
inc esi
push 0
push 1
call fcn.00418d87
push 0x4f3d40
call fcn.00411001
pop ecx
push eax
push esi
push 0x4f3d40
mov ecx, edi
call fcn.0042c00c
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
jne 0x42a906
mov dword [ebp - 0x48], esi
mov esi, dword [ebp - 0x54]
push 0xffffffffffffffff
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0042b383
push eax
mov ecx, edi
call fcn.004167a6
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00418d87
push 1
push esi
call fcn.004b65fb
pop ecx
pop ecx
call fcn.004b6937
ret