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

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x449748]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x449d30]
je 0x42c85e
inc eax
cmp eax, 0x13
jb 0x42c84f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x449d30]
jne 0x42c984
mov eax, dword [0x44c38c]
cmp eax, 1
je 0x42c95c
cmp eax, edx
jne 0x42c88e
cmp dword [0x449744], 1
je 0x42c95c
cmp ecx, 0xfc
je 0x42c984
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42c8c4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00426480
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00426610
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42c8f8
mov eax, edi
push eax
call fcn.00426610
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43b290
push edi
call fcn.00427d90
add esp, 0x10
push edi
call fcn.00426610
push dword [esi + 0x449d34]
mov ebx, eax
call fcn.00426610
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042ce30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00426480
push edi
push ebx
call fcn.00426490
push 0x43b270
push ebx
call fcn.00426490
push dword [esi + 0x449d34]
push ebx
call fcn.00426490
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042ec2c
add esp, 0x2c
jmp 0x42c984
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x449d34]
push dword [esi]
call fcn.00426610
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00428306
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x42d4ed
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x42d51b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x42d522
cmp ebx, dword [eax + 4]
jae 0x42d522
xor eax, eax
jmp 0x42d712
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42d533
xor eax, eax
inc eax
jmp 0x42d711
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42d549
cmp ecx, edx
jae 0x42d68e
cmp dword [eax + 4], 0
je 0x42d552
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42d53a
cmp dword [ebp + 8], 0
je 0x42d574
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42d68e
cmp eax, esi
jae 0x42d68e
mov eax, dword [0x44c630]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42d599
cmp dword [esi*4 + 0x44c638], edi
je 0x42d692
inc esi
cmp esi, eax
jl 0x42d587
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42d70e
cmp dword [ebp - 8], 0x1000000
jne 0x42d70e
test byte [ebp - 0xc], 0xcc
je 0x42d617
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42d70e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42d70e
cmp word [eax + 0x18], 0x10b
jne 0x42d70e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42d70e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42d617
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42d617
test byte [ecx + 0x27], 0x80
jne 0x42d68e
push 1
push 0x44c678
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42d52b
mov ecx, dword [0x44c630]
test ecx, ecx
mov edx, ecx
jle 0x42d64b
lea eax, [ecx*4 + 0x44c634]
cmp dword [eax], edi
je 0x42d64b
dec edx
sub eax, 4
test edx, edx
jg 0x42d63f
test edx, edx
jne 0x42d67c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42d658
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42d670
lea eax, [edx*4 + 0x44c638]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42d65e
cmp ecx, 0x10
jge 0x42d67c
inc ecx
mov dword [0x44c630], ecx
push 0
push 0x44c678
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42d52b
xor eax, eax
jmp 0x42d711
test esi, esi
jle 0x42d52b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x44c678
call ebx
test eax, eax
jne 0x42d52b
cmp dword [esi*4 + 0x44c638], edi
je 0x42d6e8
mov eax, dword [0x44c630]
lea esi, [eax - 1]
test esi, esi
jl 0x42d6d6
cmp dword [esi*4 + 0x44c638], edi
je 0x42d6d2
dec esi
jns 0x42d6c6
test esi, esi
jge 0x42d6e6
cmp eax, 0x10
jge 0x42d6e1
inc eax
mov dword [0x44c630], eax
lea esi, [eax - 1]
jmp 0x42d6e8
je 0x42d700
xor ecx, ecx
test esi, esi
jl 0x42d700
lea eax, [ecx*4 + 0x44c638]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42d6ee
push 0
push 0x44c678
call ebx
jmp 0x42d52b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d86d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042ce30
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42d908
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44c33c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42d908
cmp eax, 1
je 0x42d929
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42d908
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42d8d5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42d904
xor eax, eax
inc eax
jmp 0x42d948
cmp edi, eax
jae 0x42d90c
xor eax, eax
jmp 0x42d948
cmp eax, esi
jae 0x42d913
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44c33c]
jmp 0x42d92c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ec2c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44c6fc], ebx
push esi
push edi
jne 0x42ecac
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42ece7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43b5f4
push edi
call esi
test eax, eax
mov dword [0x44c6fc], eax
je 0x42ece7
push str.GetActiveWindow
push edi
call esi
push 0x43b5d0
push edi
mov dword [0x44c700], eax
call esi
cmp dword [0x44c33c], 2
mov dword [0x44c704], eax
jne 0x42ecac
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44c70c], eax
je 0x42ecac
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44c708], eax
mov eax, dword [0x44c708]
test eax, eax
je 0x42ecf1
call eax
test eax, eax
je 0x42ecd8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44c70c]
test eax, eax
je 0x42ecd8
test byte [ebp - 8], 1
jne 0x42ecf1
cmp dword [0x44c348], 4
jb 0x42eceb
or byte [ebp + 0x12], 0x20
jmp 0x42ed10
xor eax, eax
jmp 0x42ed20
or byte [ebp + 0x12], 4
jmp 0x42ed10
mov eax, dword [0x44c700]
test eax, eax
je 0x42ed10
call eax
mov ebx, eax
test ebx, ebx
je 0x42ed10
mov eax, dword [0x44c704]
test eax, eax
je 0x42ed10
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44c6fc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f037
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042ce30
mov eax, dword [0x449748]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0042b747
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x42f16a
push 2
push esi
push dword [ebp + 8]
call fcn.0042b747
add esp, 0xc
cmp eax, ebx
je 0x42f16a
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x42f10a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00426360
push 0x8000
push dword [ebp + 8]
call fcn.0042f2d1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x42f0c0
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0042b21c
add esp, 0xc
cmp eax, 0xffffffff
je 0x42f0e0
sub edi, eax
test edi, edi
jg 0x42f0b8
jmp 0x42f0f8
call fcn.0042b07e
cmp dword [eax], 5
jne 0x42f0f5
call fcn.0042b075
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0042f2d1
pop ecx
pop ecx
jmp 0x42f152
jge 0x42f152
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042b747
push dword [ebp + 8]
call fcn.0042e4bf
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x42f152
call fcn.0042b075
mov dword [eax], 0xd
call fcn.0042b07e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0042b747
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42f16c
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00428306
leave
ret
Function at 0x122b6
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x704350
push 0x104
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push dword [ebp + 8]
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call edi
push 0x40
pop ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x50], 0x18
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
call edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
push esi
push esi
push 0x20
push 1
push 1
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], eax
add ebx, 0x40
push ebx
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x80000000
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x68], 0x18
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
call edi
test eax, eax
jge 0x1236a
push 0x704350
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 8
push esi
push esi
push 0x20
push 5
push 1
push ebx
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x40000000
lea eax, [ebp - 0x10]
push eax
call edi
cmp eax, esi
jge 0x123b3
call dword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
test al, al
jne 0x1239e
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
or esi, 0xffffffff
push 0x704350
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
jmp 0x12363
push esi
push esi
push 0x104
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, esi
jl 0x123f3
push esi
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push dword [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0xc], ecx
cmp eax, esi
jge 0x123b3
call dword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
test al, al
jne 0x1240d
push dword [ebp - 8]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
push dword [ebp - 0x10]
call esi
mov esi, dword [ebp - 0xc]
jmp 0x123a1
Function at 0x12418
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ProbeForRead]
push edi
push 0x1000
push 0x40
push ebx
call esi
mov edi, dword [ebx + 0x3c]
push 4
push 0xf8
add edi, ebx
push edi
call esi
mov eax, dword [edi + 0x50]
mov esi, dword [edi + 0x78]
mov edi, dword [edi + 0x7c]
add esi, ebx
cmp esi, ebx
lea edx, [eax + ebx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
lea ecx, [edi + esi]
mov dword [ebp - 0x18], edx
jbe 0x12565
cmp ecx, esi
jbe 0x12565
cmp edx, ecx
jb 0x12565
push 1
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x24]
and dword [ebp - 0x10], 0
add eax, ebx
mov dword [ebp - 8], edx
lea edx, [eax + edx*4]
mov dword [ebp - 0x14], edx
mov edx, dword [esi + 0x14]
add edi, ebx
add ecx, ebx
cmp eax, ebx
lea edx, [edi + edx*4]
mov dword [ebp - 0xc], edx
jbe 0x12565
cmp dword [ebp - 0x14], eax
jbe 0x12565
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [ebp - 0x14]
jb 0x12565
cmp ecx, dword [ebp + 8]
jbe 0x12565
mov edx, dword [ebp - 8]
lea edx, [ecx + edx*2]
cmp edx, ecx
jbe 0x12565
cmp ebx, edx
jb 0x12565
cmp edi, dword [ebp + 8]
jbe 0x12565
cmp dword [ebp - 0xc], edi
jbe 0x12565
cmp ebx, dword [ebp - 0xc]
jb 0x12565
mov edx, dword [ebp - 8]
test edx, edx
jle 0x12565
mov ebx, dword [ebp - 0x10]
add edx, ebx
mov ebx, dword [ebp + 0xc]
sar edx, 1
mov dword [ebp - 0x14], edx
mov edx, dword [eax + edx*4]
add edx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov ebx, dword [ebp - 0x18]
cmp dl, byte [ebx]
jne 0x12546
test dl, dl
je 0x12542
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + 1]
cmp dl, byte [ebx + 1]
mov byte [ebp - 1], dl
jne 0x12546
mov edx, dword [ebp - 0xc]
inc edx
inc edx
inc ebx
inc ebx
cmp byte [ebp - 1], 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], ebx
jne 0x12514
xor edx, edx
jmp 0x1254b
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x1256e
mov edx, dword [ebp - 0x14]
jge 0x1255a
inc edx
mov dword [ebp - 0x10], edx
jmp 0x1255d
mov dword [ebp - 8], edx
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x10], edx
jl 0x124fb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
cmp dword [esi + 0x14], eax
jle 0x12565
mov edi, dword [edi + eax*4]
add edi, dword [ebp + 8]
mov eax, edi
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x1c]
jae 0x12565
mov eax, edi
sub eax, esi
cmp dword [ebp - 0x20], eax
ja 0x12565
mov eax, edi
jmp 0x12567
Function at 0x1259c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], 0x10000
xor ebx, ebx
push edi
cmp esi, dword [ebp - 4]
jae 0x125c4
mov esi, dword [ebp - 4]
push esi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
test edi, edi
mov dword [ebp - 8], edi
jge 0x125e4
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp edi, 0xc0000004
je 0x125b1
test edi, edi
jl 0x12649
mov edi, dword [ebx]
lea esi, [ebx + 4]
mov dword [ebp - 8], 0xc0000135
jmp 0x12637
movzx eax, word [esi + 0x14]
dec edi
sub eax, 0
je 0x1261c
dec eax
je 0x12615
movzx eax, word [esi + 0x1a]
lea eax, [eax + esi + 0x1c]
jmp 0x12621
mov eax, 0x14e56
jmp 0x12621
mov eax, 0x14e48
push dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x1263d
add esi, 0x11c
test edi, edi
jne 0x125fe
jmp 0x12649
mov edi, dword [ebp + 0xc]
and dword [ebp - 8], 0
push 0x47
pop ecx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
pop edi
je 0x12657
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 8

