joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5caf33
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005b3b0d
xor ebx, ebx
cmp dword [0x6b13b0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5cb009
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5cb0e9
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x5cb0e9
push eax
call fcn.005b3a9f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6b13b0], eax
call esi
push eax
call fcn.005b3a9f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6b13b4], eax
call esi
push eax
call fcn.005b3a9f
mov dword [0x6b13b8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005a7a0e
test eax, eax
pop ecx
pop ecx
je 0x5cafd7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005ab2c1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5cb009
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.005b3a9f
cmp eax, ebx
pop ecx
mov dword [0x6b13c0], eax
je 0x5cb009
push 0x636b90
push edi
call esi
push eax
call fcn.005b3a9f
pop ecx
mov dword [0x6b13bc], eax
mov eax, dword [0x6b13bc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5cb08e
cmp dword [0x6b13c0], ecx
je 0x5cb08e
push eax
call fcn.005b3b16
push dword [0x6b13c0]
mov esi, eax
call fcn.005b3b16
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5cb08e
cmp edi, ebx
je 0x5cb08e
call esi
cmp eax, ebx
je 0x5cb05b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5cb05b
test byte [ebp - 0x18], 1
jne 0x5cb08e
lea eax, [ebp - 0x10]
push eax
call fcn.005a7a45
test eax, eax
pop ecx
je 0x5cb076
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005ab2c1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5cb085
or dword [ebp + 0x10], 0x200000
jmp 0x5cb0c9
or dword [ebp + 0x10], 0x40000
jmp 0x5cb0c9
mov eax, dword [0x6b13b4]
cmp eax, dword [ebp - 8]
je 0x5cb0c9
push eax
call fcn.005b3b16
cmp eax, ebx
pop ecx
je 0x5cb0c9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5cb0c9
mov eax, dword [0x6b13b8]
cmp eax, dword [ebp - 8]
je 0x5cb0c9
push eax
call fcn.005b3b16
cmp eax, ebx
pop ecx
je 0x5cb0c9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6b13b0]
call fcn.005b3b16
cmp eax, ebx
pop ecx
je 0x5cb0e9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5cb0eb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ceaa6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x69e3d4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.005cea3b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.005ab440
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x5ceaf5
cmp dword [ebp - 0x1c], 5
jb 0x5ceb0d
jmp 0x5ceb09
cmp dword [ebp - 0x10], 1
jne 0x5ceb0d
cmp dword [ebp - 0x1c], 4
ja 0x5ceb09
jne 0x5ceb0d
cmp dword [ebp - 0x18], 0
jbe 0x5ceb0d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x63abdc
call fcn.005ce92c
test eax, eax
jge 0x5ceb2e
mov byte [0x6be330], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005a58d9
add ebp, 0x78
leave
ret

Function at 0x5cece0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x6b1460], 0
push esi
jne 0x5cec53
call fcn.005ceb7e
test eax, eax
je 0x5cec96
mov eax, dword [0x6b1460]
cmp eax, 1
jne 0x5cec74
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x5cec96
pop esi
ret
push eax
call dword [0x6b1468]
test eax, eax
jne 0x5cecde
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5cec9a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x6b1460]
call dword [0x6b1468]
mov edi, eax
test edi, edi
je 0x5cecc1
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x5cecdd
lea edi, [esi + 0xff0]
push esi
push dword [0x6b1460]
call dword [0x6b1464]
add esi, 0x10
cmp esi, edi
jb 0x5cecc7
mov eax, esi
pop edi
pop esi
ret
jmp 0x5cec40

Function at 0x5e1d11
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
jbe 0x5e1d30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
sub ecx, eax
push esi
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x5e1d24
pop esi
ret

Function at 0x5e1d31
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, eax
or ebx, edx
or ebx, ecx
test bl, 3
pop ebx
jne 0x5e1d59
shr ecx, 2
push ecx
push edx
push eax
call fcn.005e1d11
add esp, 0xc
ret
test ecx, ecx
jbe 0x5e1d6c
push esi
sub edx, eax
mov esi, ecx
mov cl, byte [edx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x5e1d62
pop esi
ret
Function at 0x5e7470
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5e74a0
push esi
call fcn.005ea5f0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x5e7499
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5e7523
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x5e750f
mov eax, dword [esi + 8]
test eax, eax
je 0x5e74c4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5e750b
cmp eax, 2
je 0x5e750f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5e74b7
cmp eax, 3
je 0x5e74ea
cmp eax, 1
jne 0x5e74b7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x5e74b7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5e74b7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.005e7550
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5e7543
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.005e7550
add esp, 4
pop esi
ret

Function at 0x5f3fea
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, pe_nt_image_headers32
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x5f400e
push eax
call fcn.005fb347
push 2
call fcn.005fb2d6
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.005ab440
add esp, 0xc
pop edi
pop esi
ret
Function at 0x5f447f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 1
call fcn.005fb2e7
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 8], esi
je 0x5f44d7
push esi
call fcn.005f4447
push 0
push esi
call fcn.00603ef8
add esp, 0xc
test eax, eax
je 0x5f44de
mov edi, dword [ebp - 8]
push dword [edi + 0xac]
lea esi, [edi + 0xac]
push edi
call fcn.005fb401
and dword [esi], 0
push edi
call fcn.005fb347
add esp, 0xc
xor eax, eax
jmp 0x5f463c
push dword [ebp + 0x20]
mov esi, dword [ebp - 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.005fb46e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005fb2bc
mov ecx, dword [ebp + 8]
mov edi, 0x640e50
mov dword [ebp - 4], ecx
add esp, 0x20
sub dword [ebp - 4], edi
mov eax, edi
mov edx, 0x20000
mov ebx, dword [ebp - 4]
mov bl, byte [ebx + eax]
cmp bl, byte [eax]
je 0x5f4524
or dword [esi + 0x6c], edx
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x5f4517
test dword [esi + 0x6c], edx
je 0x5f45a2
test ecx, ecx
je 0x5f4577
mov al, byte [ecx]
cmp al, byte [0x640e50]
jne 0x5f4557
cmp al, 0x31
jne 0x5f454d
mov dl, byte [ecx + 2]
cmp dl, byte [0x640e52]
jne 0x5f4557
cmp al, 0x30
jne 0x5f45a2
cmp byte [ecx + 2], 0x39
jge 0x5f45a2
test ecx, ecx
je 0x5f4577
push ecx
lea eax, [ebp - 0x58]
push str.Application_was_compiled_with_png.h_from_libpng__.20s
push eax
call fcn.005a5a2e
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.005fb0b7
add esp, 0x14
push edi
lea eax, [ebp - 0x58]
push str.Application__is__running_with_png.c_from_libpng__.20s
push eax
call fcn.005a5a2e
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.005fb0b7
and dword [esi + 0x6c], 0
push str.Incompatible_libpng_version_in_application_and_library
push esi
call fcn.005fb02b
add esp, 0x1c
mov eax, 0x2000
push eax
push esi
mov dword [esi + 0xb0], eax
call fcn.005fb38e
mov dword [esi + 0xac], eax
push 0x38
lea eax, [esi + 0x74]
mov dword [esi + 0x94], fcn.005f3eef
push str.1.1.4
mov dword [esi + 0x98], fcn.005f3f45
push eax
mov dword [esi + 0x9c], esi
call fcn.004f0b60
add esp, 0x14
cmp eax, 0xfffffffa
je 0x5f4608
cmp eax, 0xfffffffc
je 0x5f4601
cmp eax, 0xfffffffe
je 0x5f4601
test eax, eax
je 0x5f4615
push str.Unknown_zlib_error
jmp 0x5f460d
push str.zlib_memory_error
jmp 0x5f460d
push str.zlib_version_error
push esi
call fcn.005fb02b
pop ecx
pop ecx
mov eax, dword [esi + 0xac]
push 0
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0xb0]
push 0
push esi
mov dword [esi + 0x84], eax
call fcn.005fb4b9
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5f97fa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 1
call fcn.005fb2e7
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 8], esi
je 0x5f9852
push esi
call fcn.005f4447
push 0
push esi
call fcn.00603ef8
add esp, 0xc
test eax, eax
je 0x5f9859
mov edi, dword [ebp - 8]
push dword [edi + 0xac]
lea esi, [edi + 0xac]
push edi
call fcn.005fb401
and dword [esi], 0
push edi
call fcn.005fb347
add esp, 0xc
xor eax, eax
jmp 0x5f9953
push dword [ebp + 0x20]
mov esi, dword [ebp - 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.005fb46e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005fb2bc
mov ecx, dword [ebp + 8]
mov edi, 0x640e50
mov dword [ebp - 4], ecx
add esp, 0x20
sub dword [ebp - 4], edi
mov eax, edi
mov edx, 0x20000
mov ebx, dword [ebp - 4]
mov bl, byte [ebx + eax]
cmp bl, byte [eax]
je 0x5f989f
or dword [esi + 0x6c], edx
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x5f9892
test dword [esi + 0x6c], edx
je 0x5f9920
xor ebx, ebx
cmp ecx, ebx
je 0x5f98f4
mov al, byte [ecx]
cmp al, byte [0x640e50]
jne 0x5f98d4
cmp al, 0x31
jne 0x5f98ca
mov dl, byte [ecx + 2]
cmp dl, byte [0x640e52]
jne 0x5f98d4
cmp al, 0x30
jne 0x5f9922
cmp byte [ecx + 2], 0x39
jge 0x5f9922
cmp ecx, ebx
je 0x5f98f4
push ecx
lea eax, [ebp - 0x58]
push str.Application_was_compiled_with_png.h_from_libpng__.20s
push eax
call fcn.005a5a2e
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.005fb0b7
add esp, 0x14
push edi
lea eax, [ebp - 0x58]
push str.Application__is__running_with_png.c_from_libpng__.20s
push eax
call fcn.005a5a2e
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.005fb0b7
push str.Incompatible_libpng_version_in_application_and_library
push esi
mov dword [esi + 0x6c], ebx
call fcn.005fb02b
add esp, 0x1c
jmp 0x5f9922
xor ebx, ebx
mov eax, 0x2000
push eax
push esi
mov dword [esi + 0xb0], eax
call fcn.005fb38e
push ebx
push ebx
push ebx
push esi
mov dword [esi + 0xac], eax
call fcn.00600608
push ebx
push ebx
push 1
push ebx
push esi
call fcn.005f9ddf
add esp, 0x2c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x60155a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x601584
test ecx, ecx
jne 0x60158e
test edx, edx
jne 0x60158e
mov eax, edi
jmp 0x6015fa
cmp eax, 0xffffffff
jne 0x60158e
push 0xfffffffffffffffe
pop eax
jmp 0x6015fa
mov edx, dword [esi + 0x24]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x6015fa
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.005aad50
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x6015bf
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x6015de
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x601655
push eax
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
add eax, dword [esi + 0x30]
push eax
push ecx
call fcn.0060165a
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x601641
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x601655
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x601566
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1004e2d
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0xa4
xor ebx, ebx
call esi
mov edi, 0x8000
mov ecx, edi
test cx, ax
jne 0x100aa09
push 0xa5
call esi
mov ecx, edi
test cx, ax
jne 0x100c664
push 0xa2
call esi
mov ecx, edi
test cx, ax
jne 0x100c66c
push 0xa3
call esi
mov ecx, edi
test cx, ax
jne 0x100c674
push 0x10
call esi
test di, ax
jne 0x100c67c
push 0x90
call esi
test al, 1
jne 0x100c684
push 0x91
call esi
test al, 1
jne 0x100c68c
push 0x14
call esi
test al, 1
jne 0x100c694
mov eax, dword [ebp + 8]
test eax, 0x1000000
jne 0x100ba08
pop edi
and eax, 0x4000000
pop esi
or eax, ebx
pop ebx
pop ebp
ret 4
push 2
pop ebx
jmp 0x1004e54
or ebx, 0x100
jmp 0x1004ecf
or ebx, 1
jmp 0x1004e66
or ebx, 8
jmp 0x1004e78
or ebx, 4
jmp 0x1004e8a
or ebx, 0x10
jmp 0x1004e97
or ebx, 0x20
jmp 0x1004ea6
or ebx, 0x40
jmp 0x1004eb5
or ebx, 0x80
jmp 0x1004ec1

Function at 0x100556c
Capabilities:
Create thread

Disassembly:
or dword [0x10382cc], 0x100
jmp 0x1005604
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.01007511
xor ebx, ebx
cmp eax, ebx
jl 0x1005604
cmp byte [esi + 0xf5], bl
je 0x100460a
push 0x10384e4
push ebx
push ebx
push 0x1002fae
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x100fd29
call fcn.01001505
push ebx
push ebx
push dword [0x1038084]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
call fcn.01001579
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 0x1005604
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
mov eax, 0xc0000017
jmp 0x1005604
Function at 0x1005c3f
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 0x100de4f
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 0x100de96
xor eax, eax
jmp 0x1005c66
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 0x100dede
push dword [esi + 4]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100de8f
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 0x100df38
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 0x100de8f
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 0x1005c63
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 0x100df25
Function at 0x1006340
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, eax
mov eax, dword [eax]
push esi
test eax, eax
je 0x100638a
mov esi, eax
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006392
test dx, dx
je 0x100637c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006392
add eax, 4
add ecx, 4
test dx, dx
jne 0x100635a
xor eax, eax
test eax, eax
jne 0x1006399
mov eax, dword [ebx]
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
jmp 0x10063a3
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x100637e
mov ebx, esi
mov esi, dword [ebx]
test esi, esi
je 0x100638a
jmp 0x1006354
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10063a3
sub eax, ecx
mov ecx, dword [0x1038030]
push edi
sar eax, 1
lea edi, [eax + eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edx, [edi + 8]
push edx
add ecx, 0x280000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x10063f7
push dword [ebp + 0xc]
and dword [esi], 0
and dword [esi + 4], 0
push edi
lea eax, [esi + 8]
push eax
call fcn.010033bc
mov dword [ebx], esi
mov eax, esi
pop edi
jmp 0x1006384
Function at 0x1006af5
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 0x1007619
push 1
push esi
push ebx
push dword [ebp + 8]
call fcn.010039ea
test eax, eax
jne 0x1007619
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 0x1006bb8
push ebx
push 0x1006bc0
push esi
call dword [sym.imp.msvcrt.dll_memmove]
xor eax, eax
add esp, 0xc
add esi, ebx
cmp ax, di
jae 0x1006bb5
dec di
shr di, 1
inc di
movzx eax, di
cmp dword [ebp + 0x10], 0
jne 0x10091b2
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 0x1006b99
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor edx, edx
jmp 0x1006b45
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5c
jne 0x1006ba3
push 0x5f
pop ecx
jmp 0x1006ba9

Function at 0x1006db9
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 0x100f910
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 0x1006e37
mov eax, dword [esi + 8]
cmp ebx, eax
jb 0x1006e55
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 0x100f91a
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 0x1006e37
mov eax, 0xc0000017
jmp 0x1006e4e
mov ecx, dword [esi + 8]
mov dword [eax], ecx
jmp 0x1006e37