joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2380
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
movzx ebx, dl
dec ebx
test ebx, ebx
jl 0x4c23d4
inc ebx
xor edx, edx
mov ecx, edx
add ecx, ecx
add ecx, ecx
movzx esi, byte [eax + ecx]
lea esi, [esi*4 + 0x53f3b8]
mov esi, dword [esi]
movzx edi, byte [eax + ecx + 1]
lea edi, [edi*4 + 0x53f7b8]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 2]
lea edi, [edi*4 + 0x53fbb8]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 3]
lea edi, [edi*4 + 0x53ffb8]
xor esi, dword [edi]
lea ecx, [eax + ecx]
mov dword [ecx], esi
inc edx
dec ebx
jne 0x4c238e
pop edi
pop esi
pop ebx
ret

Function at 0x4c3230
Capabilities:
Encrypt data using twofish

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, 0xff
mov ecx, dword [esp]
shr ecx, 8
and ecx, 0xff
mov eax, dword [esp]
shr eax, 0x10
and eax, 0xff
mov esi, dword [esp]
shr esi, 0x18
mov dword [esp + 8], esi
cmp dword [esp + 4], 0x100
jne 0x4c32c1
movzx ebx, byte [ebx + 0x5405d8]
mov esi, dword [edx + 0xc]
mov edi, esi
and edi, 0xff
xor ebx, edi
movzx ecx, byte [ecx + 0x5404d8]
mov edi, esi
shr edi, 8
and edi, 0xff
xor ecx, edi
movzx eax, byte [eax + 0x5404d8]
mov edi, esi
shr edi, 0x10
and edi, 0xff
xor eax, edi
mov edi, dword [esp + 8]
movzx edi, byte [edi + 0x5405d8]
shr esi, 0x18
xor edi, esi
mov dword [esp + 8], edi
cmp dword [esp + 4], 0xc0
jl 0x4c331b
movzx ebx, byte [ebx + 0x5405d8]
mov esi, dword [edx + 8]
mov edi, esi
and edi, 0xff
xor ebx, edi
movzx ecx, byte [ecx + 0x5405d8]
mov edi, esi
shr edi, 8
and edi, 0xff
xor ecx, edi
movzx eax, byte [eax + 0x5404d8]
mov edi, esi
shr edi, 0x10
and edi, 0xff
xor eax, edi
mov edi, dword [esp + 8]
movzx edi, byte [edi + 0x5404d8]
shr esi, 0x18
xor edi, esi
mov dword [esp + 8], edi
movzx ebx, byte [ebx + 0x5404d8]
mov esi, dword [edx + 4]
and esi, 0xff
xor ebx, esi
movzx ebx, byte [ebx + 0x5404d8]
mov esi, dword [edx]
and esi, 0xff
xor ebx, esi
mov ebx, dword [ebx*4 + 0x54a2c8]
movzx ecx, byte [ecx + 0x5405d8]
mov esi, dword [edx + 4]
shr esi, 8
and esi, 0xff
xor ecx, esi
movzx ecx, byte [ecx + 0x5404d8]
mov esi, dword [edx]
shr esi, 8
and esi, 0xff
xor ecx, esi
xor ebx, dword [ecx*4 + 0x54a6c8]
movzx eax, byte [eax + 0x5404d8]
mov ecx, dword [edx + 4]
shr ecx, 0x10
and ecx, 0xff
xor eax, ecx
movzx eax, byte [eax + 0x5405d8]
mov ecx, dword [edx]
shr ecx, 0x10
and ecx, 0xff
xor eax, ecx
xor ebx, dword [eax*4 + 0x54aac8]
mov eax, dword [esp + 8]
movzx eax, byte [eax + 0x5405d8]
mov ecx, dword [edx + 4]
shr ecx, 0x18
xor eax, ecx
movzx eax, byte [eax + 0x5405d8]
mov edx, dword [edx]
shr edx, 0x18
xor eax, edx
xor ebx, dword [eax*4 + 0x54aec8]
mov eax, ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4c33d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor ebx, ebx
movzx ecx, cl
imul ecx, ecx, 0x1010101
mov esi, dword [edx + ebx*4]
xor esi, ecx
mov dword [eax + ebx*4], esi
mov esi, dword [edx + ebx*4 + 4]
xor esi, ecx
mov dword [eax + ebx*4 + 4], esi
mov esi, dword [edx + ebx*4 + 8]
xor esi, ecx
mov dword [eax + ebx*4 + 8], esi
mov esi, dword [edx + ebx*4 + 0xc]
xor esi, ecx
mov dword [eax + ebx*4 + 0xc], esi
add ebx, 4
cmp ebx, 0x40
jl 0x4c33e5
pop esi
pop ebx
ret

Function at 0x4c429c
Capabilities:
Encrypt data using twofish

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp + 0x18], pe_nt_image_headers32
mov esi, 0x5404d8
mov ebx, 0x54a2c8
movzx edi, byte [esi]
mov dword [esp], edi
mov eax, edi
call fcn.004c3118
mov dword [esp + 8], eax
mov eax, edi
call fcn.004c3128
mov dword [esp + 0x10], eax
movzx edi, byte [esi + 0x100]
mov dword [esp + 4], edi
mov eax, edi
call fcn.004c3118
mov dword [esp + 0xc], eax
mov eax, edi
call fcn.004c3128
mov ebp, eax
mov dword [esp + 0x14], ebp
mov eax, edi
mov edx, dword [esp + 0xc]
shl edx, 8
or eax, edx
mov edx, ebp
shl edx, 0x10
or eax, edx
mov edx, ebp
shl edx, 0x18
or eax, edx
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov edx, eax
mov ecx, eax
shl ecx, 8
or edx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp]
shl ecx, 0x18
or edx, ecx
mov dword [ebx + 0x400], edx
mov edx, dword [esp + 0xc]
shl ebp, 8
or edx, ebp
shl edi, 0x10
or edx, edi
mov ecx, dword [esp + 0x14]
shl ecx, 0x18
or edx, ecx
mov dword [ebx + 0x800], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp]
shl ecx, 8
or edx, ecx
shl eax, 0x10
or edx, eax
mov eax, dword [esp + 8]
shl eax, 0x18
or edx, eax
mov dword [ebx + 0xc00], edx
add ebx, 4
inc esi
dec dword [esp + 0x18]
jne 0x4c42b5
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c622c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056ec
xor eax, eax
push ebp
push 0x4c62c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040526c
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c6268
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test bx, bx
jbe 0x4c62a2
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
movzx edx, word [ebp - 6]
xor dx, 0xf
call fcn.00405454
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00405538
inc edi
dec bx
jne 0x4c6273
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c62c7
lea eax, [ebp - 0xc]
call fcn.0040526c
lea eax, [ebp - 4]
call fcn.0040526c
ret
Function at 0x4eeb88
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x4eeba1
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x4eebae
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4eebcc
cld
pop edi
pop esi
movzx ecx, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4eebf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
movzx ecx, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4eec36
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.004054d0
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.004054d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f492c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4f495a
mov eax, ebx
call fcn.004f53e0
cmp dword [ebx + 0x40], 0
je 0x4f4953
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4f49cb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4f49bd
cmp dword [ebx + 8], 0
je 0x4f497c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4f498e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4f49bd
cmp dword [ebx + 8], 0
je 0x4f496f
cmp eax, 3
je 0x4f49a1
dec eax
jne 0x4f496f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4f496f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4f496f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4f49e9
cmp dword [ebx + 0x14], 0xcc
je 0x4f49e9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004f49f4
pop ebx
ret
Function at 0x52ad04
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x52ad0c
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x52af31
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417e98]
call fcn.00404338
mov edx, dword [0x5428e4]
mov dword [edx], eax
mov eax, dword [0x5428e4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 8]
mov dl, 1
mov eax, dword [0x418504]
call fcn.00404338
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x52aef2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x52aedc
inc ebx
xor esi, esi
lea ecx, [ebp - 4]
mov edx, esi
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 4], 0
je 0x52aed4
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3b
je 0x52aed4
push 1
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 9
lea ecx, [ebp - 0x28]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0050511c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00405304
push 1
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 9
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0050511c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.00405304
push 1
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 9
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0050511c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 4]
call fcn.00405304
push 1
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 9
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0050511c
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 4]
call fcn.00405304
push 1
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 9
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0050511c
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 4]
call fcn.00405304
cmp dword [ebp - 8], 0
je 0x52aed4
cmp dword [ebp - 0xc], 0
je 0x52aed4
cmp dword [ebp - 0x14], 0
je 0x52aed4
mov edx, dword [0x4c61b0]
mov eax, 0x14
call fcn.0040629c
mov edi, eax
mov eax, dword [ebp - 8]
call fcn.00409ff8
mov dword [edi], eax
lea eax, [edi + 4]
mov edx, dword [ebp - 0xc]
call fcn.004052c0
lea eax, [edi + 8]
mov edx, dword [ebp - 0x10]
call fcn.004052c0
lea eax, [edi + 0xc]
mov edx, dword [ebp - 0x14]
call fcn.004052c0
lea eax, [edi + 0x10]
mov edx, dword [ebp - 0x18]
call fcn.004052c0
mov eax, dword [0x5428e4]
mov eax, dword [eax]
mov edx, edi
call fcn.0041a53c
inc esi
dec ebx
jne 0x52ad86
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52aef9
mov eax, dword [ebp - 0x20]
call fcn.00404368
ret
Function at 0x4020a0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.UpgradePatch_Mutex_120029A9_FC5B_43b5_9F51_1D20896E9D36
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
push esi
push str.CheckInstance__hMutex_08x
push 0xda
push str.UpgradeApp.cpp
call fcn.0040a560
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402102
test esi, esi
je 0x402102
cmp esi, 0xffffffff
je 0x402102
push str.CheckInstance_FAILED_Exists
push 0xda
push str.UpgradeApp.cpp
call fcn.0040a560
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
push str.CheckInstance__TRUE
push 0xda
push str.UpgradeApp.cpp
call fcn.0040a560
add esp, 0xc
mov eax, 1
pop esi
ret
Function at 0x405fc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ecx + 4]
push edi
jne 0x406153
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0044e8d0
add esp, 0xc
push 0x5c
push str.IPCProvider.dll
call fcn.0044b654
add esp, 8
test eax, eax
lea eax, [ebp - 0x218]
je 0x406031
push 0xffffffffffffffff
push str.IPCProvider.dll
push 0x104
push eax
call fcn.0044b6fa
jmp 0x406097
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40610f
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0044b654
add esp, 8
test eax, eax
je 0x406064
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x40607f
push 0xffffffffffffffff
push 0x46f0d0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0044b7b8
add esp, 0x10
push 0xffffffffffffffff
push str.IPCProvider.dll
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0044b7b8
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40610f
lea eax, [ebp - 0x218]
push eax
push str.BaseIntefaceHelper_Dll_s
push 0xb4
push str.H:_trunk2.0__2013BasicIncludeCommonBaseInterfaceHelper.h
call fcn.0040a560
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x406127
push 1
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ole32.dll_CoLoadLibrary]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x406127
push str.BaseIntefaceHelper_FAILED_hInst__NULL
push 0xb4
push str.H:_trunk2.0__2013BasicIncludeCommonBaseInterfaceHelper.h
call fcn.0040a560
add esp, 0xc
mov eax, 0x800401f8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a781
mov esp, ebp
pop ebp
ret 0x10
push str.DllGetClassObject
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406153
push esi
push 0x467438
push 0x46f100
call eax
test eax, eax
jne 0x40614c
cmp dword [esi], eax
jne 0x406153
push str.BaseIntefaceHelper_FAILED_Create_ClassFactory
jmp 0x406175
mov ecx, dword [esi]
mov eax, 0x80004005
test ecx, ecx
je 0x40618c
mov eax, dword [ecx]
push ebx
push 0x46f110
push 0
push ecx
call dword [eax + 0xc]
test eax, eax
jns 0x40618c
push str.BaseIntefaceHelper_FAILED_m_pClassFactory__CreateInstance
push 0xb4
push str.H:_trunk2.0__2013BasicIncludeCommonBaseInterfaceHelper.h
call fcn.0040a560
mov eax, 0x80004005
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a781
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409f40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x130], 0
push 0x12b
lea eax, [ebp - 0x12f]
push 0
push eax
mov dword [edi], vtable.core_log::log_device_file.0
call fcn.0044e8d0
add esp, 0xc
call fcn.004012b0
mov ecx, eax
test ecx, ecx
je 0x40a02f
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push str.c:MyLog_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409fb1
test al, 0x10
jne 0x409fbe
push 0
push str.c:MyLog_
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebp - 0x13a]
push eax
movzx eax, word [ebp - 0x13e]
push eax
movzx eax, word [ebp - 0x140]
push eax
push str.c:MyLogMyLog__d__02d__02d.log
push 0xffffffffffffffff
lea eax, [ebp - 0x130]
push 0x12c
push eax
call fcn.0044ba7d
push 0x4715b0
lea eax, [ebp - 0x130]
push eax
lea eax, [edi + 4]
push eax
call fcn.0044c443
add esp, 0x28
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a01d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044a781
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409ef0
int3

