joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4655df
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
and word [ebp - 0x21c], 0
push esi
push edi
push 0x206
lea eax, [ebp - 0x21a]
push 0
push eax
call fcn.0046eea0
mov esi, dword [ebp + 8]
mov edi, 0x4cd420
add esp, 0xc
mov ecx, edi
call fcn.004073d2
mov eax, dword [0x4cd420]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.0041f054
push str.ressrcchsuplive.svr
lea eax, [ebp - 4]
call fcn.0040d2a4
lea eax, [ebp - 4]
push eax
lea esi, [ebp - 0x14]
call fcn.0041f054
lea ecx, [ebp - 0xc]
call fcn.0040742f
pop ecx
lea edi, [ebp - 8]
call fcn.0040d365
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00405cc6
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cc6
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405cc6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cc6
mov esi, dword [ebp - 8]
push esi
push 0x208
lea eax, [ebp - 0x21c]
push eax
push 0x4b3b2c
push str.TryNo
push str.common
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x4656bd
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.0040d2cf
lea eax, [esi - 0x10]
call fcn.00405cc6
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 4
Function at 0x465923
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
cmp dword [edi + 0x20], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
je 0x465965
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
lea ebx, [ebp - 4]
push ebx
push eax
push 0xf013f
push eax
push eax
push eax
push ecx
push edx
xor esi, esi
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x465961
inc esi
mov eax, esi
jmp 0x465973
push dword [edi + 8]
lea esi, [ebp - 4]
push dword [edi + 4]
call fcn.00466963
xor esi, esi
cmp eax, esi
mov ebx, 0x4ce834
je 0x465a18
cmp dword [edi + 0x1c], esi
mov eax, dword [edi + 0xc]
je 0x4659e8
cmp dword [eax - 0xc], esi
jne 0x4659d8
cmp dword [ebp - 4], esi
je 0x46599d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 8]
mov dword [ebp - 4], esi
push dword [edi + 4]
mov esi, ebx
push str.DeleteSubKeyTree_root:_d__path:_ws
call fcn.00426876
push dword [edi + 0x20]
mov eax, dword [edi + 8]
push eax
push dword [edi + 4]
call fcn.004122e8
push eax
push str.DeleteSubKeyTree_return:_d
mov dword [ebp - 0xc], eax
call fcn.00426876
add esp, 0x20
cmp dword [ebp - 0xc], 0
jmp 0x4659e4
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x465a18
jmp 0x465a11
cmp dword [eax - 0xc], esi
je 0x465a11
cmp dword [edi + 0x18], 4
jne 0x465a01
push dword [edi + 0x14]
push eax
lea eax, [ebp - 4]
call fcn.0046693a
jmp 0x465a0d
push dword [edi + 0x10]
lea esi, [ebp - 4]
push eax
call fcn.0040130a
test eax, eax
je 0x465a18
mov dword [ebp - 8], 1
push dword [edi + 0x10]
mov esi, ebx
push dword [edi + 0xc]
push dword [edi + 0x18]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi + 0x1c]
push dword [ebp - 8]
push str.KExecReg_Run_Return:_d__delete:_d__root:0x_x__path:_ws__type:_d__name:_ws__value:_ws
call fcn.00426876
add esp, 0x20
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x465a4e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x465afb
Capabilities:
Delete service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x465b15
pop edi
jmp dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
push esi
push 0x10000
push dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x465b44
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edi
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x465b67
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
push esi
call edi
mov eax, ebx
jmp 0x465b40
push esi
call ebx
xor esi, esi
jmp 0x465b3b
Function at 0x465b6e
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 0x40000000
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x465b93
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x465be0
push ebx
push esi
push 0x14
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
jne 0x465bba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
push dword [ebp - 4]
jmp 0x465c06
push 6
mov dword [ebp - 0x20], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x465be3
cmp dword [ebp - 0x1c], 4
jne 0x465be3
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x465c0c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x465bde
push ebx
call esi
jmp 0x465bb5

Function at 0x465c11
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x465c36
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x465c5f
push ebx
push edi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x465c62
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x465c9a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x465c5d
push 6
mov dword [ebp - 0x24], esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
rep stosd dword es:[edi], eax
jmp 0x465cc0
cmp dword [ebp - 0x20], 1
je 0x465cd4
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
jne 0x465cb2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 8]
jmp 0x465c52
Function at 0x465fc6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4cd420]
and dword [ebp - 8], 0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x4cd420
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 4
add ebx, 4
pop ecx
mov eax, ebx
call fcn.00401d3a
lea edi, [ebp - 4]
call fcn.0040d365
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cc6
mov eax, edi
call fcn.0040dcc8
push str..sys
mov eax, edi
push eax
call fcn.00406c8b
test eax, eax
mov esi, 0x4ce834
jne 0x4660ad
push dword [ebx]
lea eax, [ebp - 0x10]
push eax
call fcn.00410f5f
pop ecx
pop ecx
lea edi, [ebp - 0xc]
call fcn.004120d3
mov edi, dword [ebp - 0xc]
cmp dword [edi - 0xc], 0
je 0x46609a
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
call fcn.00406c3a
mov edi, dword [ebp - 0xc]
push 0
push edi
call fcn.0046efa1
test eax, eax
pop ecx
pop ecx
jne 0x46609a
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
push eax
push dword [ebp - 0xc]
push str.KExecFile_DeleteFile_return:_d__error:_d__path:_ws
call fcn.00426876
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x46609a
mov dword [ebp - 8], 1
lea eax, [edi - 0x10]
call fcn.00405cc6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cc6
mov eax, dword [ebx]
push 0
push eax
call fcn.0046efa1
test eax, eax
pop ecx
pop ecx
jne 0x4660e5
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebx]
push eax
push edi
push str.KExecFile_DeleteFile_return:_d__error:_d__path:_ws
call fcn.00426876
add esp, 0x10
test edi, edi
jne 0x4660e5
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405cc6
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x466165
Capabilities:
Check if file exists
Create process on windows
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0xc], ebx
call fcn.004225d7
cmp dword [esi + 4], ebx
mov dword [ebp - 8], eax
je 0x466242
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x1c]
lea ecx, [ebp - 4]
call fcn.0040742f
cmp dword [ebp - 8], 8
mov edi, dword [ebp - 4]
pop ecx
je 0x4661a5
cmp dword [ebp - 8], 0xa
jne 0x4661bb
cmp dword [esi + 8], ebx
je 0x4661bb
push 5
push ebx
push ebx
push edi
push str.taskbarunpin
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esi + 0xc], ebx
je 0x4661c7
push edi
call fcn.00412cc3
pop ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
call esi
cmp dword [ebp - 8], 0xffffffff
jne 0x4661ec
lea eax, [edi - 0x10]
call fcn.00405cc6
jmp 0x4662de
test byte [ebp - 8], 0x10
je 0x46621a
push ebx
push ebx
push ebx
push ebx
push edi
call fcn.0041208d
push edi
push eax
push str.KExecLink_DeleteFolder_return:_d__path:_ws
mov esi, 0x4ce834
mov dword [ebp - 4], eax
call fcn.00426876
add esp, 0x20
cmp dword [ebp - 4], ebx
jne 0x46623a
jmp 0x4661df
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push edi
mov ebx, eax
call esi
push eax
push ebx
push str.KExecLink_DeleteFile_return:_d__error:_d__path:_ws
mov esi, 0x4ce834
call fcn.00426876
add esp, 0x10
lea eax, [edi - 0x10]
jmp 0x4662d2
lea edi, [esi + 0x18]
lea ebx, [esi + 0x1c]
push edi
mov eax, ebx
lea ecx, [ebp - 8]
call fcn.0040742f
lea eax, [ebp - 8]
call fcn.00410f1d
push dword [ebp - 8]
call fcn.00411010
push edi
mov eax, ebx
lea ecx, [ebp - 0x10]
call fcn.0040742f
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
push eax
push ecx
push edx
call fcn.00412959
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
add esp, 0x18
add eax, 0xfffffff0
call fcn.00405cc6
push edi
mov eax, ebx
lea ecx, [ebp - 0x14]
call fcn.0040742f
push dword [eax]
push dword [esi + 0x10]
push dword [esi + 0x14]
mov esi, 0x4ce834
push dword [ebp - 4]
push str.KExecLink_CreateLink_return:_d__file:_ws__cmd:_ws__link:_ws
call fcn.00426876
mov eax, dword [ebp - 0x14]
add esp, 0x18
add eax, 0xfffffff0
call fcn.00405cc6
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
cmp dword [ebp - 4], 0
je 0x4661e2
call fcn.00405cc6
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x467932
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
lea eax, [ebx + 0x28]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2c]
lea edi, [ebp - 0x14]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.00462520
test al, al
je 0x4679e6
call fcn.0041f359
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push eax
push fcn.00467a77
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, dword [ebx + 0x68]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push esi
call fcn.004682ec
mov ecx, dword [ebx + 0x6c]
mov edx, 0x3fffffff
sub edx, ecx
cmp edx, 1
jb 0x4679b8
inc ecx
mov dword [ebx + 0x6c], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0xc]
mov dword [ecx], eax
call fcn.00468268
jmp 0x46794b
push str.list_T__too_long
lea ecx, [ebp - 0x38]
call fcn.0040665f
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x60]
call fcn.004048d5
push 0x4c260c
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], vtable.std::length_error.0
call fcn.00475cd5
xor eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x467fbb
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4cd420]
push ebx
push esi
push edi
mov ecx, 0x4cd420
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.0041f054
lea edi, [ebp - 4]
call fcn.0040d365
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00405cc6
mov esi, str.desktop.ini
push esi
mov eax, edi
lea ecx, [ebp - 8]
call fcn.00407392
mov eax, dword [eax]
mov dword [esp], 0x4b5c24
push eax
call fcn.004739cc
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00405cc6
test edi, edi
mov ebx, dword [ebp - 4]
jne 0x468040
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ModifyFolderIcon__tfopen_fail__error:_d
mov esi, 0x4ce834
call fcn.00426876
pop ecx
jmp 0x468092
push str._.ShellClassInfo__n
push edi
call fcn.004757f2
push str.IconIndex0_n
push edi
call fcn.004757f2
push str.IconFilecmtray.exe_n
push edi
call fcn.004757f2
push esi
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00407392
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
add esp, 0x1c
push 2
push dword [eax]
call esi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00405cc6
push 1
push ebx
call esi
push edi
call fcn.00473c77
pop ecx
lea eax, [ebx - 0x10]
call fcn.00405cc6
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4692d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ecx, ecx
cmp dword [ebp + 8], ecx
push esi
push edi
je 0x469328
cmp dword [ebp + 0xc], ecx
je 0x469328
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp dword [ebp + 0xc], ecx
jbe 0x469328
push 0x5851f42d
push 0x4c957f2d
push ecx
push eax
call fcn.0047eb40
add eax, 1
adc edx, 0
mov ecx, edx
mov ebx, eax
mov edi, ecx
shrd ebx, edi, 0x13
mov edx, esi
and edx, 3
xor bl, byte [ebp + edx + 0x10]
shr edi, 0x13
mov edi, dword [ebp + 8]
xor byte [esi + edi], bl
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4692ef
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x46a18f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
mov esi, eax
mov eax, dword [0x4cd420]
push edi
mov ecx, 0x4cd420
call dword [eax + 0xc]
mov ecx, dword [esi + 0x10]
mov edi, eax
xor eax, eax
add edi, 0x10
inc eax
dec ecx
mov ebx, eax
shl ebx, cl
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], edi
test dword [ecx + 0x10], ebx
je 0x46a1cb
mov dword [ebp - 8], eax
jmp 0x46a21f
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
push dword [esi]
lea edi, [ebp - 0xc]
call fcn.0046a121
lea edi, [ebp - 4]
call fcn.0040d365
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00405cc6
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
je 0x46a21f
mov esi, dword [esi + 0xc]
push dword [esi - 0xc]
lea eax, [ebp - 4]
push esi
call fcn.00406c3a
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov dword [ebp - 8], eax
je 0x46a21f
mov eax, dword [ebp + 8]
add dword [eax + 0x10], ebx
lea eax, [edi - 0x10]
call fcn.00405cc6
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46a231
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.IsWow64Process
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0xc], ebx
xor esi, esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x46a275
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x10], 1
jne 0x46a275
inc esi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 8]
neg esi
sbb esi, esi
lea ecx, [ebp - 0xc]
push ecx
and esi, 0x100
or esi, 0x20019
push esi
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46a3b7
mov dword [ebp - 0x10], ebx
mov eax, dword [0x4cd420]
mov ecx, 0x4cd420
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0xff
lea esi, [ebp - 4]
mov dword [ebp - 0x14], 0x104
call fcn.0040d0e8
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 4], ebx
jne 0x46a2ee
xor eax, eax
jmp 0x46a2f7
push dword [ebp - 4]
call fcn.00470006
pop ecx
lea edx, [ebp - 4]
call fcn.00406d29
lea eax, [ebp - 4]
call fcn.0040dcc8
cmp esi, ebx
je 0x46a39e
mov dword [ebp - 8], ebx
lea ebx, [edi + 0xc]
mov eax, ebx
call fcn.0046a54e
test eax, eax
jbe 0x46a389
mov eax, ebx
call fcn.0046a54e
mov esi, dword [ebp - 8]
cmp esi, eax
jb 0x46a333
call fcn.0046eca2
mov eax, dword [ebx + 4]
shl esi, 3
mov ecx, dword [eax + esi + 4]
mov eax, dword [ebp + 8]
xor edi, edi
dec ecx
inc edi
shl edi, cl
test dword [eax + 0x10], edi
jne 0x46a377
mov eax, ebx
call fcn.0046a54e
cmp dword [ebp - 8], eax
jb 0x46a35c
call fcn.0046eca2
mov eax, dword [ebx + 4]
push dword [esi + eax]
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.0040492a
cmp eax, 0xffffffff
je 0x46a377
mov eax, dword [ebp + 8]
add dword [eax + 0x10], edi
inc dword [ebp - 8]
mov eax, ebx
call fcn.0046a54e
cmp dword [ebp - 8], eax
jb 0x46a320
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405cc6
inc dword [ebp - 0x10]
xor ebx, ebx
jmp 0x46a2a6
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405cc6
cmp dword [ebp - 0xc], ebx
je 0x46a3b7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x46c2d3
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
lea eax, [ebp - 0x270]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x46c2fb
xor eax, eax
jmp 0x46c3ba
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov edi, dword [ebp - 0x250]
xor ebx, ebx
cmp edi, ebx
je 0x46c2f4
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x46c2f4
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x1c]
lea ecx, [edi + 2]
push eax
mov dword [ebp - 8], ebx
mov byte [ebp + 0xb], bl
call fcn.0046c6d8
push ebx
lea eax, [ebp - 8]
push eax
push edi
push ebx
lea esi, [ebp - 0x1c]
call fcn.0046c583
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x46c3a0
cmp dword [ebp - 8], edi
jne 0x46c3a0
cmp edi, ebx
mov dword [ebp + 8], ebx
jbe 0x46c387
push dword [ebp + 8]
lea esi, [ebp - 0x1c]
call fcn.0046c583
xor byte [eax], 0x4e
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jb 0x46c371
push ebx
lea esi, [ebp - 0x1c]
call fcn.0046c583
push eax
push dword [ebp + 0xc]
call fcn.0040cdc4
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x46c3b7
push dword [ebp - 0x18]
call fcn.0046f308
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x46c3c1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4cd420]
push esi
push edi
mov ecx, 0x4cd420
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
call fcn.004691a3
push dword [eax]
lea eax, [ebp - 4]
push str._sressrcchsuplive.svr
call fcn.0040cd21
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00405cc6
mov esi, dword [ebp - 4]
push esi
push 0
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00405cc6
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x46cd8f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c8454]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046ccce
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0046eea0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46cdde
cmp dword [ebp - 0x1c], 5
jb 0x46cdf6
jmp 0x46cdf2
cmp dword [ebp - 0x10], 1
jne 0x46cdf6
cmp dword [ebp - 0x1c], 4
ja 0x46cdf2
jne 0x46cdf6
cmp dword [ebp - 0x18], 0
jbe 0x46cdf6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4a97ec
call fcn.0041cd47
test eax, eax
jge 0x46ce17
mov byte [0x4ce990], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00475cc6
add ebp, 0x78
leave
ret

Function at 0x46cfc9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4cd408], 0
push esi
jne 0x46cf3c
call fcn.0046ce67
test eax, eax
je 0x46cf7f
mov eax, dword [0x4cd408]
cmp eax, 1
jne 0x46cf5d
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x46cf7f
pop esi
ret
push eax
call dword [0x4cd410]
test eax, eax
jne 0x46cfc7
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46cf83
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4cd408]
call dword [0x4cd410]
mov edi, eax
test edi, edi
je 0x46cfaa
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x46cfc6
lea edi, [esi + 0xff0]
push esi
push dword [0x4cd408]
call dword [0x4cd40c]
add esi, 0x10
cmp esi, edi
jb 0x46cfb0
mov eax, esi
pop edi
pop esi
ret
jmp 0x46cf29

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x46ef47
call fcn.00470e31
mov dword [eax], esi
call fcn.00470e1e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0046ec7e
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x46ef23
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46ef76
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00470e44
pop ecx
call fcn.00470e1e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x46ef9d
test al, 1
je 0x46ef9d
test byte [esp + 0xc], 2
je 0x46ef9d
call fcn.00470e31
mov dword [eax], 5
call fcn.00470e1e
mov dword [eax], 0xd
jmp 0x46ef6d
xor eax, eax
pop esi
ret