joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40f554
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x40f554
push 0xffffffffffffffff
push 0x41ef4c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f554
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f500
sub eax, edx
sar eax, 1
push edi
lea edi, [eax + 1]
lea edx, [edi + edi]
push edx
call fcn.00401700
mov esi, eax
add esp, 4
test esi, esi
je 0x40f565
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
test eax, eax
mov eax, esi
je 0x40f567
call fcn.00401770
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004199f6
mov esp, ebp
pop ebp
ret

Function at 0x410450
Capabilities:
Access the windows event log
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0x410440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x41eee4
push 0
mov dword [0x424d00], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x41049f
push 0
push 0
push 0
push 0
push 0
push 0x40000000
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
ret
Function at 0x4104b0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c3de
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x424018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.closing_command_server_n
call dword [sym.imp.MSVCR100.dll_printf]
mov ecx, dword [0x426dec]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 4
call edx
mov eax, dword [0x424d00]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov dword [0x424d00], 0
test byte [0x424c0c], al
jne 0x410537
or dword [0x424c0c], eax
mov dword [ebp - 4], 0
call fcn.0040dbc0
push 0x41cdb0
call fcn.00419b1d
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [0x424c14], 0
je 0x410545
call fcn.0040e520
push 0x41eee4
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x410579
push 0
push 0
push 0
push 0
push 0
push 0x40000001
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416bc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c50a
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x424018]
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
test byte [0x424c0c], 1
mov esi, ecx
jne 0x416c1d
or dword [0x424c0c], 1
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040dbc0
push 0x41cdb0
call fcn.00419b1d
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x416c1f
xor ebx, ebx
cmp byte [0x424c15], 0
je 0x416c46
push 0x4010
push str.JHISVC
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d____s__FN:__08x_n
call fcn.00401000
add esp, 0x10
mov ecx, esi
call fcn.004167b0
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, ebx
je 0x416c62
cmp edi, 0x402
jne 0x416d42
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
mov byte [ebp - 0x48], al
mov eax, esi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
lea edx, [eax + 1]
jmp 0x416c90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416c90
sub eax, edx
mov edi, eax
mov eax, esi
lea esi, [ebp - 0x48]
call fcn.00401f80
mov bl, 2
mov byte [ebp - 4], bl
test byte [0x424cb0], 1
jne 0x416cd3
or dword [0x424cb0], 1
mov byte [ebp - 4], 3
call fcn.00402900
push 0x41ce20
call fcn.00419b1d
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004035c0
cmp dword [ebp - 0x34], 0x10
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov bl, al
jb 0x416cf6
mov edx, dword [ebp - 0x48]
push edx
call edi
add esp, 4
mov esi, 8
test bl, bl
je 0x416d2a
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x416d0a
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416d23
cmp dword [ebp - 0x4c], eax
jne 0x416d2a
mov dword [ebp - 0x4c], 0x104
jmp 0x416d2a
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x416d3f
mov eax, dword [ebp - 0x2c]
push eax
call edi
add esp, 4
mov edi, dword [ebp - 0x4c]
test byte [0x424c0c], 1
jne 0x416d6b
or dword [0x424c0c], 1
mov dword [ebp - 4], 4
call fcn.0040dbc0
push 0x41cdb0
call fcn.00419b1d
add esp, 4
cmp byte [0x424c15], 0
je 0x416d93
push edi
push 0x4011
push str.JHISVC
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__d____s__FN:__08x_RET:_0x_08x_n
call fcn.00401000
add esp, 0x14
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 - 0x10]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
Function at 0x416ea0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x416ef3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x416f54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x416f31
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [edi + 2]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.Intel_R__Dynamic_Application_Loader_Host_Interface_Service
push str.jhi_service
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x416fe1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x416fbd
push str.Install_failed:_service_already_exist._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [esi + 3]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
push eax
push str.Install_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_printf]
push str.JHI_Service_installed_successfully_n
call ebx
add esp, 4
lea edx, [ebp - 0x210]
push edx
push 1
push esi
mov dword [ebp - 0x210], str.Intel_R__Dynamic_Application_Loader_Host_Interface_Service___Allows_applications_to_access_the_local_Intel__R__DAL
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x41703c
call esi
push edi
call esi
push str.Install_error:_Couldnt_change_the_description_n
call ebx
add esp, 4
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop ebx
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004199f6
mov esp, ebp
pop ebp
ret
Function at 0x417060
Capabilities:
Delete service

Disassembly:
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4170ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x417096
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov eax, 2
pop esi
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, 1
pop esi
ret
push edi
push 0x10000
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4170f3
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x417117
cmp eax, 0x424
jne 0x41712d
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x417146
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41712d
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 2
pop esi
ret
call esi
push eax
push str.Uninstall_Service_failed:___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
mov eax, 1
pop esi
ret
push str.JHI_Service_removed_successfully_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
ret
Function at 0x417170
Capabilities:
Start service

