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

Disassembly:
push 0x2c
mov eax, 0x45fc3e
call fcn.00424505
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], esi
cmp dword [edi + 0x14], 8
jb 0x42384f
mov eax, dword [edi]
jmp 0x423851
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x423870
push esi
push edi
push ebx
call fcn.00423710
add esp, 0xc
jmp 0x423943
test eax, 0x400
je 0x423906
cmp dword [edi + 0x14], 8
jb 0x423885
mov eax, dword [edi]
jmp 0x423887
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00420f7c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push 0x2000000
push 3
push ecx
push 7
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.0040b7e0
cmp esi, 0xffffffff
jne 0x4238cf
push dword [ebp - 0x34]
jmp 0x423861
push edi
call fcn.00423381
pop ecx
test al, al
jne 0x4238f8
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.004234a1
pop ecx
pop ecx
push esi
mov dword [ebx], 9
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x423943
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x423915
and dword [esi], 0
call fcn.00420835
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x42392c
mov dword [ebp - 0x30], 2
call fcn.004234a1
pop ecx
pop ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, ebx
call fcn.004244af
ret

Function at 0x44fca0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044fb1f

Function at 0x451588
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00451248
Function at 0x417a54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4306a9
call fcn.00430290
sub esp, 0xc
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push str.FILEPATH
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x6d
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
call fcn.004069bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6e
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x14]
call fcn.0040ef32
lea ecx, [ebp - 0x18]
mov edx, eax
call fcn.0040ef32
mov ecx, eax
call fcn.004069cb
push str.FILEPATH
push 0x70
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x417b6e
xor ecx, ecx
cmp word [eax], cx
je 0x417b6e
lea ecx, [ebp - 0x10]
call fcn.0040ef32
mov ecx, eax
call fcn.00406a7a
push str.INFOEXE
push 0x7f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x417ba1
mov ecx, dword [edi]
call fcn.00406aa2
lea ecx, [ebp - 0x10]
call fcn.0040eea9
lea ecx, [ebp - 0x14]
call fcn.0040eea9
lea ecx, [ebp - 0x18]
call fcn.0040eea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42c0b4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bd74

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x434389
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x434398
pop dword [ebp - 0x30]
mov eax, 0x434398
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x4d70e16b
add dword [ebp - 0x40], 0xe163e0
mov dword [ebp - 0x3c], 0x1c287b4e
add dword [ebp - 0x3c], 0x160ad0f7
mov dword [ebp - 0x38], 0xd09aa2ca
sub dword [ebp - 0x38], 0x844e5e9c
mov dword [ebp - 0x34], 0x4bf0455
add dword [ebp - 0x34], 0xfb40fbab
lea eax, [ebp - 0x40]
push eax
mov eax, 0x40229094
add eax, 0xc0231fd0
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xe0324405
sub dword [ebp - 0x40], 0x6bbfdaaf
mov dword [ebp - 0x3c], 0x6be549e6
add dword [ebp - 0x3c], 0xd587178f
mov dword [ebp - 0x38], 0x783d0d86
add dword [ebp - 0x38], 0xeb325ee6
mov dword [ebp - 0x34], 0xe486a9b8
add dword [ebp - 0x34], 0x1b795648
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x4b023
push 0
call eax
mov ecx, 0x8f9d3ee
add ecx, 0xf7066af0
mov esi, eax
mov edx, 0x56f058c5
add edx, 0xa957073b
add edx, dword [ebp - 0x30]
mov edi, 0x775e571b
mov ebx, dword [edx]
xor dword [ebp - 0x20], 0xd8e7ef8a
xor ebx, edi
sub dword [ebp - 8], 0x310d0d92
mov dword [esi], ebx
add esi, 0x2e5e6799
sub esi, 0x2e5e6795
add edx, 0x3d621ff4
add edx, 0xc29de010
loop 0x4344aa
add eax, 0xc944474b
add eax, 0x36bca700
xor ebx, ebx
add ebx, eax
add eax, 0x961056c7
add eax, 0x69efa93e
mov ecx, 0x377e6d3d
sub ecx, 0x373e6d3d
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x401040
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push str.Hello_world__n
call fcn.00401010
mov eax, dword fs:[0x30]
add esp, 4
mov esi, dword [eax + 0xc]
mov esi, dword [esi + 0x14]
test esi, esi
je 0x401080
nop
cmp word [esi + 0x24], 0
je 0x401080
push dword [esi + 0x18]
push dword [esi + 0x28]
push str.___Found_loaded_module_n_tFullDllName:__ws_n_tBaseAddress:_0x_p_n
call fcn.00401010
mov esi, dword [esi]
add esp, 0xc
test esi, esi
jne 0x401060
xor eax, eax
pop esi
ret

