joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4134fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433eb0]
jne 0x413504
repz ret
jmp fcn.0041a9e8

Function at 0x423872
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x433eb0]
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.00418b52
and dword [ebp - 0x14], 0
cmp dword [0x436e60], 0
mov dword [ebp - 0x18], eax
jne 0x423925
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4239cd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42edd8
push ebx
call edi
test eax, eax
je 0x4239cd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x436e60], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x436e64], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x436e68], eax
call edi
push eax
call esi
mov dword [0x436e70], eax
test eax, eax
je 0x423925
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x436e6c], eax
mov eax, dword [0x436e6c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42397e
cmp dword [0x436e70], ecx
je 0x42397e
push eax
call esi
push dword [0x436e70]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42397e
test ebx, ebx
je 0x42397e
call edi
test eax, eax
je 0x423975
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x423975
test byte [ebp - 8], 1
jne 0x42397e
or dword [ebp + 0x10], 0x200000
jmp 0x4239b1
mov eax, dword [0x436e64]
cmp eax, dword [ebp - 0x18]
je 0x4239b1
push eax
call esi
test eax, eax
je 0x4239b1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4239b1
mov eax, dword [0x436e68]
cmp eax, dword [ebp - 0x18]
je 0x4239b1
push eax
call esi
test eax, eax
je 0x4239b1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x436e60]
call esi
test eax, eax
je 0x4239cd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4239cf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004134fa
leave
ret
Function at 0x41a620
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x811c9dc5
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
xor esi, esi
lea edx, [ecx + edi]
cmp ecx, edx
cmova edi, ebx
test edi, edi
je 0x41a654
movzx edx, byte [ecx]
lea ecx, [ecx + 1]
xor edx, eax
inc esi
imul eax, edx, 0x1000193
cmp esi, edi
jne 0x41a641
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41a660
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [ecx + 0x14], 0x10
mov edi, dword [ecx + 0x10]
jb 0x41a674
mov ecx, dword [ecx]
lea edx, [ecx + edi]
xor ebx, ebx
xor esi, esi
mov eax, 0x811c9dc5
cmp ecx, edx
cmova edi, ebx
test edi, edi
je 0x41a6a3
nop dword [eax]
movzx edx, byte [ecx]
lea ecx, [ecx + 1]
xor edx, eax
inc esi
imul eax, edx, 0x1000193
cmp esi, edi
jne 0x41a690
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x41bec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x53e754]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xc8]
cmp eax, 5
je 0x41c003
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov eax, dword [ecx + 8]
test eax, eax
jne 0x41bf05
mov eax, dword [ecx + 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 4
push dword [esp + 0x18]
lea edx, [esp + 0x18]
mov ecx, str.IPC::Read
call fcn.004601b5
add esp, 8
cmp dword [esp + 0x14], 4
jne 0x41bfe7
push 8
call fcn.004a68b3
mov esi, eax
xorps xmm0, xmm0
mov dword [esp + 0x1c], esi
add esp, 4
movq qword [esi], xmm0
mov ebx, dword [esp + 0x10]
mov dword [esi], 0
mov dword [esi + 4], 0
test ebx, ebx
je 0x41bf75
push ebx
push 1
call fcn.004ce16d
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
mov dword [esi + 4], ebx
mov ecx, dword [edi + 0x20]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
mov eax, dword [ecx + 8]
test eax, eax
jne 0x41bf97
mov eax, dword [ecx + 0xc]
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x14]
mov ecx, str.IPC::Read
push ebx
push dword [esp + 0x1c]
call fcn.004601b5
mov eax, dword [esp + 0x20]
add esp, 8
cmp eax, dword [esp + 0x10]
je 0x41c017
mov eax, dword [esi]
test eax, eax
je 0x41bfdc
push eax
call fcn.004c6fff
add esp, 4
mov dword [esi], 0
push 8
push esi
call fcn.004a68a5
add esp, 8
mov ecx, str.Null_buffer_received_over_IPC__disconnect_error_._Aborting_listen_loop.
call fcn.0041c7c0
mov ecx, edi
call fcn.0041be10
mov ecx, dword [edi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 8]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004a6894
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
cmp edx, 4
je 0x41c03d
mov ecx, str.Invalid_data_received__size__d
call fcn.0041c8b0
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a6894
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, edi
movzx eax, byte [eax]
push eax
call fcn.0041c2a0
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x41c029
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x41c029
mov ecx, str.IPC_pipe_disconnect_detected_
call fcn.00413a20
jmp 0x41bff1
Function at 0x422ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0381
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x53e754]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x20], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp edi, 2
jl 0x423058
mov ecx, dword [esi + 8]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jbe 0x422fa9
cmp edi, 0xaaaaaaa
ja 0x423083
push edi
mov ecx, esi
call fcn.00423a90
mov edi, 1
cmp dword [ebp - 0x18], edi
jle 0x423058
nop word [eax + eax]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov edx, dword [eax + edi*4]
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x24], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422fe2
sub eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
sar eax, 1
push eax
push edx
call fcn.004225a0
mov dword [ebp - 4], 1
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x423036
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
jmp 0x423042
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov ecx, esi
call fcn.00423ef0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00419480
inc edi
cmp edi, dword [ebp - 0x18]
jl 0x422fc0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a6894
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00414680
int3
Function at 0x42e8b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f171c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc
push esi
mov eax, dword [0x53e754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
movups xmm0, xmmword [ebx + 0x10]
mov dword [esi], vtable.spdlog::pattern_formatter.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
movups xmmword [esi + 4], xmm0
mov byte [ebx + 0x10], 0
movq xmm0, qword [ebx + 0x20]
movq qword [esi + 0x14], xmm0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0xf
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
push ecx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0042eaf0
mov edx, dword [ebx + 0x24]
cmp edx, 0x10
jb 0x42e99d
mov ecx, dword [ebx + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42e993
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e9b4
push edx
push ecx
call fcn.004a68a5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20
call fcn.004c6faf
int3
Function at 0x431d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1d10
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x53e754]
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
mov esi, dword [ebp + 8]
call fcn.0048f872
cmp edx, dword [edi + 0x74]
jg 0x431d59
jl 0x431d51
cmp eax, dword [edi + 0x70]
jae 0x431d59
lea ebx, [edi + 0x84]
jmp 0x431d67
lea ebx, [edi + 0x84]
mov ecx, edi
push ebx
call fcn.00431bc0
mov eax, dword [esi + 0x224]
push dword [edi + 0x80]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.004cc064
add esp, 0x10
cmp eax, esi
jne 0x431da6
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.004a6894
mov esp, ebp
pop ebp
ret 4
mov edx, ebx
lea ecx, [ebp - 0x4c]
call fcn.0042d020
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0
push str.Failed_writing_to_file
push eax
call fcn.00435110
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 1
call fcn.004cd88b
lea ecx, [ebp - 0x34]
push dword [eax]
push esi
call fcn.0042ce50
push 0x53bbb8
lea eax, [ebp - 0x34]
push eax
call fcn.004bdff0
int3
Function at 0x436c70
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f246a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x53e754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
sub esp, 0x18
mov ecx, esp
push dword [ebp + 8]
call fcn.0041a4d0
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00436f40
mov dword [ebp - 4], 0
push 0x1f0
mov dword [esi], vtable.spdlog::async_logger.0
call fcn.004a68b3
mov dword [ebp + 0x10], eax
sub esp, 0x24
mov edi, esp
mov dword [ebp + 0xc], esp
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x436cf8
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
sub esp, 0x28
mov edi, esp
mov dword [ebp + 0x24], esp
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x436d20
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
sub esp, 0x28
mov edi, esp
mov dword [ebp + 0x1c], esp
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x436d45
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x436d65
lock inc dword [eax + 4]
mov eax, dword [esi + 0x2c]
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 4], eax
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
call fcn.0041a4d0
push dword [ebp + 0x20]
lea eax, [esi + 0x20]
mov byte [ebp - 4], 9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
sub esp, 0xc
mov ecx, esp
push eax
call fcn.00435880
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00430040
mov dword [esi + 0x78], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20