Disassembly:
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4171b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4171a3
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov eax, 2
pop esi
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, 1
pop esi
ret
push edi
push 0x20000000
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x417200
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x417228
cmp eax, 0x424
jne 0x41725b
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x417274
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41723e
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 2
pop esi
ret
cmp eax, 0x420
jne 0x41725b
push str.Error:_JHI_service_already_running._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 5
pop esi
ret
call esi
push eax
push str.Start_Service_failed:___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
mov eax, 1
pop esi
ret
push str.JHI_Service_started_successfully_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
ret
Function at 0x4172a0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x417311
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4172ee
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [esi + 2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
push edi
push 0x20000000
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x417369
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x417397
cmp eax, 0x424
jne 0x4173e4
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41740a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x4173ba
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
cmp eax, 0x426
jne 0x4173e4
push str.Error:_JHI_service_has_not_been_started._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
call esi
push eax
push str.Stop_Service_failed:___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004199f6
mov esp, ebp
pop ebp
ret
push str.JHI_Service_terminated_successfully_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004199f6
mov esp, ebp
pop ebp
ret

Function at 0x4199f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424018]
jne 0x419a00
repz ret
jmp fcn.00419ef8
Function at 0xeea888
Capabilities:
Encode data using xor

Disassembly:
jmp 0xeea892
pushal
call 0xeea898
pop ebp
sub ebp, 0x10
sub ebp, 0xaea888
jmp 0xeea8ae
mov eax, 0xaea888
add eax, ebp
add eax, 0x4c
mov ecx, 0x5be
mov edx, 0x3033541c
xor byte [eax], dl
inc eax
dec ecx
jne 0xeea8c5
jmp 0xeea8d8
xchg edi, eax
rcl dword [edi + 0x1c1c2095]
sbb al, 0x9d
fucom st(4)
sbb al, 0x1c
sbb al, 0x1f
shl dword [edx + ebx - 0x59e3e3e4], 1
xor al, 0x1c
sbb al, 0x1c
jmp 0xeea8f2
Function at 0x4025e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4025f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402634
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402630
lea ebx, [ebx]
cmp esi, eax
jae 0x402634
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402620
cmp esi, eax
jb 0x40263a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403690
Capabilities:
Get common file path

Disassembly:
mov eax, dword [ecx + 0x78]
cmp dword [ecx + 0x68], eax
push ebp
jle 0x4036af
test eax, eax
jl 0x4036aa
cmp eax, dword [ecx + 0x68]
jge 0x4036aa
mov ecx, dword [ecx + 0x64]
mov ebp, dword [ecx + eax*4]
jmp 0x4036b1
jmp fcn.00411116
xor ebp, ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push edi
push 0
push 0
call ebx
mov esi, eax
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ab0b
add esp, 4
mov edi, eax
push edi
push esi
call ebx
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
push edi
push str.Directories
mov ecx, ebp
call edx
push edi
mov esi, eax
call fcn.0040ab06
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x403e90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor ecx, ecx
mov edi, 0x104
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ab0b
add esp, 4
mov esi, eax
xor ebp, ebp
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
push ebp
push edx
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
je 0x403f39
cmp edi, dword [esp + 0x14]
jae 0x403f35
push esi
call fcn.0040ab06
mov edi, dword [esp + 0x18]
add edi, 1
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ab0b
mov edx, dword [esp + 0x30]
add esp, 8
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
push ebp
push edx
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x403f47
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.00414623
add ebp, 1
cmp ebx, 0x103
mov word [esi], 0
jne 0x403ebb
push esi
call fcn.0040ab06
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 8]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x403f80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
xor ecx, ecx
mov edi, 0x104
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ab0b
add esp, 4
mov esi, eax
xor ebp, ebp
jmp 0x403fb0
mov edx, dword [esp + 0x1c]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push ebp
push edx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
je 0x40402e
cmp edi, dword [esp + 0x10]
jae 0x40402a
push esi
call fcn.0040ab06
mov edi, dword [esp + 0x14]
add edi, 1
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ab0b
mov edx, dword [esp + 0x24]
add esp, 8
push 0
push 0
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push ebp
push edx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x40403c
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.00414623
add ebp, 1
cmp ebx, 0x103
mov word [esi], 0
jne 0x403fb0
push esi
call fcn.0040ab06
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 8]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x404070
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x42a988
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x436b90]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40411d
lea ecx, [esp + 0xc]
call fcn.0041433a
lea ecx, [esp + 0xc]
push ecx
push edi
mov dword [esp + 0x30], esi
call fcn.00403e90
add esp, 8
test eax, eax
jne 0x4040db
lea edx, [esp + 0xc]
push edx
push edi
call fcn.00403f80
add esp, 8
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x14], 0
push ebx
push edi
jle 0x4040f7
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x4040fd
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004143d8
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041450c
xor eax, eax
test esi, esi
sete al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
Function at 0x404ae0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42ae68
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x436b90]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp]
mov ecx, dword [eax + 0x1c]
cmp dword [eax + 0xc], ecx
jle 0x404b29
test ecx, ecx
jl 0x404b24
cmp ecx, dword [eax + 0xc]
jge 0x404b24
mov eax, dword [eax + 8]
mov edi, dword [eax + ecx*4]
jmp 0x404b2b
call fcn.00411116
xor edi, edi
call fcn.004111f0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404b45
push 0x80004005
call fcn.00401160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
push 0
push eax
mov ecx, edi
call edx
test eax, eax
je 0x404bba
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x2c], 0
je 0x404b98
mov eax, dword [ebp + 4]
test eax, eax
je 0x404b88
mov eax, dword [eax + 0x20]
mov esi, eax
call fcn.00405890
mov esi, dword [esp + 0x2c]
call fcn.00405890
mov eax, dword [edi]
mov edx, dword [eax + 0x60]
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x24]
push eax
call ebx
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
test eax, eax
jne 0x404b77
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404be2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc