joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6827
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4f6854
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4f6869
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4f6869
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004329ef
jmp 0x4f693a
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004329ef
cmp eax, edi
jne 0x4f6944
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4f68d6
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4f691a
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4f6944
cmp eax, 0x205
je 0x4f6944
cmp eax, 0x201
je 0x4f6944
cmp eax, 0x204
je 0x4f6944
cmp eax, 0x100
jne 0x4f6902
cmp dword [ebp - 0x18], 0x1b
je 0x4f6944
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4f693a
ja 0x4f6933
cmp eax, dword [0x5f33b0]
jbe 0x4f693a
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4f688b
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4f6d1c
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4f6d52
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0042a15c
test eax, eax
je 0x4f6d3a
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4fd80e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5ea964], 0
push esi
push edi
je 0x4fd896
cmp dword [0x5eaca0], 0xfffffffe
jne 0x4fd882
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4fd896
mov edi, 0x5f33dc
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5f33f4], 0
jne 0x4fd89a
push 0
push 0
push 0x4fd8a0
call fcn.0056d5ee
add esp, 0xc
mov dword [0x5f33f4], eax
test eax, eax
je 0x4fd872
cmp eax, 0xffffffff
je 0x4fd872
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5eaca0], esi
jmp 0x4fd879
and dword [0x5f33f4], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4fd896
mov eax, dword [ebp + 8]
mov dword [0x5eaca0], eax
cmp eax, 0xffffffff
jne 0x4fd896
and dword [0x5f33f4], 0
pop edi
pop esi
pop ebp
ret
call fcn.004250b5
int3
Function at 0x506e73
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x506f12
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x506f0e
mov eax, dword [eax + 0x20]
test eax, eax
je 0x506f0e
cmp dword [ebx], eax
jne 0x506f0e
mov eax, dword [ebx + 4]
sub eax, 1
je 0x506ee8
sub eax, 1
je 0x506eb8
sub eax, 1
jne 0x506f0e
mov edi, 0x428e
jmp 0x506eed
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x506eed
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x595a04]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x506eed
add edi, 3
jmp 0x506eed
mov edi, 0x3ea0
push edi
mov ecx, 0x5f3438
call fcn.00422620
test eax, eax
je 0x506f12
mov eax, dword [0x5f3438]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x506f07
call fcn.004250b5
int3

Function at 0x510e0d
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0056f0b5
pop ecx
test eax, eax
jne 0x510e4f
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0042764c
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x510e15
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x517dcc
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x588469
call fcn.0055938f
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x517eb8
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x517eb8
cmp esi, 0x43
je 0x517e0e
cmp esi, 0x2d
jne 0x517eb8
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x517eb8
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402250
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5b7f10
push eax
call fcn.00404240
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x517ea6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x517ea6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.004258cb
push ebx
mov ecx, edi
call fcn.00515252
call fcn.0055935d
ret 4
Function at 0x559ea6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x559ee5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x559ee5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x559ee5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x559ee5
cmp dword [ecx + 0x74], 0xe
jbe 0x559ee5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x55a6e8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x55a7b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x55a718
xor esi, esi
jmp 0x55a7b9
cmp eax, 3
je 0x55a729
push 0
push edi
call fcn.0055a7c1
test eax, eax
jne 0x55a711
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x55a7a6
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x55a742
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x55a73b
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x55a7a6
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0055a6e8
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x55a7b8
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x55a7a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x55a793
xor esi, esi
inc esi
jmp 0x55a7b8
test esi, esi
jle 0x55a7b8
movzx esi, si
or esi, 0x80070000
jmp 0x55a7b8
xor esi, esi
jmp 0x55a7b8
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work66_s_srclibsdutildirutil.cpp
call fcn.0043e2b6
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x55a7e5
test al, 0x10
je 0x55a7e5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x55a7e2
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x55cb97
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x55cbb8
jl 0x55cbaf
test edi, edi
jne 0x55cbb8
xor eax, eax
xor edx, edx
jmp 0x55cc79
cmp dword [ebx + 0x38], 0
je 0x55cbcd
push eax
push edi
push dword [ebp + 8]
call fcn.0055cc7f
jmp 0x55cc79
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x55cc14
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x55cc14
cmp eax, edi
jb 0x55cbee
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0055ddc0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x55cc1a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x55cc6e
mov ecx, ebx
call fcn.0055c361
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x55cc59
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0056f9d1
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x55cc6e
jmp 0x55cc2c
test edx, edx
je 0x55cc6e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0056f9d1
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x55cd6e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x55cd90
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0055ce53
jmp 0x55ce4e
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x55cdb6
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x55cdbb
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x55ce1b
jg 0x55cdd0
test esi, esi
je 0x55ce1b
test ecx, ecx
jl 0x55ce16
jg 0x55cdda
test eax, eax
je 0x55ce16
cmp edi, ecx
jg 0x55cdec
jl 0x55cde4
cmp esi, eax
jae 0x55cdec
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.0055ddc0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x55ce1e
mov ecx, dword [ebp + 8]
jmp 0x55ce28
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x55ce42
jg 0x55ce28
test esi, esi
je 0x55ce42
cmp dword [ebx + 0x4c], 0
je 0x55ce42
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0056b1f2
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x57a3f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057a269

