joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f480
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
cmp dword [ebp + 0x10], 0xffffffff
jne 0x46f4f6
movzx edx, word [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xf
ja case.0x46f4bb.2
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x46f564]
jmp dword [edx*4 + 0x46f54c]
mov dword [ebp + 0x10], 0xc0000002
jmp 0x46f4f6
mov dword [ebp + 0x10], reloc.WS2_32.dll_accept
jmp 0x46f4f6
mov dword [ebp + 0x10], 0x40000000
jmp 0x46f4f6
mov dword [ebp + 0x10], 0x40000000
jmp 0x46f4f6
mov dword [ebp + 0x10], 0x40000000
jmp 0x46f4f6
mov dword [ebp + 0x10], 0x40000000
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46f544
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46fef0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0
mov word [ebp - 0x208], 0
push 0x1fe
push 0
lea eax, [ebp - 0x206]
push eax
call fcn.00453b10
add esp, 0xc
mov dword [ebp - 0x20c], 0
mov dword [ebp - 4], 0
push 0x14
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x46ff97
push pe_nt_image_headers32
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.0046fb90
push eax
push str.OpenSCManager_failed____s_n
call fcn.00458986
add esp, 8
jmp 0x4700f6
push 0xf01ff
mov edx, dword [ebp - 0x218]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46ffeb
push pe_nt_image_headers32
lea edx, [ebp - 0x208]
push edx
mov ecx, dword [ebp - 0x218]
call fcn.0046fb90
push eax
push str.OpenService_failed____s_n
call fcn.00458986
add esp, 8
jmp 0x4700f6
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 8]
push ecx
push str.Starting_up__s.
call fcn.00458986
add esp, 8
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x470058
push pe_nt_image_headers32
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x218]
call fcn.0046fb90
push eax
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx + 8]
push edx
push str._n_s_failed_to_start:__s_n
call fcn.00458986
add esp, 0xc
jmp 0x4700f6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x218]
add eax, 0x18
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4700a3
mov edx, dword [ebp - 0x218]
cmp dword [edx + 0x1c], 2
je 0x470089
jmp 0x4700a3
push 0x490654
call fcn.00458986
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x470063
mov ecx, dword [ebp - 0x218]
call fcn.0046f360
mov eax, dword [ebp - 0x218]
cmp dword [eax + 0x1c], 4
je 0x4700d5
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx + 8]
push edx
push 0x490658
call fcn.00458986
add esp, 8
jmp 0x4700f6
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 8]
push ecx
push str._n_s_started._n
call fcn.00458986
add esp, 8
mov dword [ebp - 0x210], 1
cmp dword [ebp - 4], 0
je 0x47010d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20c], 0
je 0x47012d
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret
Function at 0x470150
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x208], 0
push 0x1fe
push 0
lea eax, [ebp - 0x206]
push eax
call fcn.00453b10
add esp, 0xc
push 0x24
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x4701f7
push pe_nt_image_headers32
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.0046fb90
push eax
push 0x4904c0
call fcn.00458986
add esp, 8
jmp 0x470326
push 0xf01ff
mov edx, dword [ebp - 0x218]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47024b
push pe_nt_image_headers32
lea edx, [ebp - 0x208]
push edx
mov ecx, dword [ebp - 0x218]
call fcn.0046fb90
push eax
push 0x4904f8
call fcn.00458986
add esp, 8
jmp 0x470326
mov eax, dword [ebp - 0x218]
add eax, 0x18
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x47027a
jmp 0x470326
mov edx, dword [ebp - 0x218]
mov eax, dword [edx + 8]
push eax
push str.Stopping__s.
call fcn.00458986
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x218]
add ecx, 0x18
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4702de
mov eax, dword [ebp - 0x218]
cmp dword [eax + 0x1c], 3
jne 0x4702da
push 0x490548
call fcn.00458986
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4702dc
jmp 0x4702de
jmp 0x47029c
mov ecx, dword [ebp - 0x218]
cmp dword [ecx + 0x1c], 1
je 0x470305
mov edx, dword [ebp - 0x218]
mov eax, dword [edx + 8]
push eax
push 0x49054c
call fcn.00458986
add esp, 8
jmp 0x470326
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx + 8]
push edx
push str._n_s_stopped._n
call fcn.00458986
add esp, 8
mov dword [ebp - 0x210], 1
cmp dword [ebp - 4], 0
je 0x47033d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20c], 0
je 0x47035d
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret
Function at 0x471f90
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487287
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 7
lea ecx, [ebp - 0x34]
call fcn.00401d50
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 1
jmp 0x471fe0
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x30]
jge 0x472098
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x54]
call fcn.00408ea0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push eax
push 0x490b24
lea ecx, [ebp - 0x34]
push ecx
call fcn.00410190
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.004119f0
push eax
lea ecx, [ebp - 0x54]
call fcn.00408f10
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x70]
call fcn.00408ea0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
add eax, 1
push eax
push 0x490b34
lea ecx, [ebp - 0x34]
push ecx
call fcn.00410190
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.004119f0
push eax
lea ecx, [ebp - 0x70]
call fcn.00408f10
push 0
lea ecx, [ebp - 0x70]
call fcn.00403760
push eax
lea ecx, [ebp - 0x54]
call fcn.00403760
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00403740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00403740
jmp 0x471fd7
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00408ea0
mov byte [ebp - 4], 3
push 1
push str._bak_d
lea eax, [ebp - 0x34]
push eax
call fcn.00410190
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.004119f0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408f10
push 0
lea ecx, [ebp - 0x2c]
call fcn.00403760
push eax
mov ecx, dword [ebp + 8]
call fcn.00403760
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x490b54
mov ecx, dword [ebp + 8]
call fcn.00403760
push eax
call fcn.004573bb
add esp, 8
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403340
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret
Function at 0x472610
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x10c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x110], pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x472665
jmp 0x472687
push str.SYSTEM
lea edx, [ebp - 0x108]
push edx
call fcn.00456c90
add esp, 8
test eax, eax
jne 0x472687
mov dword [ebp - 0x10c], 1
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret

Function at 0x472750
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.00453b10
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x4727b4
jmp 0x472838
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x4727d0
jmp 0x472838
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x472838
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.0045562a
add esp, 8
test eax, eax
jne 0x472821
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x230]
mov dword [edx], eax
mov dword [ebp - 0x240], 1
jmp 0x472838
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4727f1
cmp dword [ebp - 0x23c], 0xffffffff
je 0x47284e
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret 8
Function at 0x473100
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486fb7
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a7740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x20]
call fcn.00405500
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
call fcn.00401d50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401d50
mov byte [ebp - 4], 2
push 1
push 0x491728
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.004116d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x473179
jmp 0x4731eb
lea eax, [ebp - 0x18]
push eax
push 0x4917d8
lea ecx, [ebp - 0x20]
call fcn.00411780
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x473195
jmp 0x4731eb
push str.kisaassvr.exe
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004242c0
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041d290
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00403340
lea ecx, [ebp - 0x14]
call fcn.0041e8b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4731e4
jmp 0x4731eb
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00403340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004116b0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x473230
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487000
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x20]
call fcn.00405500
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
call fcn.00401d50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401d50
mov byte [ebp - 4], 2
push 1
push 0x491298
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.004116d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4732b2
jmp 0x4733f4
lea eax, [ebp - 0x18]
push eax
push 0x491344
lea ecx, [ebp - 0x20]
call fcn.00411780
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4732d1
jmp 0x4733f4
push str.kistray.exe
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x240]
push edx
call fcn.004242c0
add esp, 0xc
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041d290
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00403340
lea ecx, [ebp - 0x14]
call fcn.0041e8b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x473335
jmp 0x4733f4
mov dword [ebp - 0x10], 1
mov word [ebp - 0x22c], 0
push 0x206
push 0
lea edx, [ebp - 0x22a]
push edx
call fcn.00453b10
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x49137c
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x23c]
push edx
call fcn.004730e0
add esp, 4
lea ecx, [ebp - 0x230]
call fcn.00401d50
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
push 0x4913b0
lea edx, [ebp - 0x230]
push edx
call fcn.00410190
add esp, 0x10
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041e8b0
push eax
push str.Install
push 0x4913c8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.00403340
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x244], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00403340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004116b0
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret
Function at 0x474990
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esp, ebp
pop ebp
ret 8

Function at 0x4749d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x474a09
xor eax, eax
jmp 0x474a32
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x474a25
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x474d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
mov al, byte [0x4901fe]
mov byte [ebp - 0x110], al
push 0x103
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.00453b10
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x474d8b
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x492090
push 0x104
push 0x5c
lea ecx, [ebp - 0x110]
push ecx
call fcn.0042a8a0
add esp, 8
push eax
call fcn.00456949
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x114]
add ecx, 0x14
call fcn.00405520
push str.kingsoftKisaas_
mov ecx, dword [ebp - 0x114]
add ecx, 0x14
call fcn.00429270
push str.kagent2.log
mov ecx, dword [ebp - 0x114]
add ecx, 0x14
call fcn.00429270
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret
Function at 0x475100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xe8], 0
mov byte [ebp - 0xe4], 0
xor eax, eax
mov dword [ebp - 0xe3], eax
mov dword [ebp - 0xdf], eax
mov dword [ebp - 0xdb], eax
mov dword [ebp - 0xd7], eax
mov word [ebp - 0xd3], ax
mov byte [ebp - 0xd1], al
mov dword [ebp - 0xf4], 0
xor ecx, ecx
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], ecx
mov word [ebp - 0xd0], 0
push 0xc6
push 0
lea edx, [ebp - 0xce]
push edx
call fcn.00453b10
add esp, 0xc
mov ecx, dword [ebp - 0xf8]
call fcn.00474d00
mov ecx, dword [ebp - 0xf8]
call fcn.00474c40
push 1
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0xe4]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0xf4], 0xc
lea edx, [ebp - 0xe4]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf8]
add eax, 0x30
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.GlobalF0AC25B9_7E6B_40c4_8281_E621034AA3D3__d
lea ecx, [ebp - 0xd0]
push ecx
call fcn.00450fe7
add esp, 0xc
lea edx, [ebp - 0xd0]
push edx
push 1
push 1
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 8], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0xf8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xf8]
cmp dword [eax + 8], 0
je 0x475251
mov ecx, dword [ebp - 0xf8]
cmp dword [ecx + 0xc], 0
jne 0x475255
xor eax, eax
jmp 0x475298
push 0
push 0
mov edx, dword [ebp - 0xf8]
push edx
push 0x4750e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xf8]
cmp dword [edx + 0x10], 0
jne 0x475288
xor eax, eax
jmp 0x475298
mov dword [ebp - 0xe8], 1
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret
Function at 0x475c10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x475c27
mov ecx, dword [ebp - 4]
call fcn.00475960
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x475c56
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x475c73
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x475c80
xor eax, eax
jmp 0x475cc8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x475aa0
push 0
push 0
call fcn.00457a01
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x475cc3
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
xor eax, eax
jmp 0x475cc8
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x477e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00453b10
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x477ea4
jmp 0x477f3a
push 1
push 0x23
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x477ef6
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x477edd
jmp 0x477f3a
push 0x4926e0
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0045727b
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0045727b
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call fcn.00450f30
add esp, 4
cmp eax, dword [ebp + 0x10]
jae 0x477f3a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call fcn.0045727b
add esp, 0xc
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret