joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a06
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 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
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 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
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 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
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 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x404a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ebx, dword [esi]
or al, 0x53
push esi
push edi
lea edx, [eax + 7]
and edx, 0xfffffff8
cmp edx, eax
mov edi, dword [esi + 8]
clc
push ebp
clc
fsubrp st(1)
aaa
inc eax
and byte [ecx + 0x74], bl
je 0x404ccd
push 0x20
call eax
add esp, 0x78
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, esp
pop ebp
ret 8
push ss

Function at 0x40a4b0
Capabilities:
Encode data using xor

Disassembly:
nop
nop
mov esp, 0x9089a890
nop
mov word [eax], gs
pop es
mov ebp, 0x5c155500
xlatb
inc eax
add byte [ebx], dh
rol bl, 0x90
nop
xchg byte [edx], dl
rcl ecx, 0x45
or byte [ebx + 0xe18168], cl
add byte [eax], al
rol byte [ecx + 0xf9], 0xc0
or cl, byte [ecx + ebp*4]
add byte [eax], al
invalid
in eax, 0x8b
in al, dx
mov eax, dword [ebp + 0x14]
push esi
mov edx, dword [eax - 0x1d]
neg eax
sbb eax, eax
neg eax
dec eax
push eax
nop
inc esi
adc al, 0x50
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
out dx, al
inc ebp
jo 0x40a468
dec ebx
mov edx, dword [esi + 1]
lea ecx, [ebp + 0x14]
push ecx
push edx
adc dword [0x18c011], 0x4a74c085
mov eax, dword [ebp + 0xc]
dec ecx
dec ebp
adc al, 0xa7
push 0x8897674
mov edx, dword [ebp + 0x10]
test edx, edx
sub cl, byte [ebx]
push ecx
call 0x98aea4a1
xor ah, al
add al, 0x89
add ch, byte [edi]
inc esi
adc al, 0x50
call dword [sym.imp.KERNEL32.dll_CloseHandle]
invalid
Function at 0x4035f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [section..data]
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 sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004015de
mov ecx, eax
test ecx, ecx
je 0x4036e1
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 0x403661
test al, 0x10
jne 0x40366e
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 dword [sym.imp.MSVCR120.dll__snprintf_s]
push 0x48b5ec
lea eax, [ebp - 0x130]
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.MSVCR120.dll_fopen_s]
add esp, 0x28
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4036cf
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.00452da4
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403560
int3

Function at 0x403730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x40376a
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 4]
push 2
push 1
push 0x48b5f0
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 0x24
pop edi
pop ebp
ret 8

