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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f606
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x43dfbc]
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.004103e0
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.004032b0
add esp, 8
cmp eax, ebx
jne 0x410a93
xor ecx, ecx
jmp 0x410a9a
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.0040fb40
cmp eax, ebx
jne 0x410abc
xor ecx, ecx
jmp 0x410ac3
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.0040b100
add esp, 4
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bf50
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.0041a6e6
push 0xc
call fcn.0041b35b
mov esi, eax
add esp, 8
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
cmp esi, ebx
je 0x410b63
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 0x410b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_sync_with_client_process
lea ecx, [ebp - 0x40]
call fcn.004067a0
push 0x43946c
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041abfb
mov ebx, esi
push 0
push 4
push ebx
push 0x410630
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x410baf
push ebx
call fcn.0041abe1
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ClientMonitor::startMonitor___CreateThread
lea ecx, [ebp - 0x40]
call fcn.004067a0
push 0x43946c
lea edx, [ebp - 0x40]
push edx
call fcn.0041abfb
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 0x410c03
push ebx
call fcn.0041abe1
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.0041aaa2
push 0x438560
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], vtable.std::runtime_error.0
call fcn.0041abfb
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.0041abec
mov esp, ebp
pop ebp
ret 4
Function at 0x415c10
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 0x415c82
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x415c51
cmp eax, 2
jne 0x415c6c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x415c7c
test eax, eax
je 0x415c77
test al, 1
jne 0x415c6c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x415c7c
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 0x416280
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x43dfbc]
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 0x4162d9
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4162ca
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 0x416414
push 0x104
lea ecx, [ebp - 0x20e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41637a
cmp eax, 0x104
je 0x41637a
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 0x41638d
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.004158e0
add esp, 0xc
test eax, eax
jne 0x416365
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0xa10]
push 0x400
push ecx
call fcn.004155e0
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.0041abec
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 0x416408
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push 0xd80b
call fcn.004158e0
add esp, 0xc
test eax, eax
jne 0x4163f9
push str.Could_not_start_service
lea edx, [ebp - 0xa10]
push 0x400
push edx
call fcn.004155e0
add esp, 0xc
push 0
push edi
lea eax, [ebp - 0xa10]
push eax
jmp 0x416372
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.0041abec
mov esp, ebp
pop ebp
ret
Function at 0x416430
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041d400
mov eax, dword [0x43dfbc]
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 0x41649b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x41648a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x416490
mov edi, dword [ebp - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x4164b1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041abec
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 0x41650b
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.004158e0
add esp, 0xc
test eax, eax
jne 0x4164fc
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.004155e0
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x416648
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x416569
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.004158e0
add esp, 0xc
test eax, eax
jne 0x4164fc
push str.Could_not_open_service
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.004155e0
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x416648
lea eax, [ebp - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4165e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x4165e2
cmp eax, 0x425
jne 0x41659a
cmp dword [ebp - 0x101c], 3
je 0x4165e2
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.004158e0
add esp, 0xc
test eax, eax
jne 0x4165d0
push str.Could_not_stop_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.004155e0
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 0x41649b
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.004158e0
add esp, 0xc
test eax, eax
jne 0x41663e
push str.Could_not_delete_service
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.004155e0
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.0041abec
mov esp, ebp
pop ebp
ret
Function at 0x416a00
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 0x416a21
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x416670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x416a48
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 0x416a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fe80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43dfbc]
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 [0x43f2e0], 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.0041a66b
xor esi, esi
add esp, 4
cmp eax, esi
je 0x416ace
mov edx, ebx
mov ecx, eax
lea esp, [esp]
dec edx
js 0x416ad0
mov dword [ecx + 8], esi
mov dword [ecx + 4], esi
add ecx, 0xc
jmp 0x416ac0
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x416af1
mov eax, dword [edi + 0xc]
cmp eax, esi
jne 0x416b09
mov byte [0x43f330], 1
push 0x80004005
call fcn.0040c790
lea ecx, [ebx + ebx*2]
add ecx, ecx
add ecx, ecx
push ecx
push esi
push eax
call fcn.0041b3e0
add esp, 0xc
mov dword [edi + 8], ebx
mov dword [ebp - 0x14], esi
cmp ebx, esi
jle 0x416bca
lea esp, [esp]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], 0
call fcn.0041d743
add esp, 4
test eax, eax
jne 0x416b4a
mov eax, dword [ebp + 8]
push 0
mov dword [ebp + 8], eax
call fcn.0041d722
add esp, 4
cmp eax, 0x50
ja case.0x416bb1.1
movzx ecx, byte [eax + 0x416c3c]
jmp dword [ecx*4 + 0x416c2c]
mov eax, dword [edi + 0xc]
add eax, esi
push eax
push 0
push eax
push 0x416720
push 0
push 0
call fcn.0041d82d
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 0x416c0d
mov eax, dword [ebp + 8]
push eax
call fcn.0041d722
add esp, 4
cmp eax, 0x50
ja case.0x416bb1.1
movzx ecx, byte [eax + 0x416ca0]
jmp dword [ecx*4 + 0x416c90]
mov eax, dword [ebp - 0x14]
inc eax
add esi, 0xc
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x416b30
cmp byte [0x43f330], 0
jne 0x416be3
push str.ATL_CREATE_OBJECT
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x43f33c], 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.0040c790
push 0x80070057
call fcn.0040c790
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], 0
call fcn.0041d743
add esp, 4
mov byte [0x43f330], 1
jmp 0x416be3
Function at 0x417b30
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.00416430
test eax, eax
jne 0x417b48
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.0040cc40
cmp eax, esi
je 0x417b91
push eax
call fcn.0040c940
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x417b89
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.0040cc40
cmp eax, esi
je 0x417be2
push eax
call fcn.0040c940
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x417bce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x417bd9
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 [0x43f2ec]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], 0x4334d0
mov dword [ebp - 0x1c], str.11AC3232_E7D7_49CD_ABFE_501700100B3A
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00410080
mov dword [ebp - 4], eax
cmp edi, esi
je 0x417c26
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x417c31
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 0x417c40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fec1
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x43dfbc]
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__0xb___WD_S:_ML__NX___LW_
mov dword [ebp - 0x10], ebx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x417d99
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 0x417d1c
push edi
push esi
push 3
push 0
push str.LaunchPermission
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x417d1c
push 1
lea ecx, [ebp - 0xc4]
call fcn.004103e0
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.004032b0
push eax
call fcn.0040b100
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bf50
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0041a6e6
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x417d2a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
lea ecx, [ebp - 0x174]
call fcn.004103e0
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.sd_set
push eax
mov dword [ebp - 4], 2
call fcn.004032b0
push eax
call fcn.0040b100
add esp, 0xc
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bf50
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041a6e6
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.004103e0
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_create_sd
push eax
mov dword [ebp - 4], ebx
call fcn.004032b0
push eax
call fcn.0040b100
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bf50
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0041a6e6
add esp, 4
jmp 0x417d2a
Function at 0x41abec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43dfbc]
jne 0x41abf6
repz ret
jmp fcn.00420188