Function at 0x12a58
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, 0x400
push esi
push 1
call edi
push esi
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 4], eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push esi
push 1
call edi
push esi
push ebx
push eax
mov dword [ebp - 0xc], eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push esi
push 1
call edi
push esi
push ebx
push eax
mov dword [ebp - 8], eax
call sub.ntoskrnl.exe_memset
mov edx, dword [ebp - 4]
add esp, 0xc
mov eax, 0x14f74
push 2
sub edx, eax
pop edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, edi
cmp cx, bx
jne 0x12ab6
push dword [ebp - 4]
push ebx
call dword [sym.imp.ntoskrnl.exe_RtlCreateRegistryKey]
push esi
push ebx
push dword [ebp - 4]
call sub.ntoskrnl.exe_memset
mov edx, dword [ebp - 0xc]
mov eax, 0x14f4a
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, edi
cmp cx, bx
jne 0x12ae5
mov edx, dword [ebp - 8]
mov eax, 0x14f02
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, edi
cmp cx, bx
jne 0x12afd
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x12b11
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 8]
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push ebx
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push ebx
push dword [ebp - 4]
mov edi, eax
call esi
push ebx
push dword [ebp - 0xc]
call esi
push ebx
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x12b5c
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 0xf003f
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x14], 0x40
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x12bb1
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
leave
ret 4
Function at 0x1662f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1203c]
test eax, eax
mov ecx, 0xbb40e64e
je 0x1661c
cmp eax, ecx
jne 0x16636
mov eax, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, dword [eax]
xor eax, 0x1203c
mov dword [0x1203c], eax
jne 0x16636
mov eax, ecx
mov dword [0x1203c], eax
not eax
mov dword [0x12040], eax
pop ebp
jmp 0x13ca4
Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x13c
mov eax, dword [0x404008]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionOpenWith
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push reloc.OLEAUT32.dll_SysReAllocString
movaps xmmword [esp + 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401191
mov esi, dword [esp + 8]
test esi, esi
je 0x401191
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], pe_nt_image_headers32
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x403224
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401191
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401130
sub ecx, edx
sar ecx, 1
cmp ecx, 0x26
jne 0x401191
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x401191
lea eax, [esp + 4]
mov dword [esp + 0xc], 0x6a283fe2
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4599ecfa
push eax
push 4
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x9e8c491
push eax
mov dword [esp + 0x2c], 0x267b1357
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.004012f0
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 2
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00401080
mov ebx, eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CoAllowSetForegroundWindow]
push str..pdf
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x401232
mov edi, dword [ebx]
push 4
push esi
push dword [ebp - 4]
mov edi, dword [edi + 0xc]
mov ecx, edi
push ebx
call dword [0x403110]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x403110]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.00401030
int3

Function at 0x404560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jns 0x40456e
sti
adc ebp, edx
cmp dword [eax + 0x382d511f], 0x4d
pop ecx
pop eax

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
cld
in al, dx
mov ebp, ebx
or byte [ebx - 0x3f7aebc0], cl
je 0x40a410
mov ecx, dword [ebp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test dword [esi], esp
jne 0x40a40a
push ds
xor eax, eax
pop ebp
ret 8
mov eax, 0x4e3b
pop ebp
ret 8