joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44afdd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46b18c
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x4b2d60]
xor eax, esp
mov dword [esp + 0x500], eax
push ebx
push esi
push edi
mov eax, dword [0x4b2d60]
xor eax, esp
push eax
lea eax, [esp + 0x518]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0x49dd1c
lea ecx, [esp + 0x38]
mov dword [esp + 0xe4], eax
mov dword [esp + 0x50], ebx
call fcn.00419ae2
push ebx
lea eax, [esp + 0x38]
push eax
push 2
mov dword [esp + 0x52c], ebx
call fcn.0042a006
or dword [esp + 0x52c], 0xffffffff
mov ecx, dword [esp + 0x40]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00419fdf
lea eax, [esp + 0x60]
push eax
push 8
push ebx
push dword [0x4b76b0]
mov dword [esp + 0x64], ebx
push 0x80000002
call dword [0x4710a0]
test eax, eax
jne 0x44bfcc
mov dword [esp + 0x34], ebx
push 0x49e320
lea ecx, [esp + 0x4c]
call fcn.00419ae2
push ebx
lea eax, [esp + 0x4c]
push eax
push 2
mov dword [esp + 0x52c], 0x2c
call fcn.0042a006
mov ecx, dword [esp + 0x54]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00419fdf
Function at 0x4505ec
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46a8f7
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4b2d60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0x4a0554
lea ecx, [esp + 0x18]
call fcn.00419ae2
xor ebx, ebx
push ebx
lea eax, [esp + 0x18]
push eax
push 2
mov dword [esp + 0x44], ebx
call fcn.0042a006
or dword [esp + 0x44], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00419fdf
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0x477678
push 0x80000001
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call fcn.0044ce44
add esp, 0x10
test eax, eax
jne 0x450834
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x450834
push ebx
mov dword [esp + 0x18], eax
call fcn.004698cb
mov esi, eax
pop ecx
xor eax, eax
push eax
push dword [esp + 0x18]
je 0x4506bc
sbb byte [ebx + 0x24448dfa], cl
sub byte [ecx - 0x76d7db8c], cl
jl 0x4506ca
sub al, 0xe8
mov edx, dword [esi]
add byte [eax + eax*8 + 0x154840f], al
add byte [eax], al
push 0x4a0500
lea ecx, [esp + 0x24]
call fcn.00419ae2
push ebx
lea eax, [esp + 0x24]
push eax
push 2
mov dword [esp + 0x44], 5
call fcn.0042a006
mov ecx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x45085f
push 0x4a0534
lea ecx, [esp + 0x2c]
call fcn.00419ae2
push ebx
lea eax, [esp + 0x2c]
push eax
push esi
push 2
mov dword [esp + 0x48], 6
call fcn.00429b36
mov ecx, dword [esp + 0x38]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00419fdf
Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a8b30]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402c93
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ef
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x7a8b30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
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 [0x7a8b30], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x40317e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a9
mov ecx, dword [0x7a8ad8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x797714], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403286
cmp eax, esi
jl 0x403280
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405e6d
test eax, eax
je 0x403270
push dword [ebp + 8]
add dword [0x797714], 4
call fcn.00403286
mov ebx, eax
cmp ebx, esi
jl 0x40327e
cmp dword [ebp + 0x10], esi
jne 0x40324c
cmp dword [ebp + 8], esi
jle 0x40327e
mov esi, 0x793710
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320e
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405e6d
test eax, eax
je 0x403270
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405e9c
test eax, eax
je 0x403248
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x797714], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fd
jmp 0x40327e
push 0xfffffffffffffffe
jmp 0x403272
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403257
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403275
push 0xfffffffffffffffd
pop eax
jmp 0x403280
mov ebx, dword [ebp - 4]
add dword [0x797714], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405843
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405894
xor eax, eax
jmp 0x4058bb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058bb
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405890
call esi
pop esi
leave
ret 4

Function at 0x4058f5
Capabilities:
Create process on windows

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