Function at 0x42a257
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43dfbc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004207e9
and dword [ebp - 0x14], 0
cmp dword [0x440588], 0
mov dword [ebp - 0x18], eax
jne 0x42a30a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42a3b2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4368cc
push ebx
call edi
test eax, eax
je 0x42a3b2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x440588], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44058c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x440590], eax
call edi
push eax
call esi
mov dword [0x440598], eax
test eax, eax
je 0x42a30a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x440594], eax
mov eax, dword [0x440594]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42a363
cmp dword [0x440598], ecx
je 0x42a363
push eax
call esi
push dword [0x440598]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42a363
test ebx, ebx
je 0x42a363
call edi
test eax, eax
je 0x42a35a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42a35a
test byte [ebp - 8], 1
jne 0x42a363
or dword [ebp + 0x10], 0x200000
jmp 0x42a396
mov eax, dword [0x44058c]
cmp eax, dword [ebp - 0x18]
je 0x42a396
push eax
call esi
test eax, eax
je 0x42a396
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42a396
mov eax, dword [0x440590]
cmp eax, dword [ebp - 0x18]
je 0x42a396
push eax
call esi
test eax, eax
je 0x42a396
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x440588]
call esi
test eax, eax
je 0x42a3b2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42a3b4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041abec
leave
ret
Function at 0x407eab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417400]
jne 0x407eb5
repz ret
jmp fcn.0040dcc7

Function at 0x40accc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004062c0
and dword [ebp - 0x14], 0
cmp dword [0x43a6d0], 0
mov dword [ebp - 0x18], eax
jne 0x40ad7f
push 0x402228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ae27
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40221c
push ebx
call edi
test eax, eax
je 0x40ae27
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40220c
push ebx
mov dword [0x43a6d0], eax
call edi
push eax
call esi
push 0x4021f8
push ebx
mov dword [0x43a6d4], eax
call edi
push eax
call esi
push 0x4021dc
push ebx
mov dword [0x43a6d8], eax
call edi
push eax
call esi
mov dword [0x43a6e0], eax
test eax, eax
je 0x40ad7f
push 0x4021c4
push ebx
call edi
push eax
call esi
mov dword [0x43a6dc], eax
mov eax, dword [0x43a6dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40add8
cmp dword [0x43a6e0], ecx
je 0x40add8
push eax
call esi
push dword [0x43a6e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40add8
test ebx, ebx
je 0x40add8
call edi
test eax, eax
je 0x40adcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40adcf
test byte [ebp - 8], 1
jne 0x40add8
or dword [ebp + 0x10], 0x200000
jmp 0x40ae0b
mov eax, dword [0x43a6d4]
cmp eax, dword [ebp - 0x18]
je 0x40ae0b
push eax
call esi
test eax, eax
je 0x40ae0b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ae0b
mov eax, dword [0x43a6d8]
cmp eax, dword [ebp - 0x18]
je 0x40ae0b
push eax
call esi
test eax, eax
je 0x40ae0b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43a6d0]
call esi
test eax, eax
je 0x40ae27
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ae29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407eab
leave
ret
Function at 0x4147e0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
mov eax, 0x1414
call fcn.0040eba0
cmp dword [0x7ea1bc], 0x37
jne 0x4148b4
push 0x40347c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
lea eax, [esp + 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x818]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40348c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapePosition]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea edx, [esp + 0x418]
push edx
push 0x4034a0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov eax, dword [0x7ea5d0]
mov edx, dword [0x7e9ca0]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1414
ret