joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fe68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43efc0]
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, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40b49c
cmp byte [edi + 0x4a], bl
je 0x40b49c
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x40b490
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40b3f0
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40b408
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x40b431
dec eax
je 0x40b435
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40b48b
jmp 0x40b497
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40b445
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40b46e
cmp ebx, 0x10
jae 0x40b454
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041dbb4
add esp, 0x10
cmp esi, eax
jne 0x40b488
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x40b494
test esi, esi
jne 0x40b3fc
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004035e0
jmp 0x40b3f6
lea ecx, [ebp - 0x2c]
call fcn.00403470
xor al, al
jmp 0x40b49e
lea ecx, [ebp - 0x2c]
call fcn.00403470
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 - 0x10]
xor ecx, ebp
call fcn.0041bd31
mov esp, ebp
pop ebp
ret

Function at 0x40b900
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43efc0]
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.0041c590
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 0x40b964
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bd31
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40b96d
lea eax, [esi + 0x10]
jmp 0x40b96f
xor eax, eax
push str.IntelCPHS.log
push str.Logs
push 0x432ad8
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.0040a680
add esp, 8
push eax
call fcn.0040a680
add esp, 8
push eax
call fcn.0040a680
add esp, 8
push eax
call fcn.0040a680
add esp, 8
push 0
mov ecx, eax
call fcn.00404bb0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0041bd31
mov esp, ebp
pop ebp
ret
Function at 0x40db50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43efc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.0040d0a0
mov ebx, eax
cmp ebx, esi
je 0x40dbca
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x40dbb5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bd31
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40dc4c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040db50
mov ebx, eax
cmp ebx, esi
jne 0x40dba4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40dc00
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x40dc65
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.0040cf50
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x40dc88
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bd31
mov esp, ebp
pop ebp
ret 4
Function at 0x410290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4303a6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43efc0]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
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
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x41030d
call fcn.0040cd80
mov edi, eax
jmp 0x4103f2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x410326
call fcn.0040cd80
jmp 0x4103e9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x410344
call fcn.0040cd80
jmp 0x4103e9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x410365
mov edi, 0x8007000e
jmp 0x4103eb
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040e880
mov dword [ebp - 4], 1
jmp 0x41039d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x4103ae
mov edi, 0x8007000e
jmp 0x4103eb
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4103c7
call fcn.0040cd80
jmp 0x4103e9
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0040fcf0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x410410
lea ecx, [ebp - 0x418]
call fcn.0040d8c0
jmp 0x410410
mov eax, edi
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.0041bd31
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410d90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430476
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x43efc0]
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, dword [ebp + 8]
push 1
lea ecx, [ebp - 0x100]
call fcn.004061b0
mov dword [eax + 0x60], 0x64
add eax, 0x10
push str.ClientMonitor::startMonitor___session_0x
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00404180
add esp, 8
cmp eax, ebx
jne 0x410df3
xor ecx, ecx
jmp 0x410dfa
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
and edx, 0xfffff9ff
or edx, 0x800
mov dword [ecx + 0x14], edx
push edi
mov ecx, eax
call fcn.0040ffb0
cmp eax, ebx
jne 0x410e1c
xor ecx, ecx
jmp 0x410e23
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
and edx, 0xfffff3ff
or edx, 0x200
push eax
mov dword [ecx + 0x14], edx
call fcn.004055a0
add esp, 4
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c330
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.0041b040
push 0xc
call fcn.0041c50f
mov esi, eax
add esp, 8
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
cmp esi, ebx
je 0x410ec3
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x64]
push ecx
push ebx
push 0x100000
mov dword [esi], edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x410ec1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_sync_with_client_process
lea ecx, [ebp - 0x40]
call fcn.00407d30
push 0x43a84c
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041bd40
mov ebx, esi
push 0
push 4
push ebx
push 0x410990
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x410f0f
push ebx
call fcn.0041b9c1
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ClientMonitor::startMonitor___CreateThread
lea ecx, [ebp - 0x40]
call fcn.00407d30
push 0x43a84c
lea edx, [ebp - 0x40]
push edx
call fcn.0041bd40
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x410f63
push ebx
call fcn.0041b9c1
mov edx, dword [edi]
mov eax, dword [edx + 8]
add esp, 4
push edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], str.ClientMonitor::startMonitor___ResumeThread
call fcn.0041b882
push 0x439858
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], vtable.std::runtime_error.0
call fcn.0041bd40
push esi
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.0041bd31
mov esp, ebp
pop ebp
ret 4
Function at 0x416510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416582
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x416551
cmp eax, 2
jne 0x41656c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x41657c
test eax, eax
je 0x416577
test al, 1
jne 0x41656c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41657c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x416b80
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x43efc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x416bd9
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x416bca
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x416d14
push 0x104
lea ecx, [ebp - 0x20e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x416c7a
cmp eax, 0x104
je 0x416c7a
mov edx, 0x22
mov word [ebp - 0x210], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [ebp + eax*2 - 0x20e], cx
mov word [ebp + eax*2 - 0x20c], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x416c8d
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.004161e0
add esp, 0xc
test eax, eax
jne 0x416c65
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0xa10]
push 0x400
push ecx
call fcn.00415f70
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [ebp - 0xa10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bd31
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x416d08
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push 0xd80b
call fcn.004161e0
add esp, 0xc
test eax, eax
jne 0x416cf9
push str.Could_not_start_service
lea edx, [ebp - 0xa10]
push 0x400
push edx
call fcn.00415f70
add esp, 0xc
push 0
push edi
lea eax, [ebp - 0xa10]
push eax
jmp 0x416c72
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041bd31
mov esp, ebp
pop ebp
ret
Function at 0x416d30
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041e1c0
mov eax, dword [0x43efc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x416d9b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x416d8a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x416d90
mov edi, dword [ebp - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x416db1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bd31
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x416e0b
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.004161e0
add esp, 0xc
test eax, eax
jne 0x416dfc
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00415f70
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x416f48
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x416e69
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.004161e0
add esp, 0xc
test eax, eax
jne 0x416dfc
push str.Could_not_open_service
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00415f70
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x416f48
lea eax, [ebp - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x416ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x416ee2
cmp eax, 0x425
jne 0x416e9a
cmp dword [ebp - 0x101c], 3
je 0x416ee2
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.004161e0
add esp, 0xc
test eax, eax
jne 0x416ed0
push str.Could_not_stop_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.00415f70
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1024], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1024], 0
jne 0x416d9b
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.004161e0
add esp, 0xc
test eax, eax
jne 0x416f3e
push str.Could_not_delete_service
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.00415f70
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041bd31
mov esp, ebp
pop ebp
ret
Function at 0x417360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x417381
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x416f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4173a8
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4173b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430d00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43efc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [0x440300], edi
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, ebx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b537
xor esi, esi
add esp, 4
cmp eax, esi
je 0x41742e
mov edx, ebx
mov ecx, eax
lea esp, [esp]
dec edx
js 0x417430
mov dword [ecx + 8], esi
mov dword [ecx + 4], esi
add ecx, 0xc
jmp 0x417420
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x417451
mov eax, dword [edi + 0xc]
cmp eax, esi
jne 0x417469
mov byte [0x440350], 1
push 0x80004005
call fcn.0040cb30
lea ecx, [ebx + ebx*2]
add ecx, ecx
add ecx, ecx
push ecx
push esi
push eax
call fcn.0041c590
add esp, 0xc
mov dword [edi + 8], ebx
mov dword [ebp - 0x14], esi
cmp ebx, esi
jle 0x41752a
lea esp, [esp]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], 0
call fcn.0041e503
add esp, 4
test eax, eax
jne 0x4174aa
mov eax, dword [ebp + 8]
push 0
mov dword [ebp + 8], eax
call fcn.0041e4e2
add esp, 4
cmp eax, 0x50
ja case.0x417511.1
movzx ecx, byte [eax + 0x41759c]
jmp dword [ecx*4 + 0x41758c]
mov eax, dword [edi + 0xc]
add eax, esi
push eax
push 0
push eax
push 0x417020
push 0
push 0
call fcn.0041e5ed
mov ecx, dword [edi + 0xc]
mov dword [ecx + esi + 4], eax
mov edx, dword [edi + 0xc]
add esp, 0x18
cmp dword [edx + esi + 4], 0
je 0x41756d
mov eax, dword [ebp + 8]
push eax
call fcn.0041e4e2
add esp, 4
cmp eax, 0x50
ja case.0x417511.1
movzx ecx, byte [eax + 0x417600]
jmp dword [ecx*4 + 0x4175f0]
mov eax, dword [ebp - 0x14]
inc eax
add esi, 0xc
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x417490
cmp byte [0x440350], 0
jne 0x417543
push str.ATL_CREATE_OBJECT
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x44035c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.0040cb30
push 0x80070057
call fcn.0040cb30
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], 0
call fcn.0041e503
add esp, 4
mov byte [0x440350], 1
jmp 0x417543
Function at 0x418410
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.00416d30
test eax, eax
jne 0x418428
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040d0a0
cmp eax, esi
je 0x418471
push eax
call fcn.0040cda0
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x418469
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push str.11AC3232_E7D7_49CD_ABFE_501700100B3A
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0040d0a0
cmp eax, esi
je 0x4184c2
push eax
call fcn.0040cda0
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x4184ae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x4184b9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x44030c]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], 0x434690
mov dword [ebp - 0x1c], str.11AC3232_E7D7_49CD_ABFE_501700100B3A
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.004104f0
mov dword [ebp - 4], eax
cmp edi, esi
je 0x418506
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x418511
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418520
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430d41
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x43efc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 1
push str.O:BAG:BAD:_A__CCDCSW___WD__A__CCDCSW___s_1_15_2_1_S:_ML___NX___LW_
mov dword [ebp - 0x10], ebx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x418679
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x14], eax
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push ebx
push ebx
push ebx
push ebx
mov ebx, dword [ebp + 8]
push str.LaunchPermission
push ebx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x4185fc
push edi
push esi
push 3
push 0
push str.LaunchPermission
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4185fc
push 1
lea ecx, [ebp - 0xc4]
call fcn.004061b0
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_set_sd_in_registry
push eax
mov dword [ebp - 4], 1
call fcn.00404180
push eax
call fcn.004055a0
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c330
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0041b040
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41860a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
lea ecx, [ebp - 0x174]
call fcn.004061b0
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.sd_set
push eax
mov dword [ebp - 4], 2
call fcn.00404180
push eax
call fcn.004055a0
add esp, 0xc
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c330
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041b040
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea ecx, [ebp - 0xc4]
call fcn.004061b0
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_create_sd
push eax
mov dword [ebp - 4], ebx
call fcn.00404180
push eax
call fcn.004055a0
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c330
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0041b040
add esp, 4
jmp 0x41860a