Function at 0x5840b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5840dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5840dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402320
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f41b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43dfc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041af34
push 4
mov dword [ebp - 4], 0
call fcn.0041bf4f
mov edi, eax
add esp, 4
test edi, edi
je 0x4023a0
call fcn.0041a88e
mov dword [edi], eax
call fcn.0041a64d
lea ecx, [ebp - 0x10]
mov ebx, eax
push 0
call fcn.0041a582
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x402396
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041a5aa
jmp 0x4023a2
xor edi, edi
lea ebx, [esi + 0x18]
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi + 0x20], ebx
lea eax, [esi + 0x1c]
mov dword [esi + 0x24], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x38], edi
lea ebx, [esi + 0xc]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], ecx
lea eax, [esi + 0x2c]
mov dword [esi + 0x34], eax
mov dword [ebx], 0
mov ebx, dword [esi + 0x24]
mov dword [ebx], 0
mov ebx, dword [esi + 0x34]
mov dword [ebx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov ebx, dword [esi + 0x20]
mov dword [ebx], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406f20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f41b
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff8
push ebx
push esi
push edi
mov eax, dword [0x43dfc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041af34
push 4
mov dword [ebp - 4], 0
call fcn.0041bf4f
mov edi, eax
add esp, 4
test edi, edi
je 0x406fa0
call fcn.0041a88e
mov dword [edi], eax
call fcn.0041a64d
mov ebx, eax
push 0
lea ecx, [ebp - 0x10]
call fcn.0041a582
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406f96
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041a5aa
jmp 0x406fa2
xor edi, edi
lea ebx, [esi + 8]
mov dword [esi + 0x10], ebx
lea ebx, [esi + 0x1c]
lea edx, [esi + 0x2c]
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
lea ecx, [esi + 0x28]
mov dword [esi + 0x14], eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, esi
mov edx, dword [esi + 0x24]
mov dword [edx], 0
mov ebx, dword [esi + 0x34]
mov dword [ebx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov ecx, dword [esi + 0x20]
mov dword [ecx], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ebx, dword [ebp - 0xc]
mov dword fs:[0], ebx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b880
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0041bfd0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push str._SYSTEMDRIVE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jbe 0x40b8e4
pop esi
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b771
mov esp, ebp
pop ebp
ret
or esi, esi
je 0x40b8ed
lea eax, [esi + 0x10]
jmp 0x40b8ef
xor eax, eax
push str.IntelCPHS.log
push str.Logs
push 0x431ae0
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.0040a620
add esp, 8
push eax
call fcn.0040a620
sub esp, 0xfffffff8
push eax
call fcn.0040a620
sub esp, 0xfffffff8
push eax
call fcn.0040a620
sub esp, 0xfffffff8
push 0
mov ecx, eax
call fcn.00404ba0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0041b771
mov esp, ebp
pop ebp
ret

Function at 0x40d0b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, esp
lea ebp, [eax + 0xc]
mov edx, dword [eax + 8]
push 4
push ebp
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
ret 8
Function at 0x40dab0
Capabilities:
Query or enumerate registry key

Disassembly:
push esi
mov esi, esp
sub esp, 0x220
mov eax, dword [0x43dfc0]
xor eax, esi
mov dword [esi - 4], eax
mov eax, dword [esi + 8]
push edi
push ebp
push ebx
mov edi, ecx
mov ebx, dword [edi + 4]
mov edx, dword [edi]
or ebx, 0x2001f
push ebx
xor ebp, ebp
push eax
push edx
lea ecx, [esi - 0x210]
mov dword [esi - 0x218], eax
mov dword [esi - 0x210], ebp
mov dword [esi - 0x20c], ebp
mov dword [esi - 0x208], ebp
call fcn.0040d000
mov ebx, eax
cmp ebx, ebp
je 0x40db2a
mov eax, dword [esi - 0x210]
cmp eax, ebp
je 0x40db15
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi - 4]
mov eax, ebx
pop ebx
xor ecx, esi
pop ebp
pop edi
call fcn.0041b771
mov esp, esi
pop esi
ret 4
lea ecx, [esi - 0x214]
lea edx, [esi - 0x204]
lea ebx, [esi - 0x220]
push ebx
mov eax, dword [esi - 0x210]
push ebp
push ebp
push ebp
push ecx
push edx
push ebp
push eax
mov dword [esi - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
or eax, eax
jne 0x40dbac
mov edi, edi
lea ecx, [esi - 0x210]
lea ebx, [esi - 0x204]
push ebx
call fcn.0040dab0
mov ebx, eax
cmp ebx, ebp
jne 0x40db04
lea edx, [esi - 0x220]
push edx
lea ecx, [esi - 0x204]
lea eax, [esi - 0x214]
mov edx, dword [esi - 0x210]
push ebp
push ebp
push ebp
push eax
push ecx
push ebp
push edx
mov dword [esi - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
or eax, eax
je 0x40db60
mov eax, dword [esi - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebp
je 0x40dbc5
push eax
call ebx
mov dword [esi - 0x210], ebp
mov eax, dword [esi - 0x218]
push eax
mov dword [esi - 0x20c], ebp
mov ecx, edi
call fcn.0040ceb0
mov edi, eax
mov eax, dword [esi - 0x210]
cmp eax, ebp
je 0x40dbe8
push eax
call ebx
pop ebx
mov ecx, dword [esi - 4]
mov eax, edi
xor ecx, esi
pop ebp
pop edi
call fcn.0041b771
mov esp, esi
pop esi
ret 4
Function at 0x4101f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fde6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43dfc0]
xor eax, ebp
xor edx, edx
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 edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
mov dword [ebp - 0x420], esi
jne 0x41026d
call fcn.0040cce0
mov edi, eax
jmp 0x410352
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x410286
call fcn.0040cce0
jmp 0x410349
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x424], ebx
jne 0x4102a4
call fcn.0040cce0
jmp 0x410349
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4102c5
mov edi, 0x8007000e
jmp 0x41034b
lea ecx, [ebp - 0x418]
push eax
mov byte [ebp - 4], 2
call fcn.0040e800
mov dword [ebp - 4], 1
jmp 0x4102fd
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x41030e
mov edi, 0x8007000e
jmp 0x41034b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x410327
call fcn.0040cce0
jmp 0x410349
lea ecx, [ebp - 0x42c]
mov edx, dword [ebp - 0x418]
xor ebx, ebx
mov word [edx + eax*2], bx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x418]
push eax
push ebx
call fcn.0040fc50
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x410370
lea ecx, [ebp - 0x418]
call fcn.0040d820
jmp 0x410370
mov eax, edi
mov ebx, dword [ebp - 0xc]
mov dword fs:[0], ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
pop ebx
pop edi
pop esi
pop ebx
call fcn.0041b771
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410cf0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42feb6
mov eax, dword fs:[0]
push eax
add esp, 0xffffff0c
mov eax, dword [0x43dfc0]
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, dword [ebp + 8]
push 1
lea ecx, [ebp - 0x100]
call fcn.00406150
mov dword [eax + 0x60], 0x64
sub eax, 0xfffffff0
push str.ClientMonitor::startMonitor___session_0x
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00404170
add esp, 8
cmp eax, ebx
jne 0x410d53
xor edi, edi
jmp 0x410d5a
mov edi, dword [eax]
mov edi, dword [edi + 4]
add edi, eax
mov ecx, eax
mov edx, dword [edi + 0x14]
and edx, 0xfffff9ff
or edx, 0x800
mov dword [edi + 0x14], edx
push esi
call fcn.0040ff10
cmp eax, ebx
jne 0x410d7c
xor ecx, ecx
jmp 0x410d83
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
push eax
and edx, 0xfffff3ff
or edx, 0x200
mov dword [ecx + 0x14], edx
call fcn.00405590
lea ecx, [ebp - 0x98]
add esp, 4
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2b0
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.0041aa80
push 0xc
call fcn.0041bf4f
add esp, 8
mov edi, eax
mov dword [ebp - 0x44], edi
cmp edi, ebx
mov dword [ebp - 4], 1
je 0x410e23
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x64]
push ecx
push ebx
push 0x100000
mov dword [edi], esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [edi + 4], eax
jne 0x410e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_sync_with_client_process
lea ecx, [ebp - 0x40]
call fcn.00407c70
push 0x4397cc
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041b780
mov ebx, edi
push 0
push 4
push ebx
push 0x4108f0
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x410e6f
push ebx
call fcn.0041b401
sub esp, 0xfffffffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ClientMonitor::startMonitor___CreateThread
lea ecx, [ebp - 0x40]
call fcn.00407c70
push 0x4397cc
lea edx, [ebp - 0x40]
push edx
call fcn.0041b780
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x410ec3
push ebx
call fcn.0041b401
mov edx, dword [esi]
mov eax, dword [edx + 8]
sub esp, 0xfffffffc
push esi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [ebp - 0x44]
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], str.ClientMonitor::startMonitor___ResumeThread
call fcn.0041b2c2
push 0x4387d8
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], vtable.std::runtime_error.0
call fcn.0041b780
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.0041b771
mov esp, ebp
pop ebp
ret 4