Function at 0x401889
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018c8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018c8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018c8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018c8
cmp dword [ecx + 0x74], 0xe
jbe 0x4018c8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10037280
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100646f9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10094144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Root::constructor_void_]
mov edi, dword [ebp + 8]
mov dword [esi], vtable.ScScript::Node.0
mov dword [esi + 4], 0
mov eax, dword [edi]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x24]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x28]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x18], ecx
mov eax, dword [edi + 0x1c]
mov dword [ebp - 4], 0
mov dword [esi + 0x1c], eax
cmp eax, 4
jl 0x1003731f
cmp eax, 6
jg 0x1003731f
push 0x18
call dword [sym.imp.ScCore.dll_public:_static_void____cdecl_ScCore::Heap::operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x100373ba
add edi, 4
push edi
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_class_ScCore::Variant_const__]
jmp 0x100373bc
mov eax, dword [esi + 8]
cmp eax, 0x44
je 0x10037398
cmp eax, 0x55
je 0x10037357
cmp eax, 0x64
jne 0x100373bf
push 0x18
call dword [sym.imp.ScCore.dll_public:_static_void____cdecl_ScCore::Heap::operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x100373ba
push 1
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_bool_]
jmp 0x100373bc
push 0x18
call dword [sym.imp.ScCore.dll_public:_static_void____cdecl_ScCore::Heap::operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x10037386
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_void_]
mov ecx, eax
mov byte [ebp - 4], 0
mov dword [esi + 4], eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setNull_void_]
jmp 0x100373bf
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], al
mov dword [esi + 4], eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setNull_void_]
jmp 0x100373bf
push 0x18
call dword [sym.imp.ScCore.dll_public:_static_void____cdecl_ScCore::Heap::operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x100373ba
push 0
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_bool_]
jmp 0x100373bc
xor eax, eax
mov dword [esi + 4], 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 4
Function at 0x10056710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1005671f
pop dword [ebp - 0x4c]
mov eax, 0xb5a363b3
sub eax, 0xa59dfc94
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x86ae6421
sub dword [ebp - 0x5c], 0x385c1ed6
mov dword [ebp - 0x58], 0x26073aec
add dword [ebp - 0x58], 0xc2c1159
mov dword [ebp - 0x54], 0x7e9e240
add dword [ebp - 0x54], 0x446261ee
mov dword [ebp - 0x50], 0x8f59a000
add dword [ebp - 0x50], 0x70a66000
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xd5e95a50
sub eax, 0xc5e2ba18
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xb157b3c5
add dword [ebp - 0x5c], 0xc31ab591
mov dword [ebp - 0x58], 0x9df5f2fb
add dword [ebp - 0x58], 0xa3766e7a
mov dword [ebp - 0x54], 0x1de3b9d0
sub dword [ebp - 0x54], 0xba744d64
mov dword [ebp - 0x50], 0x33f59200
add dword [ebp - 0x50], 0xcc0a6e00
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xdff565ff
add eax, 0x30113a3d
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x4b23d
push 0
call eax
mov ecx, 0xfe537c9
add ecx, 0xf01b194e
mov ebx, eax
mov esi, 0x235c32cd
sub esi, 0x1351fecd
add esi, dword [ebp - 0x4c]
mov edx, 0x5e43b24e
add edx, 0x3100c4af
xor dword [ebp - 0xc], edi
mov edi, dword [esi]
xor dword [ebp - 0x24], eax
sub edi, edx
mov dword [ebp - 0xc], 0x1d2d6330
mov dword [ebx], edi
mov dword [ebp - 0x30], 0x5693c04a
add ebx, 4
add esi, 0x3c58154
sub esi, 0x3c58150
loop 0x10056841
add eax, 0xf63f1f62
add eax, 0x9c217cd
mov ebx, eax
add eax, 0x6b534059
sub eax, 0x6b534054
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x1005c09a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10094144]
jne 0x1005c0a4
repz ret
jmp fcn.1005c6ae
Function at 0x1003701
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [0x1038250]
cmp ebx, 0x1038250
je 0x1003733
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, ebx
mov eax, dword [esi + 8]
mov ebx, dword [ebx]
cmp eax, dword [ebp + 8]
je 0x1003738
cmp ebx, 0x1038250
jne 0x100371d
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
test al, 2
jne 0x100c4f9
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
jmp 0x1003729
push dword [esi + 0x34]
and eax, 0xfffffffd
mov dword [esi + 0x28], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
jmp 0x100374d
Function at 0x1005199
Capabilities:
Create thread

