joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f40
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445a08
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x45c3a4]
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
mov dword [ebp - 0x28], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 5
push dword [esi + 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x408005
lea eax, [ebp - 0x19]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x19], 0
call fcn.00408260
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x34]
push 0
push 5
push dword [esi + 0x10]
call edi
test eax, eax
je 0x408005
push 0xa
push 0
push dword [ebp - 0x34]
call fcn.0041cd0b
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
je 0x408005
lea ecx, [ebp - 0x19]
push ecx
push eax
jmp 0x40800c
lea eax, [ebp - 0x19]
push eax
push dword [esi + 0x14]
mov ecx, ebx
mov byte [ebp - 0x19], 0
call fcn.00408260
xor edi, edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x19], 1
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
mov ecx, dword [ebp - 0x28]
sub esi, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x18]
sub esi, edi
test eax, eax
je 0x40803b
cmp esi, eax
cmova esi, eax
push esi
call fcn.00408120
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push esi
mov esi, dword [ebp - 0x28]
add eax, edi
push eax
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4080cb
add edi, dword [ebp - 0x18]
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edi
jne 0x4080bf
mov edx, dword [esi + 0x14]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov esi, eax
add edx, edi
sub esi, ecx
mov byte [ebp - 0x1a], 0
cmp esi, edx
jbe 0x4080a8
lea esi, [ecx + edx]
cmp esi, ecx
jne 0x40808a
mov dword [ebx + 4], ecx
jmp 0x4080bf
cmp esi, eax
je 0x4080bf
mov edi, eax
sub edi, eax
push edi
push eax
push esi
call fcn.0041bea0
lea eax, [edi + esi]
mov edi, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebx + 4], eax
jmp 0x4080bf
jae 0x4080bf
sub ecx, eax
lea esi, [ebp - 0x1a]
push esi
add ecx, edx
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
call fcn.004082d0
cmp dword [ebp - 0x18], 0
jne 0x408020
jmp 0x4080cf
mov byte [ebp - 0x19], 0
cmp dword [ebp - 0x20], 0
jne 0x4080e5
lea eax, [ebp - 0x1a]
push eax
push edi
mov ecx, ebx
mov byte [ebp - 0x1a], 0
call fcn.00408260
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4080f5
push eax
call fcn.0041b8e3
add esp, 4
mov al, byte [ebp - 0x19]
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.0041b8d4
mov esp, ebp
pop ebp
ret 4
Function at 0x409860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445c23
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x45c3a4]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
mov eax, dword [0x45c3a4]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
push eax
push 0x104
lea ecx, [esp + 0x3c]
mov dword [esp + 0xb0], eax
call fcn.004037f0
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x44], 0
push 1
mov word [eax], cx
push 0x451ec0
lea ecx, [esp + 0x3c]
call fcn.00403130
lea ecx, [esp + 0xc]
call fcn.00405bd0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xb4], 1
call fcn.00403020
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x20], 8
jb 0x409930
push dword [esp + 0xc]
call fcn.0041b8e3
add esp, 4
push 0xb
push 0x451ec4
lea ecx, [esp + 0x3c]
call fcn.00403130
push 0x40
lea eax, [esp + 0x54]
push 0
push eax
mov dword [esp + 0x58], 0x44
call fcn.00427e80
add esp, 0xc
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4099ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CKOSService::Restart
push str.Failed_to_create_restarter_process._LastError__0x_08X_
push 0x462e98
call fcn.00402460
add esp, 0x10
xor bl, bl
jmp 0x4099c2
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
cmp dword [esp + 0x48], 8
jb 0x4099d5
push dword [esp + 0x34]
call fcn.0041b8e3
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret
Function at 0x40a460
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45c3a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
push dword [eax + 4]
mov dword [ebp - 0x24], ebx
call fcn.00405090
mov eax, dword [ebx + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [eax], eax
mov eax, dword [ebx + 0x2c]
mov dword [eax + 8], eax
mov dword [ebx + 0x30], 0
mov byte [ebx + 0x34], 0
cmp dword [edi + 0x14], 8
jb 0x40a4e6
mov eax, dword [edi]
jmp 0x40a4e8
mov eax, edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x40a565
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40a53d
cmp dword [edi + 0x14], 8
jb 0x40a51e
mov edi, dword [edi]
push edi
push 0x452010
push str.File___s__is_not_found
push 0x462e98
call fcn.004025d0
add esp, 0x10
xor al, al
jmp 0x40a63a
cmp dword [edi + 0x14], 8
jb 0x40a545
mov edi, dword [edi]
push eax
push edi
push 0x452010
push str.Failed_to_open_file.___s__LastError__0x_08X_
push 0x462e98
call fcn.004025d0
add esp, 0x14
xor al, al
jmp 0x40a63a
push edi
mov ecx, ebx
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0
call fcn.0040a800
test al, al
jne 0x40a5a4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], str.LoadVersion
call fcn.0041bb11
push 0x4589e8
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], vtable.std::runtime_error.0
call fcn.0041de2b
push esi
mov ecx, ebx
call fcn.0040a990
test al, al
jne 0x40a5d8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], str.ComputeHash
call fcn.0041bb11
push 0x4589e8
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], vtable.std::runtime_error.0
call fcn.0041de2b
mov ecx, edi
call fcn.00402120
lea ecx, [ebx + 4]
mov byte [ebx + 0x34], al
cmp ecx, edi
je 0x40a630
push 0xffffffffffffffff
push 0
push edi
call fcn.004036a0
jmp 0x40a630
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret 4
Function at 0x40a800
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445df8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x45c3a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40a844
mov eax, dword [esi]
jmp 0x40a846
mov eax, esi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x40a940
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.0040aba0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
sub eax, edi
sar eax, 1
cmp dword [esi + 0x14], 8
jb 0x40a896
mov esi, dword [esi]
push edi
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40a8cd
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], str.GetFileVersionInfo
call fcn.0041bb11
push 0x4589e8
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], vtable.std::runtime_error.0
call fcn.0041de2b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x452138
push edi
mov dword [ebp - 0x18], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40a914
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x1c], str.VerQueryValue
call fcn.0041bb11
push 0x4589e8
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], vtable.std::runtime_error.0
call fcn.0041de2b
mov ecx, dword [ebp - 0x20]
movzx eax, word [ecx + 0xa]
mov dword [ebx + 0x1c], eax
movzx eax, word [ecx + 8]
mov dword [ebx + 0x20], eax
movzx eax, word [ecx + 0xe]
mov dword [ebx + 0x24], eax
movzx eax, word [ecx + 0xc]
mov dword [ebx + 0x28], eax
test edi, edi
je 0x40a940
push edi
call fcn.0041b8e3
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret 4
Function at 0x40ae10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445e80
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x45c3a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea edi, [ecx + 4]
mov ecx, edi
mov byte [ebp - 0x24d], 1
call fcn.0040b120
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x254], esi
cmp esi, 0xffffffff
jne 0x40aea7
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x24c], 0x45220c
call fcn.0041bb11
push 0x4589e8
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
call fcn.0041de2b
push 0x228
lea eax, [ebp - 0x244]
push 0
push eax
mov dword [ebp - 0x248], 0x22c
call fcn.00427e80
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40af10
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x24c], str.Process32First
call fcn.0041bb11
push 0x4589e8
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
call fcn.0041de2b
mov ebx, dword [edi]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x24c]
push eax
push dword [ebx + 4]
push ebx
call fcn.0040b1a0
mov ecx, dword [edi + 4]
mov edx, eax
mov eax, 0x5555554
sub eax, ecx
cmp eax, 1
jae 0x40af49
push str.list_T__too_long
call fcn.0041ae63
lea eax, [ecx + 1]
mov dword [edi + 4], eax
mov dword [ebx + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40af10
jmp 0x40afa8
mov bl, byte [ebp - 0x24d]
cmp esi, 0xffffffff
je 0x40afba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret

Function at 0x40afe0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov eax, ecx
push edi
mov edi, dword [eax + 4]
mov dword [ebp - 4], eax
mov esi, dword [edi]
cmp esi, edi
je 0x40b03f
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x40b002
mov eax, dword [eax]
push str.KOSinj.exe
push eax
call fcn.0041bcd7
add esp, 8
test eax, eax
jne 0x40b036
push dword [esi + 0xc]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40b036
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi]
cmp esi, edi
jne 0x40aff7
mov eax, dword [ebp - 4]
mov ecx, eax
call fcn.0040ae10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea eax, [edi + 0x10]
mov dword [ebp - 8], edi
mov dword [edi + 8], 0x1571
mov dword [edi + 0xc], 0
mov ebx, 0x1571
mov dword [ebp - 4], eax
lea edi, [esi + 1]
lea esp, [esp]
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, ebx
push eax
push ecx
call fcn.004330a0
mov ebx, eax
mov eax, edi
mov esi, edx
cdq
add ebx, eax
mov eax, dword [ebp - 4]
adc esi, edx
mov dword [eax], ebx
mov dword [eax + 4], esi
inc edi
add eax, 8
mov dword [ebp - 4], eax
cmp edi, 0x138
jl 0x40b450
mov edi, dword [ebp - 8]
mov dword [edi], 0x138
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bf50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445f28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x45c3a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0xf
xor eax, eax
push 0x452268
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00403a10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.0040c1e0
cmp dword [esp + 0x28], 8
jb 0x40bfdf
push dword [esp + 0x14]
call fcn.0041b8e3
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445f88
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45c3a4]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x45c3a4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
push 0xf
xor eax, eax
push 0x452268
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00403a10
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.0040c320
lea eax, [esp + 0xc]
push eax
push ecx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0040c2a0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40c0c2
push eax
call fcn.0041b8e3
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x40c0d5
push dword [esp + 0x18]
call fcn.0041b8e3
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret 8
Function at 0x40c100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45c3a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 4], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [ecx + 4]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 9], 0
jne 0x40c150
push 0
push ebx
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareKingsKings_Online_SecurityService
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c1c4
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 8], eax
jb 0x40c162
mov eax, dword [esi]
jmp 0x40c164
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c1c4
push dword [ebp - 8]
mov ecx, edi
call fcn.00406000
cmp dword [esi + 0x14], 8
jb 0x40c18d
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
push dword [edi]
push dword [ebp - 0x10]
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, byte [ebp - 9]
test eax, eax
pop edi
mov edx, 1
cmove ecx, edx
pop esi
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 9]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c2a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
lea esi, [ecx + 8]
xor bl, bl
cmp dword [esi], 0
jne 0x40c2db
push 0
push esi
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareKingsKings_Online_SecurityService
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40c2db
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
sub ecx, edx
cmp dword [eax + 0x14], 8
jb 0x40c2f0
mov eax, dword [eax]
push ecx
push edx
push 0xb
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ecx, bl
test eax, eax
mov edx, 1
cmove ecx, edx
pop esi
mov al, cl
pop ebx
pop ebp
ret 0xc
Function at 0x40c620
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45c3a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ebx, eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40c6a4
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push ecx
mov dword [ebp - 8], 0
call edi
test eax, eax
je 0x40c6a4
mov eax, dword [ebp - 0x28]
add eax, 0xfffffffe
cmp eax, 4
ja case.0x40c66f.4
jmp dword [eax*4 + 0x40c6bc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x1388
jae 0x40c6a4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40c643
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret 4

Function at 0x40cbe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4461c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x45c3a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 8]
push str.CSessionMonitor::OnSessionLogon
push str.Session_ID___u_
push 0x462e98
call fcn.00402460
lea edx, [ebp + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040e5b0
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
call fcn.0040c700
mov edi, dword [esi + 0x1c]
lea eax, [esp + 0xc]
push eax
push dword [edi + 4]
push edi
call fcn.0040e660
mov edx, eax
mov eax, dword [esi + 0x20]
mov ecx, 0xffffffe
sub ecx, eax
cmp ecx, 1
jae 0x40cc80
push str.list_T__too_long
call fcn.0041ae63
push dword [ebp + 8]
inc eax
mov dword [esi + 0x20], eax
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
push str.CSessionMonitor::OnSessionLogon
push str.Pending_start_added._Session_ID___u_
push 0x462e98
mov dword [eax], edx
call fcn.00402460
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x20]
add esp, 0x10
test esi, esi
je 0x40ccdb
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x40ccdb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x40ccdb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e860
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], vtable.CSHA256.0
mov dword [ecx + 4], 0x6a09e667
mov dword [ecx + 8], 0xbb67ae85
mov dword [ecx + 0xc], 0x3c6ef372
mov dword [ecx + 0x10], 0xa54ff53a
mov dword [ecx + 0x14], 0x510e527f
mov dword [ecx + 0x18], 0x9b05688c
mov dword [ecx + 0x1c], 0x1f83d9ab
mov dword [ecx + 0x20], 0x5be0cd19
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x24], 0
mov eax, ecx
ret
Function at 0x40ea00
Capabilities:
Hash data using sha256
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4462a6
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x45c3a4]
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 edi, edx
mov dword [ebp - 0xc4], edi
mov ebx, ecx
mov dword [ebp - 0xa8], ebx
xor esi, esi
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xa0], vtable.CSHA256.0
mov dword [ebp - 0x9c], 0x6a09e667
mov dword [ebp - 0x98], 0xbb67ae85
mov dword [ebp - 0x94], 0x3c6ef372
mov dword [ebp - 0x90], 0xa54ff53a
mov dword [ebp - 0x8c], 0x510e527f
mov dword [ebp - 0x88], 0x9b05688c
mov dword [ebp - 0x84], 0x1f83d9ab
mov dword [ebp - 0x80], 0x5be0cd19
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0xa1]
mov dword [ebp - 4], esi
push eax
push ecx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0xa1], 0
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], esi
call fcn.0040ec50
push esi
push esi
push esi
mov byte [ebp - 4], 1
push edi
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40eb24
xor eax, eax
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
push 0x452d5c
mov ecx, ebx
mov word [ebx], ax
call fcn.00403a10
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x40ec19
push eax
jmp 0x40ec11
cmp dword [ebp - 0x14], 0
mov edi, dword [ebp - 0xbc]
je 0x40ebf2
mov eax, dword [ebp - 0xb8]
sub eax, edi
mov dword [ebp - 0xc0], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ec37
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x78]
mov ecx, edx
lea eax, [eax + edx*8]
mov dword [ebp - 0x78], eax
mov eax, edx
shr eax, 0x1d
add esi, eax
mov dword [ebp - 0xac], ecx
mov ebx, edi
mov dword [ebp - 0x7c], esi
cmp edx, 0x40
jb 0x40ebca
mov eax, edx
shr eax, 6
mov dword [ebp - 0xb0], eax
mov edi, edi
mov ecx, 0x10
mov esi, ebx
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x74]
call fcn.00408620
mov ecx, dword [ebp - 0xac]
sub ecx, 0x40
add ebx, 0x40
dec dword [ebp - 0xb0]
mov dword [ebp - 0xac], ecx
jne 0x40eb90
mov edi, dword [ebp - 0xbc]
push ecx
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.0041d750
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x40ebec
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0xc0]
jmp 0x40eb42
mov ebx, dword [ebp - 0xa8]
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x9c]
call fcn.00408b40
push ebx
lea ecx, [ebp - 0xa0]
call fcn.0040e8f0
test edi, edi
je 0x40ec19
push edi
call fcn.0041b8e3
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.0041b8d4
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xa8]
push 0x452d5c
mov ecx, ebx
call fcn.00403b10
jmp 0x40ec0c