joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ae2
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
call edx
test eax, eax
je 0x416b36
cmp dword [esi + 8], 0
je 0x416b16
mov eax, dword [esi + 0x10]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
lea edx, [esi + 0x10]
push edx
push 0
push esi
push 0x4172cc
push 0
push 0
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
ret

Function at 0x416ee9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416f51
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push 0
push eax
push ecx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
test esi, esi
pop esi
je 0x416f54
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x417e49
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516893
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x560070], 0xffffffff
jne 0x417f37
lea eax, [ebp - 0x64]
push eax
call fcn.004049de
push str.cfgs_setup.cfg
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], 0
call fcn.00405b23
add esp, 0x10
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x417eb7
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00404e84
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x417ee9
lea eax, [ebp - 0x2c]
push eax
push 0
push str.SupportNewLangs
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x560070], eax
cmp dword [ebp - 0x18], esi
jb 0x417f12
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x417f37
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00404f7d
add esp, 4
xor eax, eax
cmp dword [0x560070], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x418723
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5169bc
mov eax, dword fs:[0]
push eax
sub esp, 0x64
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 eax, dword [ebp + 8]
mov ebx, edx
push eax
lea edx, [ebp - 0x64]
xor esi, esi
push edx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x70], esi
call fcn.004188af
push 0x520f74
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], esi
call fcn.00404f88
push str.lang.conf
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 1
call fcn.00405b23
add esp, 0x20
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 3
jb 0x4187a9
mov eax, dword [ebp - 0x48]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
mov edi, 0x80
lea eax, [ecx + 0x7e]
mov edi, edi
test esi, esi
je 0x4187de
cmp word [esi + edi*2 - 4], 0
jne 0x418831
cmp word [esi + edi*2 - 2], 0
jne 0x418831
lea edx, [edi - 2]
cmp eax, edx
jne 0x418831
add edi, edi
test esi, esi
je 0x4187ed
push esi
call fcn.004021bf
add esp, 4
lea ebx, [edi + edi]
push ebx
call fcn.00401a66
push ebx
mov esi, eax
push 0
push esi
call fcn.00402e70
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 8
jae 0x418810
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
push eax
push edi
push esi
push 0x523b80
call fcn.00404e46
push eax
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [ebp - 0x6c]
jmp 0x4187c3
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push eax
mov word [ebx], cx
push esi
mov ecx, ebx
call fcn.0040392d
push esi
call fcn.004021bf
mov esi, 8
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x41886c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x418891
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00404f7d
add esp, 4
mov eax, ebx
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x418bc3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515402
mov eax, dword fs:[0]
push eax
sub esp, 0x234
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x23c], edi
mov byte [eax], 0
mov dword [ebp - 0x238], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x240], esi
mov word [esi], ax
lea ecx, [ebp - 0x234]
mov ebx, 1
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x23c], ebx
call fcn.004049de
add esp, 4
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], ebx
cmp eax, edi
jne 0x418c60
cmp dword [ebp - 0x220], 8
jb 0x418d72
mov edx, dword [ebp - 0x234]
push edx
jmp 0x418d6a
mov edi, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x234]
mov ecx, ebx
cmp edi, 8
jae 0x418c79
lea ecx, [ebp - 0x234]
add eax, eax
cmp word [eax + ecx - 2], 0x5c
jne 0x418cb1
mov ecx, ebx
cmp edi, 8
jae 0x418c90
lea ecx, [ebp - 0x234]
lea eax, [eax + ecx - 2]
movzx eax, word [eax]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x234]
call fcn.0040877e
mov edi, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x234]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.00402e70
add esp, 0xc
mov eax, ebx
cmp edi, 8
jae 0x418cdc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040215c
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.oemcompanylogo.png
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.00418d9c
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418d5a
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418d33
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.0040392d
mov edx, dword [ebp - 0x238]
mov byte [edx], 1
cmp dword [ebp - 0x220], 8
jb 0x418d72
mov eax, dword [ebp - 0x234]
push eax
call fcn.00404f7d
add esp, 4
mov eax, esi
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.0040330b
mov esp, ebp
pop ebp
ret 8
Function at 0x41bec0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
je 0x41bf03
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
mov eax, dword [edi]
push eax
push 0
push 0x1fffff
call ebx
mov esi, eax
test esi, esi
je 0x41bef6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
cmp edi, dword [ebp + 0xc]
jne 0x41bed4
mov edi, dword [ebp + 8]
pop esi
pop ebx
test edi, edi
je 0x41bf10
push edi
call fcn.00404f7d
add esp, 4
pop edi
pop ebp
ret