Function at 0x40a080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40a0b7
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0044c7f5
push dword [esi + 4]
push 2
push 1
push 0x4715b4
call fcn.0044c7f5
push dword [esi + 4]
call fcn.0044bf7e
add esp, 0x24
pop esi
pop ebp
ret 8

Function at 0x40a1a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMyLogLog
push reloc.WS2_32.dll_bind
mov word [0x482194], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a24f
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.EnableLogToView
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 1
test eax, eax
jne 0x40a215
movzx eax, byte [0x482194]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x482194], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.EnableLogToFile
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a245
movzx eax, byte [0x482195]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x482195], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40be30
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
push esi
mov dword [ebp - 8], eax
mov esi, dword [eax + 0x1fc]
cmp esi, dword [eax + 0x200]
je 0x40bee9
push ebx
push edi
mov edi, dword [esi]
mov eax, dword [edi + 0x28]
or eax, dword [edi + 0x2c]
mov dword [edi + 0xc], 0
mov dword [edi + 0x18], 1
je 0x40be6f
mov ebx, 1
jmp 0x40be71
xor ebx, ebx
push ebx
push str.StartChannel_bValid_d
push 0xca
push str.TransfersTransfersChannel.cpp
call fcn.0040a560
add esp, 0x10
test ebx, ebx
je 0x40bed5
mov eax, dword [edi + 4]
test eax, eax
je 0x40bea1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40bece
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push edi
push 0x414c50
push 0
push 0
call fcn.0044cbba
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
je 0x40bece
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [edi + 0x18], 2
mov eax, dword [ebp - 8]
add esi, 4
cmp esi, dword [eax + 0x200]
jne 0x40be50
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xe8], 0
je 0x40d708
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x40d708
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x40d564
push eax
push 8
push 1
push esi
call fcn.0044c7f5
add esp, 0x10
cmp dword [esi + 0x70], 0
mov edi, 8
je 0x40d5e9
push 0
lea edx, [esi + 0x60]
lea ecx, [ebp - 0x1c]
call fcn.004137b0
mov ecx, dword [esi + 0xe8]
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x40d5a3
push ecx
push 4
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.0044c7f5
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov edi, 0xc
test eax, eax
jle 0x40d5d8
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
mov edx, dword [esi + 0xe8]
cmovae ecx, dword [ebp - 0x1c]
test edx, edx
je 0x40d5d5
test ecx, ecx
je 0x40d5d5
push edx
push eax
push 1
push ecx
call fcn.0044c7f5
mov eax, dword [ebp - 0x28]
add esp, 0x10
lea edi, [eax + 0xc]
cmp dword [ebp - 8], 0x10
jb 0x40d5e9
push dword [ebp - 0x1c]
call fcn.0044a77c
add esp, 4
cmp dword [esi + 0x58], 0
je 0x40d666
push 0
lea edx, [esi + 0x48]
lea ecx, [ebp - 0x1c]
call fcn.004137b0
mov ecx, dword [esi + 0xe8]
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x40d623
push ecx
push 4
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.0044c7f5
mov eax, dword [ebp - 0x20]
add esp, 0x10
add edi, 4
test eax, eax
jle 0x40d655
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
mov edx, dword [esi + 0xe8]
cmovae ecx, dword [ebp - 0x1c]
test edx, edx
je 0x40d653
test ecx, ecx
je 0x40d653
push edx
push eax
push 1
push ecx
call fcn.0044c7f5
mov eax, dword [ebp - 0x20]
add esp, 0x10
add edi, eax
cmp dword [ebp - 8], 0x10
jb 0x40d666
push dword [ebp - 0x1c]
call fcn.0044a77c
add esp, 4
cmp dword [esi + 0x88], 0
je 0x40d6e6
push 0
lea edx, [esi + 0x78]
lea ecx, [ebp - 0x1c]
call fcn.004137b0
mov ecx, dword [esi + 0xe8]
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x40d6a3
push ecx
push 4
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.0044c7f5
mov eax, dword [ebp - 0x24]
add esp, 0x10
add edi, 4
test eax, eax
jle 0x40d6d5
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
mov edx, dword [esi + 0xe8]
cmovae ecx, dword [ebp - 0x1c]
test edx, edx
je 0x40d6d3
test ecx, ecx
je 0x40d6d3
push edx
push eax
push 1
push ecx
call fcn.0044c7f5
mov eax, dword [ebp - 0x24]
add esp, 0x10
add edi, eax
cmp dword [ebp - 8], 0x10
jb 0x40d6e6
push dword [ebp - 0x1c]
call fcn.0044a77c
add esp, 4
push ecx
mov ecx, esi
mov dword [esi + 0x10], edi
call fcn.0040d9e0
xor eax, eax
test edi, edi
setg al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a781
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0044a781
mov esp, ebp
pop ebp
ret