Function at 0x403850
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.OLEAUT32.dll_SysReAllocString
mov word [0x4a5bfc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4038ff
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 0x4038c5
movzx eax, byte [0x4a5bfc]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x4a5bfc], 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 0x4038f5
movzx eax, byte [0x4a5bfd]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x4a5bfd], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4051d0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40520e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0x48b71c
push esi
push 1
push 2
push 0x110
push 0xf01ff
push str.Wisdom_Service
push str.WisdomSvr
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x405251
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
jmp 0x40526e
lea eax, [ebp - 8]
mov dword [ebp - 8], str.Wisdom_Service_Common
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452da4
mov esp, ebp
pop ebp
ret
Function at 0x405350
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push 0xf003f
push 0
push 0
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4054aa
push esi
push 0x124
push str.WisdomSvr
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4053b8
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40549b
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x40549b
cmp eax, 3
jne 0x40544d
mov ecx, 0x2710
lea esp, [esp]
mov eax, 0xcccccccd
mul dword [ebp - 0x14]
shr edx, 3
cmp edx, 0x3e8
jae 0x40540a
mov edx, 0x3e8
jmp 0x405413
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40549b
cmp dword [ebp - 0x28], 1
je 0x40549b
call edi
sub eax, ebx
cmp eax, 0x2710
ja 0x40549b
cmp dword [ebp - 0x28], 3
mov ecx, 0x2710
je 0x4053f0
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40549b
cmp dword [ebp - 0x28], 1
je 0x40549b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40549b
cmp dword [ebp - 0x28], 1
je 0x40549b
call edi
sub eax, ebx
cmp eax, 0x2710
ja 0x40549b
cmp dword [ebp - 0x28], 1
jne 0x405464
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x30]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00452da4
mov esp, ebp
pop ebp
ret
Function at 0x4054c0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
push str.WisdomSvr
push 0x4a52a0
xor ebx, ebx
call dword [sym.imp.MSVCR120.dll_wcsncpy]
add esp, 0xc
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x405518
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
push edi
push 0xf01ff
push str.WisdomSvr
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x405540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
jmp 0x4055a8
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x405559
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40559f
mov esi, 7
mov edi, edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
xorps xmm0, xmm0
push eax
push edi
movdqu xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x405594
cmp dword [ebp - 0x1c], 4
je 0x40559c
dec esi
test esi, esi
jg 0x405560
jmp 0x40559c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, dword [ebp - 0x24]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452da4
mov esp, ebp
pop ebp
ret
Function at 0x4059a0
Capabilities:
Check if file exists
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4059f3
push str.LaunchService_OpenSCManager_FAILED
push eax
push str.ServiceProvider.cpp
call fcn.00404060
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
push 0xf01ff
push str.WisdomSvr
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x405ad4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405aa5
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call sub.MSVCR120.dll_memset
push 0x48a240
push edi
push str.__s___s
lea eax, [ebp - 0x808]
push 0xffffffffffffffff
push eax
call fcn.00405b20
add esp, 0x20
lea eax, [ebp - 0x808]
push esi
push esi
push esi
push esi
push 0x48b71c
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.Wisdom_Service
push str.WisdomSvr
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x405aba
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x80c], str.Wisdom_Service_Common
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
jmp 0x405ae8
push edi
push str.LaunchService_FILE_is_Not_Exist_lpSvrExe__s
push 0
push str.ServiceProvider.cpp
call fcn.00404060
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
push str.LaunchService_OpenService_OK
push 0
push str.ServiceProvider.cpp
call fcn.00404060
add esp, 0xc
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
neg eax
sbb edi, edi
neg edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452da4
mov esp, ebp
pop ebp
ret
Function at 0x4063a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4a5c28]
mov dword [ebp - 0x214], 0
push esi
mov esi, ecx
test al, 1
jne 0x4063fa
or eax, 1
mov dword [0x4a5c24], 7
mov dword [0x4a5c28], eax
xor eax, eax
push 0x481ac0
mov dword [0x4a5c20], 0
mov word [0x4a5c10], ax
call fcn.00452ee9
add esp, 4
cmp dword [0x4a5c20], 0
jne 0x4064a4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x210], 0
jne 0x406445
xor ecx, ecx
jmp 0x40645f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406450
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, 0x4a5c10
push eax
call fcn.0040235a
mov edx, 0x4a5c10
lea ecx, [ebp - 0x22c]
call fcn.00406020
push eax
mov ecx, 0x4a5c10
call fcn.004064e0
cmp dword [ebp - 0x218], 8
jb 0x4064a4
push dword [ebp - 0x22c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x4a5c10
mov word [esi], ax
call fcn.004022c7
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00452da4
mov esp, ebp
pop ebp
ret

Function at 0x40c7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40c7c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
mov dword [ebp - 8], edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c7fd
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c833
test esi, esi
je 0x40c833
push 0x4a3b45
push esi
mov dword [ebp - 4], 0
call fcn.004534b6
mov edi, eax
add esp, 8
test edi, edi
jne 0x40c843
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c867
cmp dword [ebp - 4], esi
je 0x40c875
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor edi, edi
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ebd0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20006
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x40ec1b
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ec42
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40ec98
mov dword [esi + 4], 0x20006
mov eax, dword [ebp - 4]
mov dword [esi], eax
test esi, esi
je 0x40ec98
test byte [esi + 4], 2
jne 0x40ec53
mov eax, 5
jmp 0x40ec63
push 0x48a950
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [esi + 0xc], eax
push ebx
xor ebx, ebx
test eax, eax
mov eax, dword [esi]
sete bl
test eax, eax
je 0x40ec80
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40eca0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x40ed10
test eax, eax
jne 0x40ed10
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40edd4
mov dword [esi + 4], 0x20019
mov eax, dword [ebp - 0x214]
mov dword [esi], eax
test esi, esi
je 0x40edd4
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x218], 0x208
test byte [esi + 4], 1
mov dword [ebp - 0x210], 0
je 0x40ed8e
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0x48a950
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40ed81
mov dword [esi + 0xc], eax
or eax, 0xffffffff
jmp 0x40ed87
mov eax, dword [ebp - 0x210]
mov dword [esi + 8], eax
test eax, eax
jns 0x40ed94
cmp dword [esi + 0xc], 0
jne 0x40ed9b
mov edi, 1
jmp 0x40ed9d
xor edi, edi
mov eax, dword [esi]
test eax, eax
je 0x40edb2
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00452da4
mov esp, ebp
pop ebp
ret
Function at 0x4104c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d014
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x78], 8
lea esi, [ebx + 0x64]
jb 0x4104fa
mov eax, dword [esi]
jmp 0x4104fc
mov eax, esi
push eax
push str.ReadReportFile_report_file__s
push 0
push str.Report.cpp
call fcn.00404060
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x41051b
mov eax, dword [esi]
jmp 0x41051d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x410544
push str.ReadReportFile_report_file_not_exsted
push 0
push str.Report.cpp
call fcn.00404060
add esp, 0xc
xor eax, eax
jmp 0x410697
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x44], 0
jb 0x410553
mov esi, dword [esi]
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.0040c7c0
mov ecx, dword [ebp - 0x44]
mov edx, eax
test ecx, ecx
je 0x410692
cmp byte [ecx], 0
je 0x410692
test edx, edx
jle 0x410692
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebx + 0x1c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041abb0
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 0xc
test eax, eax
je 0x410684
push ecx
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0040c590
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push str.ReadReportFile_report_file_strDataW:_s
push 0
push str.Report.cpp
call fcn.00404060
add esp, 0x10
lea ecx, [ebp - 0x50]
call fcn.00408100
mov dword [ebp - 0x50], vtable.CReportData.0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.004193c0
test al, al
je 0x4106b3
lea ecx, [ebp - 0x50]
call fcn.00408fc0
mov edi, eax
xor esi, esi
test edi, edi
jle 0x410668
lea eax, [ebx + 0x84]
mov ebx, dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [ebp - 0x54], eax
nop
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x41064e
push esi
push eax
lea ecx, [ebp - 0x50]
call fcn.00408df0
jmp 0x410650
xor eax, eax
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00411990
inc esi
cmp esi, edi
jl 0x410630
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
lea ecx, [ebp - 0x50]
call fcn.004081d0
cmp dword [ebp - 0x2c], 8
jb 0x410684
push dword [ebp - 0x40]
call esi
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x410692
push dword [ebp - 0x28]
call esi
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
push str.ReadReportFile_parse_json_failed
push 0
push str.Report.cpp
call fcn.00404060
add esp, 0xc
jmp 0x41066e