Function at 0x439dd0
Capabilities:
Create directory

Disassembly:
push ebx
push edi
mov ebx, ecx
push 0x5c
push ebx
call fcn.004bdd47
push 0x2f
push ebx
mov edi, eax
call fcn.004bdd47
add esp, 0x10
cmp eax, edi
cmova edi, eax
test edi, edi
je 0x439e0f
push esi
movzx esi, word [edi]
xor eax, eax
mov ecx, ebx
mov word [edi], ax
call fcn.00439dd0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [edi], si
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x439e20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2980
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x53e754]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x439e56
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x439eb4
lea ecx, [ebp - 0x40]
call fcn.0043a4c0
mov edi, eax
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00432fe0
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x439e88
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x439e90
mov eax, dword [eax]
push edi
mov edx, eax
mov ecx, str.Couldnt_delete_file__file:__s__lastError:__s_
call fcn.00441580
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00419480
lea ecx, [ebp - 0x40]
call fcn.00419480
xor al, al
jmp 0x439eb6
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6894
mov esp, ebp
pop ebp
ret

Function at 0x439ee0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.004ce4c4
mov ebx, eax
push 0x5c
push ebx
call fcn.004bdd47
push 0x2f
push ebx
mov edi, eax
call fcn.004bdd47
add esp, 0x14
cmp eax, edi
cmova edi, eax
test edi, edi
je 0x439f2e
push esi
movzx esi, word [edi]
xor eax, eax
mov ecx, ebx
mov word [edi], ax
call fcn.00439dd0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [edi], si
pop esi
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
call fcn.004c6fff
add esp, 4
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43a300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.004a7ae0
mov eax, dword [0x53e754]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
mov word [ebp - 0x2008], ax
lea eax, [ebp - 0x2008]
push eax
push 0
push 0
push 0x1a
mov dword [ebp - 0x200c], esi
push 0
mov dword [ebp - 0x200c], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43a368
lea ecx, [ebp - 0x2008]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a351
sub ecx, edx
sar ecx, 1
cmp ecx, 0xf00
jbe 0x43a37e
mov eax, dword [0x51dd04]
mov dword [ebp - 0x2008], eax
mov eax, dword [0x51dd08]
mov dword [ebp - 0x2004], eax
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x2008]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a3a0
sub ecx, edx
lea eax, [ebp - 0x2008]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004225a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a6894
mov esp, ebp
pop ebp
ret
Function at 0x43a3d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.004a7ae0
mov eax, dword [0x53e754]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x2004], ax
mov esi, ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], esi
push eax
push 0xf00
mov dword [ebp - 0x2008], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp - 0x2004]
test eax, eax
mov edx, 0x2e
lea eax, [ebp - 0x2004]
cmove ecx, edx
lea edx, [eax + 2]
mov dword [ebp - 0x2004], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43a430
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x2006], 0x5c
je 0x43a468
push edi
lea edi, [ebp - 0x2004]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x43a454
mov eax, dword [0x51dc50]
mov dword [edi], eax
pop edi
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x2004]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a484
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004225a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a6894
mov esp, ebp
pop ebp
ret
Function at 0x43a630
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x53e754]
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 dword [ebp - 0x48c], edx
mov ebx, ecx
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x254]
push 0x228
push 0
push eax
mov dword [ebp - 0x488], esi
call fcn.004beb60
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x43a6e5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.0043a4c0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x43a6cc
mov eax, dword [eax]
mov edx, eax
mov ecx, str.CreateToolhelp32Snapshot_failed__error:__s_
call fcn.00423cb0
lea ecx, [ebp - 0x28]
call fcn.00419480
jmp 0x43a777
mov ecx, 0x8b
lea esi, [ebp - 0x258]
lea edi, [ebp - 0x484]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x43a7b4
mov eax, dword [ecx]
lea edx, [ebp - 0x484]
push edx
mov eax, dword [eax + 8]
call eax
test al, al
je 0x43a750
mov ecx, dword [ebx + 4]
cmp dword [ebx + 8], ecx
je 0x43a72b
mov eax, dword [ebp - 0x250]
mov dword [ecx], eax
add dword [ebx + 4], 4
jmp 0x43a73a
lea eax, [ebp - 0x250]
push eax
push ecx
mov ecx, ebx
call fcn.0041cab0
mov ecx, dword [ebp - 0x48c]
test ecx, ecx
je 0x43a750
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
cmp eax, ecx
jae 0x43a76b
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x43a6e5
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x43a796
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor al, al
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.004a6894
mov esp, ebp
pop ebp
ret
call fcn.0048fad0
int3
Function at 0x43a7c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2af8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x53e754]
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 ebx, ecx
mov edx, 0x53f598
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x50]
call fcn.00432330
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [eax]
push str.Terminating_process_id__id:__d_
push 2
call fcn.0041d130
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x43a845
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x43a845
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x43a845
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push ebx
push 0
push 1
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x43a890
lea ecx, [ebp - 0x2c]
call fcn.0043a4c0
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x43a874
mov eax, dword [eax]
push eax
mov edx, ebx
mov ecx, str.Failed_to_open_process_for_termination__id:__d__error:__s_
call fcn.004417a0
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00419480
xor al, al
jmp 0x43a8de
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
test esi, esi
push edi
setne byte [ebp - 0x45]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x43a8db
lea ecx, [ebp - 0x44]
call fcn.0043a4c0
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x43a8c3
mov eax, dword [eax]
push eax
mov edx, ebx
mov ecx, str.Failed_to_terminate_process__id:__d__error:__s_
call fcn.004417a0
add esp, 4
lea ecx, [ebp - 0x44]
call fcn.00419480
mov al, byte [ebp - 0x45]
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.004a6894
mov esp, ebp
pop ebp
ret