Function at 0x41bf13
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x41c00e
cmp word [ebx], 0
je 0x41c00e
test edi, edi
je 0x41c00e
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00402e70
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x234], eax
cmp esi, 0xffffffff
jne 0x41bf98
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41bfea
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.0040786d
add esp, 8
test eax, eax
jne 0x41bfd9
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x228], eax
je 0x41bfd9
lea ecx, [ebp - 0x228]
push ecx
mov ecx, edi
call fcn.00409767
lea edx, [ebp - 0x230]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41bfa9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
xor ecx, ecx
cmp eax, dword [edi + 4]
pop esi
setne cl
pop edi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x41cc9c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5115de
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
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 esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x41cd75
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 4]
call fcn.0041cbbe
mov dword [ebp - 4], ebx
lea esi, [ebx + 8]
cmp edi, ebx
je 0x41cd5b
cmp dword [ebp - 0x54], ebx
je 0x41cd5b
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x64]
push eax
push edi
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.00428a55
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], esi
jb 0x41cd32
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00428202
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.00428196
cmp dword [ebp - 0x50], esi
jb 0x41ce27
mov eax, dword [ebp - 0x64]
push eax
call fcn.00404f7d
add esp, 4
jmp 0x41ce27
cmp dword [esi + 0x44], ebx
je 0x41ce27
lea ecx, [ebp - 0xe0]
call fcn.004065af
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 4], 4
call fcn.0041cbbe
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 5
call fcn.00406d88
mov esi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], esi
jb 0x41cdc6
mov edx, dword [ebp - 0x48]
push edx
call fcn.00404f7d
add esp, 4
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov edi, 7
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.0041a4d0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x41cdf1
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], esi
jb 0x41ce09
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0041aabd
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x41ce43
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51160e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor edi, edi
push 0xc
mov dword [esi + 4], edi
call fcn.00403b92
add esp, 4
cmp eax, edi
je 0x41ceee
mov dword [esi], eax
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 4], eax
push 0xc
mov dword [ebp - 4], edi
mov dword [esi + 0x28], edi
call fcn.00403b92
add esp, 4
cmp eax, edi
je 0x41ceca
mov dword [esi + 0x24], eax
mov dword [eax], eax
mov eax, dword [esi + 0x24]
mov dword [eax + 4], eax
lea eax, [esi + 0xc]
push eax
mov dword [esi + 0x30], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edi
call fcn.00453777
push 0x51f590
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.004538da
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.00453777
push 0x51f590
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.004538da
int3

Function at 0x41d325
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
mov ecx, dword [ebp + 8]
push ecx
push 0x41cfee
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x41d38e
push edi
mov edi, dword [esi + 0x24]
mov eax, dword [edi + 4]
lea edx, [ebp + 8]
push edx
push eax
push edi
lea ecx, [esi + 0x24]
call fcn.0041c93d
mov ecx, dword [esi + 0x28]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jae 0x41d381
push str.list_T__too_long
call fcn.004528c2
inc ecx
mov dword [esi + 0x28], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41f23f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511c42
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x206
lea ecx, [ebp - 0x23e]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x260], edi
mov word [ebp - 0x240], ax
call fcn.00402e70
add esp, 0xc
lea edx, [ebp - 0x240]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], edi
mov word [ebp - 0x25c], ax
xor ecx, ecx
mov dword [ebp - 4], edi
mov word [ebp - 0x38], cx
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf
push 0xffffffffffffffff
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.00454044
lea eax, [ebp - 0x38]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41f301
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0040392d
push 0xf
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push ecx
mov edx, ecx
push edx
call fcn.00454044
lea eax, [ebp - 0x38]
add esp, 0x10
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41f33f
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00405221
push 4
push str..exe
lea ecx, [ebp - 0x25c]
call fcn.00405221
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x41f385
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
lea eax, [ebp - 0x240]
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41f3af
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.0040392d
cmp dword [ebp - 0x248], 8
jb 0x41f3e5
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.00404f7d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x41f7d4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511d02
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
call fcn.004065af
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x41f835
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040392d
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00406d88
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x41f876
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
push 4
mov word [ebp - 0x2c], cx
push 0x5297d8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.0040392d
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.0041e01d
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x41f8bd
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.0041e58c
mov edx, dword [ebp - 0xac]
push edx
push eax
mov byte [ebp - 4], 3
call fcn.00406b32
mov ecx, eax
call fcn.0041ad93
mov ecx, eax
call fcn.004270b1
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x41f8ff
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0041aabd
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret 4
Function at 0x4229b2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x422a28
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareKingsoftwpscloudperfinfoc
push 0x80000001
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x422a28
call fcn.004227eb
push 8
lea ecx, [ebp - 8]
push ecx
push 0xb
push 0
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0xc]
push esi
push edx
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x422a31
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x422a63
cmp esi, 0xffffffff
je 0x422a63
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 8

Function at 0x42302f
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
mov dword [esi + 0xc], eax
mov ebx, ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov edi, eax
test edi, edi
jne 0x4230bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4230a5
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov dword [esi + 0x14], 1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov edi, eax
test edi, edi
je 0x423061
pop edi
pop esi
pop ebx
pop ebp
ret 8
test edi, edi
jne 0x4230bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x4230bf
push edi
push esi
mov ecx, ebx
call fcn.0042319e
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42319e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
push edi
push pe_nt_image_headers32
push 0
push eax
mov edi, ecx
mov dword [esi + 0x14], 2
mov dword [ebp + 8], 0
call fcn.00402e70
mov edx, dword [esi + 0x18]
mov eax, dword [edi]
add esp, 0xc
push esi
lea ecx, [ebp + 8]
push ecx
push pe_nt_image_headers32
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x423211
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x423210
call ebx
cmp eax, 0xea
je 0x423210
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push esi
mov ecx, edi
call fcn.0042302f
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x42326e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 4], eax
xor eax, eax
push 1
lea ecx, [ebp - 0x20]
push ecx
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov word [ebp - 0xf], ax
mov byte [ebp - 0xd], al
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [ebp + 0x18], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0xc
mov eax, 0x40000003
je 0x4232df
mov eax, 0x40080003
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x4232ea
mov ecx, dword [ecx]
lea edx, [ebp - 0xc]
push edx
push 0
push 0x400
push 0x400
push 0xff
push 6
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x423319
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
push edi
mov edi, dword [ebp + 0x10]
push 0
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, edi
pop edi
jne 0x423310
mov eax, dword [ebp + 0x14]
push 0
push eax
mov ecx, esi
call fcn.0042302f
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14