Function at 0x4059be
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dc5
mov edi, eax
cmp edi, 0xffffffff
je 0x4059ff
test byte [esp + 0x10], 1
push esi
je 0x4059e1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059e7
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4059f0
xor eax, eax
inc eax
jmp 0x405a01
test byte [esp + 0x10], 4
jne 0x4059ff
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a06
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405cd1
test bl, 8
mov dword [ebp - 8], eax
je 0x405a45
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8b08], eax
jmp 0x405bc2
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a5f
test eax, eax
je 0x405b70
test bl, 2
je 0x405b70
mov esi, 0x7a3f70
push edi
push esi
call fcn.00406215
cmp dword [ebp + 8], 0
je 0x405a7e
push 0x40a574
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a84
push edi
call fcn.00405c15
cmp word [edi], 0
jne 0x405a94
cmp word [0x7a3f70], 0x5c
jne 0x405a9f
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b65
cmp word [ebp - 0x22c], 0x2e
jne 0x405ae9
cmp word [ebp - 0x22a], 0
je 0x405b48
cmp word [ebp - 0x22a], 0x2e
jne 0x405ae9
cmp word [ebp - 0x228], 0
je 0x405b48
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406215
test byte [ebp - 0x258], 0x10
je 0x405b14
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b48
push dword [ebp + 0xc]
push edi
call fcn.00405a06
jmp 0x405b48
push dword [ebp - 4]
push edi
call fcn.004059be
test eax, eax
jne 0x405b40
cmp dword [ebp - 4], eax
je 0x405b38
push edi
push 0xfffffffffffffff1
call fcn.00405374
push 0
push edi
call fcn.004060b6
jmp 0x405b48
inc dword [0x7a8b08]
jmp 0x405b48
push edi
push 0xfffffffffffffff2
call fcn.00405374
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ac1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b70
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bc2
cmp dword [ebp - 8], esi
jne 0x405b84
inc dword [0x7a8b08]
jmp 0x405bc2
push edi
call fcn.00406558
test eax, eax
je 0x405bc2
push edi
call fcn.00405bc9
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059be
test eax, eax
jne 0x405bba
cmp dword [ebp - 4], esi
je 0x405b7c
push edi
push 0xfffffffffffffff1
call fcn.00405374
push esi
push edi
call fcn.004060b6
jmp 0x405bc2
push edi
push 0xffffffffffffffe5
call fcn.00405374
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cd1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a4770
push esi
call fcn.00406215
push esi
call fcn.00405c74
mov edi, eax
test edi, edi
jne 0x405cf2
xor eax, eax
jmp 0x405d4a
push edi
call fcn.004064a9
test byte [0x7a8a98], 0x80
je 0x405d0f
mov ax, word [edi]
test ax, ax
je 0x405cee
cmp ax, 0x5c
je 0x405cee
sub edi, esi
sar edi, 1
jmp 0x405d29
call fcn.00406558
test eax, eax
je 0x405d23
test byte [eax], 0x10
je 0x405cee
push esi
call fcn.00405c15
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d15
call fcn.00405bc9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de4
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405dea
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x405e19
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a580]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a584]
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405e69
test edi, edi
jne 0x405e26
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405e63
Function at 0x405f44
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x7a5608
push 0x40a5a4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405f92
push 1
push 0
push esi
call fcn.00405dea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x4060b1
cmp eax, edi
jg 0x4060b1
mov esi, 0x7a5e08
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4060b1
cmp eax, edi
jg 0x4060b1
push esi
push ebx
push str._ls_ls_r_n
push 0x7a5208
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a8a90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406237
push 4
push 0xc0000000
push esi
call fcn.00405dea
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4060b1
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 0x4060aa
push edi
push esi
push ebp
call fcn.00405e6d
test eax, eax
je 0x4060aa
push str._Rename__r_n
push esi
call fcn.00405d4f
test eax, eax
jne 0x406048
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40607d
add eax, 0xa
push 0x40a588
push eax
call fcn.00405d4f
mov ebp, eax
test ebp, ebp
je 0x406079
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40606a
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406064
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40607f
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a5208
push eax
call fcn.00405da5
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e9c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4060b6
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4060d9
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f44
pop ecx
pop ecx
inc dword [0x7a8b10]
ret 8
Function at 0x4060e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406156
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406143
cmp dword [ebp + 0x14], 1
je 0x406146
cmp dword [ebp + 0x14], 2
je 0x406146
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40657f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4065a3
xor eax, eax
test eax, eax
je 0x4065b6
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4065b6
xor ecx, ecx
jmp 0x4065b9
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4066a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a660c], 0
push esi
jne 0x4066d7
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 0x4066b1
mov dword [ecx*4 + 0x7a6608], eax
inc ecx
cmp ecx, 0x100
jl 0x4066ac
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406708
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 + 0x7a6608]
xor eax, esi
inc ecx
dec edx
jne 0x4066ea
pop edi
not eax
pop esi
ret 0xc
Function at 0x41db75
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528b46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5e3390]
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.0050c82a
pop ecx
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41dbbf
mov eax, dword [ecx]
push 1
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 0x41edd4
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.0041f9be
lea edx, [ebx + 0x60]
xor eax, eax
mov byte [edx + 0x49], al
mov dword [edx + 0x50], 0x10
test al, al
jne 0x41ee05
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, 0x5be750
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 0x4209b6
Capabilities:
Create thread