Disassembly:
or dword [0x10382cc], 0x100
jmp 0x1005231
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [esi + 0x314]
push eax
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x104]
push eax
push dword [esi + 0x100]
push esi
call fcn.010054ed
xor ebx, ebx
cmp eax, ebx
jl 0x1005231
cmp byte [esi + 0xf5], bl
je 0x1004337
push 0x10384e4
push ebx
push ebx
push 0x1003080
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x10101fd
call fcn.01001530
push ebx
push ebx
push dword [0x1038084]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
call fcn.01001510
push esi
mov esi, dword [sym.imp.ntdll.dll_NtClose]
call esi
push dword [0x1038084]
call esi
mov eax, dword [0x1038e64]
cmp eax, ebx
mov dword [0x1038084], ebx
jl 0x1005231
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
mov eax, 0xc0000017
jmp 0x1005231
Function at 0x1005995
Capabilities:
Access peb ldr_data
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov ebx, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edi, [ebx + 0xc]
push edi
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100fe16
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test edi, edi
jl 0x1005a13
mov eax, dword [esi + 8]
cmp ebx, eax
jb 0x1005a31
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
jne 0x100fe20
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
mov edi, 0xc0000023
jmp 0x1005a13
mov eax, 0xc0000017
jmp 0x1005a2a
mov ecx, dword [esi + 8]
mov dword [eax], ecx
jmp 0x1005a13

Function at 0x1005a3d
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 8]
call esi
lea eax, [eax + eax + 2]
mov ebx, 0x7ffe0030
push ebx
movzx edi, ax
call esi
add eax, eax
cmp dword [ebp + 0xc], 0
movzx esi, ax
je 0x1005b1e
push 1
push esi
push ebx
push dword [ebp + 8]
call fcn.01003a83
test eax, eax
jne 0x1005b1e
movzx eax, si
push 0x18
sub edi, esi
add dword [ebp + 8], eax
pop edx
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx ebx, dx
movzx edx, di
add edx, ebx
push edx
add ecx, 0x100000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x1005afc
push ebx
push 0x1005b04
push esi
call dword [sym.imp.msvcrt.dll_memmove]
xor eax, eax
add esp, 0xc
add esi, ebx
cmp ax, di
jae 0x1005af9
dec di
shr di, 1
inc di
movzx eax, di
cmp dword [ebp + 0x10], 0
jne 0x1005b25
mov ecx, dword [ebp + 8]
mov cx, word [ecx]
add dword [ebp + 8], 2
mov word [esi], cx
inc esi
inc esi
dec eax
jne 0x1005ae1
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor edx, edx
jmp 0x1005a8d
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5c
jne 0x1005ae7
push 0x5f
pop ecx
jmp 0x1005aed
Function at 0x1005c9e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea edi, [ebx + eax + 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100fe2a
lea eax, [ebp - 4]
push eax
push edi
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov dword [ebp + 0x10], eax
test eax, eax
jl 0x1005d59
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.msvcrt.dll_memmove]
cmp ebx, eax
jb 0x1005d78
mov ebx, dword [ebp + 0x14]
push eax
lea eax, [esi + 0x14]
push eax
push ebx
call edi
mov eax, dword [esi + 0x10]
shr eax, 1
add esp, 0xc
xor ecx, ecx
mov word [ebx + eax*2], cx
cmp dword [ebp + 0x10], 0
jl 0x1005d81
mov eax, dword [esi + 0xc]
cmp dword [ebp + 0x18], eax
jb 0x1005d81
mov ebx, dword [ebp + 0x1c]
push eax
mov eax, dword [esi + 8]
add eax, esi
push eax
push ebx
call edi
add esp, 0xc
cmp dword [esi + 4], 1
jne 0x1005d59
mov eax, dword [esi + 0xc]
lea ecx, [eax + 2]
cmp ecx, dword [ebp + 0x18]
ja 0x100fe34
mov eax, dword [esi + 0xc]
mov byte [ebx + eax], 0
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
mov byte [ebx + eax], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x18
mov dword [ebp + 0x10], 0xc0000023
jmp 0x1005d15
mov dword [ebp + 0x10], 0xc0000023
jmp 0x1005d59
mov eax, 0xc0000017
jmp 0x1005d71
add eax, 0xfffffffe
mov dword [esi + 0xc], eax
jmp 0x1005d48

Function at 0x1006537
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.010065a4
xor esi, esi
cmp eax, esi
jl 0x100659c
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push 0x1f0003
push 0x1038084
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll_NtCreateEvent]
cmp eax, esi
jl 0x100659c
push esi
push esi
push esi
push 0x10015ba
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x10101f3
push eax
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop esi
leave
ret
mov eax, 0xc0000017
jmp 0x100659c
Function at 0x1006ad1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5a
pop eax
push 0x5c
mov word [ebp - 0x138], ax
pop eax
mov word [ebp - 0x136], ax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x158]
push eax
xor esi, esi
push 0x20019
lea eax, [ebp - 0x128]
push eax
mov dword [edi], 0x10000
mov dword [ebp - 0x134], 0x1006cb0
mov dword [ebp - 0x158], 0x18
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x14c], 0x40
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], esi
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, esi
jl 0x1006c58
push 0x14
pop eax
push 0x16
mov word [ebp - 0x130], ax
pop eax
mov word [ebp - 0x12e], ax
lea eax, [ebp - 0x164]
push eax
push 0x11c
lea eax, [ebp - 0x120]
push eax
push 1
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 0x1006c98
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x128]
mov dword [ebp - 0x124], eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0x124], esi
jl 0x1006c52
cmp dword [ebp - 0x114], esi
je 0x101202f
mov eax, dword [ebp - 0x118]
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp + eax - 0x120]
push eax
lea eax, [ebp - 0x140]
push eax
call esi
push 0x1006c7c
lea eax, [ebp - 0x160]
push eax
call esi
push 0x1006c68
lea eax, [ebp - 0x16c]
push eax
call esi
mov esi, dword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
push 1
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x160]
push eax
call esi
test al, al
jne 0x1012024
push 1
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x16c]
push eax
call esi
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x10001
add eax, 0x10000
mov dword [edi], eax
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010015a8
leave
ret 4
mov dword [edi], 0x40002
jmp 0x1006c52
mov dword [ebp - 0x124], 0xc0000034
jmp 0x1006c52
Function at 0x10074ba
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x1038416], bl
jne 0x100e375
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword fs:[0x18]
mov edx, dword [ebp + 8]
movsx esi, word [ebp + 8]
mov ecx, dword [0x1038030]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
shr edx, 0x10
movsx edx, dx
imul edx, esi
lea edx, [edx + edx + 2]
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
mov esi, dword [ebp + 0xc]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x100e3bc
xor eax, eax
jmp 0x10074e1
mov eax, dword fs:[0x18]
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
mov eax, dword [eax + 0x30]
add ecx, 0x340000
inc edx
push edx
push ecx
push dword [eax + 0x18]
call edi
mov dword [esi + 8], eax
test eax, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
jne 0x100e404
push dword [esi + 4]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100e3b5
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
lea edx, [edx + edx + 2]
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
mov dword [esi + 0xc], eax
test eax, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
jne 0x100e45e
push dword [esi + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0
push dword [eax + 0x18]
call edi
push dword [esi + 4]
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
jmp 0x100e3b5
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
xor ebx, ebx
mov dword [esi], eax
cmp eax, ebx
jne 0x10074de
push dword [esi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push ebx
push dword [eax + 0x18]
call edi
push dword [esi + 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
push dword [esi + 4]
push ebx
jmp 0x100e44b