Disassembly:
push 0x28
mov eax, 0x52a4aa
call fcn.004e49d2
push str.ConnectionManager::Start
push str._s:_enter
push 1
xor esi, esi
push esi
call fcn.0043a0a0
add esp, 0x10
mov edi, 0x5ec330
mov ecx, edi
push 1
call fcn.004208b6
push ecx
push dword [0x5ec340]
lea ecx, [ebp - 0x2c]
call fcn.0045c8f0
xor ecx, ecx
mov dword [ebp - 4], esi
cmp byte [ebp + 8], cl
movzx eax, byte [0x5ec630]
cmove eax, ecx
sub esp, 0x18
mov ecx, esp
mov byte [0x5ec630], al
call fcn.00458691
call fcn.00456a26
add esp, 0x18
mov dword [0x5ec620], eax
call fcn.004585ce
mov byte [0x5ec625], al
call fcn.00450017
push 0xe1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5ec344]
test eax, eax
jne 0x420a9e
cmp dword [0x5ec614], eax
jne 0x420a9e
push 1
mov ecx, edi
call fcn.0042077b
push esi
push esi
push edi
push 0x420b02
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x5ec614], eax
test eax, eax
jne 0x420a90
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Start:_CreateThread_failed___d_
push esi
push esi
call fcn.0043a0a0
add esp, 0x10
mov ecx, edi
push esi
call fcn.0042077b
push str.ConnectionManager::Start
push str._s:_exit
push 1
jmp 0x420aa5
push eax
push str.Invalid_connection_manager_state_in_Start___d_
push esi
push esi
call fcn.0043a0a0
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.0045c98b
call fcn.004e497c
ret 4
Function at 0x42381c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, 0x5e3e10
mov dword [0x5e3e0c], 0x5ec330
xor esi, esi
cmp dword [ebp + 8], ecx
je 0x423841
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
call fcn.00416c90
mov eax, dword [0x5ec61c]
test eax, eax
je 0x423856
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4238a1
push esi
push esi
push 0x5e3e0c
push 0x4238a6
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x5ec61c], eax
test eax, eax
jne 0x4238a1
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.0043a0a0
add esp, 0x14
push esi
push esi
push 0x466
push dword [0x5eb7b0]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebp
ret 4
Function at 0x42bb24
Capabilities:
Get file version info

Disassembly:
push 0x98
mov eax, 0x52b99d
call fcn.004e49d2
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x84], edi
mov eax, dword fs:[0x2c]
xor esi, esi
mov dword [ebp - 0x94], esi
mov ecx, dword [eax]
mov eax, dword [0x5ee57c]
cmp eax, dword [ecx + 0x139c]
jle 0x42bba8
push 0x5ee57c
call fcn.004e3f82
cmp dword [0x5ee57c], 0xffffffff
pop ecx
jne 0x42bba8
mov dword [ebp - 4], esi
mov dword [0x5ee580], esi
mov dword [0x5ee584], esi
call fcn.00430925
push 0x53b590
mov dword [0x5ee580], eax
call fcn.004e45f2
or dword [ebp - 4], 0xffffffff
mov dword [esp], 0x5ee57c
call fcn.004e3f43
pop ecx
push ebx
lea eax, [ebp - 0x7c]
mov ecx, 0x5ee580
push eax
call fcn.0042f53d
mov esi, dword [ebp - 0x7c]
cmp esi, dword [0x5ee580]
je 0x42bbd4
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.004146f4
shr eax, 0x1f
test al, al
je 0x42bbda
mov esi, dword [0x5ee580]
cmp esi, dword [0x5ee580]
je 0x42bbf2
add esi, 0x28
mov ecx, edi
push esi
call fcn.0042669f
jmp 0x42bd24
cmp dword [ebx + 0x14], 0x10
jb 0x42bbfc
mov eax, dword [ebx]
jmp 0x42bbfe
mov eax, ebx
lea ecx, [ebp - 0x98]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x42bd18
push eax
call fcn.004e461a
mov esi, eax
mov dword [ebp - 0x84], esi
pop ecx
test esi, esi
jne 0x42bc4b
push str.GetDLLVersion:324:_memory_allocation_failed
lea ecx, [ebp - 0xa4]
call fcn.0040ea4b
push 0x5e02b8
lea eax, [ebp - 0xa4]
push eax
call fcn.004fda0a
push esi
lea ecx, [ebp - 0x7c]
call fcn.0041ffcf
add esp, 4
mov dword [ebp - 4], 1
cmp dword [ebx + 0x14], 0x10
jb 0x42bc68
mov eax, dword [ebx]
jmp 0x42bc6a
mov eax, ebx
push esi
push dword [ebp - 0x78]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x42bd0b
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x88]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42bd0b
mov ecx, dword [ebp - 0x80]
xor esi, esi
test ecx, 0xfffffffc
jbe 0x42bd0b
mov eax, dword [ebp - 0x88]
movzx edx, word [eax + esi*4]
cmp dl, 9
jne 0x42bd01
movzx eax, word [eax + esi*4 + 2]
push eax
push edx
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.00431c6c
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x8c]
and dword [ebp - 0x8c], 0
add esp, 0x14
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x84]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x42bd2c
mov ecx, dword [ebp - 0x80]
mov eax, ecx
inc esi
shr eax, 2
cmp esi, eax
jb 0x42bcab
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x7c]
call fcn.004e3e1e
pop ecx
push 0x5b1244
mov ecx, edi
call fcn.00426582
mov eax, edi
call fcn.004e497c
ret
mov edi, dword [ebp - 0x78]
mov ecx, 0x5ee580
push ebx
call fcn.0042f1d6
push edi
mov esi, eax
call fcn.0042655b
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004264e2
push dword [ebp - 0x78]
mov ecx, dword [ebp - 0x90]
call fcn.00426582
push dword [ebp - 0x7c]
call fcn.004e3e1e
mov eax, dword [ebp - 0x90]
pop ecx
jmp 0x42bd26