joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b840
Capabilities:
Query or enumerate registry value

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 0x1006d62d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x248
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001b9fd
push 0x208
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.1004c020
add esp, 0xc
mov dword [ebp - 0x1c], 0x208
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 1
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.BuildLabEx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001b9f4
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x38]
call fcn.10011130
mov dword [ebp - 4], 0
lea edx, [ebp - 0x38]
cmp dword [ebp - 0x24], 7
mov eax, dword [ebp - 0x28]
cmova edx, dword [ebp - 0x38]
test eax, eax
je 0x1001b93b
xor esi, esi
mov ecx, edx
test eax, eax
je 0x1001b931
cmp word [edx], 0x2e
je 0x1001b92f
nop dword [eax + eax]
cmp eax, 1
je 0x1001b931
add ecx, 2
dec eax
cmp word [ecx], 0x2e
jne 0x1001b920
mov esi, ecx
test esi, esi
je 0x1001b93b
sub esi, edx
sar esi, 1
jmp 0x1001b93e
or esi, 0xffffffff
lea edi, [esi + 1]
push edi
push ecx
lea ecx, [ebp - 0x38]
call fcn.1001c690
mov dword [ebp - 0x18], eax
cmp eax, esi
jbe 0x1001b9ec
cmp esi, 0xffffffff
je 0x1001b9ec
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
cmp edx, edi
jb 0x1001ba12
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x38]
sub ecx, esi
sub edx, edi
dec ecx
cmp edx, ecx
cmovb ecx, edx
cmp dword [ebp - 0x24], 7
push ecx
cmova eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
lea eax, [eax + edi*2]
push eax
call fcn.10011080
cmp dword [ebp - 0x3c], 7
lea eax, [ebp - 0x50]
push 0xa
cmova eax, dword [ebp - 0x50]
push 0
push eax
call fcn.1004fef8
add esp, 0xc
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.10010ed0
lea ecx, [ebp - 0x38]
call fcn.10010ed0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x38]
call fcn.10010ed0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1000f3f0
int3
Function at 0x1001c9a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x10], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x1001cb1a
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp + 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10012d70
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x1001caf5
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
jbe 0x1001ca21
mov edx, dword [ecx]
mov dword [ebp - 4], edx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ecx + 0x10], edx
jbe 0x1001ca4a
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x1001ca33
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x1001ca69
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x1001caeb
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.100165a0
test al, al
jne 0x1001caa3
mov ebx, dword [ebx]
cmp ebx, esi
je 0x1001ca9b
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x1001cae8
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x1001cacb
nop word [eax + eax]
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.100165a0
test al, al
je 0x1001cafe
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x1001cab0
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov esi, edi
cmp edi, eax
jne 0x1001ca05
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x1001cae8
push str.invalid_hash_bucket_count
call fcn.10031b69
int3
Function at 0x1001cc30
Capabilities:
Access peb ldr_data

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 0x1006d87f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0xb0
mov eax, dword [ebx + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
lea esi, [edi + 4]
push 0x28
mov dword [ebp - 0x14], esi
mov dword [edi], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1004a319
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [edi + 0xc], xmm0
xor ecx, ecx
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], cx
mov dword [edi + 0x24], ecx
mov byte [ebp - 4], 2
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], ecx
mov byte [edi + 0x40], cl
mov dword [edi + 0x41], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.1001cb30
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx]
mov edx, dword [edx + 4]
call fcn.1001cb30
mov esi, eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.1001f9a0
push 0x1009ae78
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call fcn.1001d6b0
add esp, 4
push esi
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.1001d870
push 0x1009ae74
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
call fcn.1001d6b0
add esp, 4
push edi
push eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
call fcn.1001d870
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x30]
lea esi, [edi + 0xc]
cmp esi, eax
je 0x1001cd9e
mov ecx, esi
call fcn.10010ed0
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
mov word [ebp - 0x30], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x30]
call fcn.10010ed0
lea ecx, [ebp - 0x60]
call fcn.10010ed0
lea ecx, [ebp - 0x48]
call fcn.10010ed0
lea ecx, [ebp - 0x78]
call fcn.10010ed0
lea ecx, [ebp - 0x90]
call fcn.10010ed0
lea ecx, [ebp - 0xa8]
call fcn.10010ed0
lea ecx, [ebp - 0xc0]
call fcn.10010ed0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x1001d480
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006d933
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x2c]
mov byte [ebx + 0x40], 0
test eax, eax
je 0x1001d4bb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebx + 0x2c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1001d4d9
jle 0x1001d4d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x24], 0
mov dword [ebp - 4], 0xffffffff
xor esi, esi
push esi
mov ecx, ebx
call fcn.1001d270
inc esi
cmp esi, 4
jl 0x1001d4e2
cmp dword [ebx + 8], 0
je 0x1001d5b5
mov eax, dword [0x100b00d0]
test al, 1
jne 0x1001d53a
or eax, 1
mov dword [0x100b00d0], eax
mov dword [ebp - 4], 1
push 0x1006fb70
mov dword [0x100b00c8], 0
mov dword [0x100b00cc], 0xc0000225
call fcn.1004a65c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
mov dword [ebp - 0x10], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x100b00c8]
cmp eax, 0xffffffff
je 0x1001d579
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x8005e020
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001d579
mov eax, dword fs:[0x18]
mov esi, dword [ebx + 4]
lea edi, [ebx + 4]
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.1001d800
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x30], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001f290
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006da7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x7ffffffe
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0x34
jb 0x1001f441
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x1001f2d6
mov eax, dword [edi]
push ecx
push eax
push 0x34
push str._registrymachineSYSTEMCurrentControlSetServices_
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x4c]
call fcn.1001da20
mov dword [ebp - 4], 0
call fcn.10015a20
cmp dword [ebp - 0x38], 7
lea ecx, [ebp - 0x34]
mov esi, eax
lea eax, [ebp - 0x4c]
cmova eax, dword [ebp - 0x4c]
push 0x1009c8d4
mov dword [ebp - 0x14], eax
call fcn.1000fe40
mov byte [ebp - 4], 1
call fcn.1001bac0
lea ebx, [esi + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp + 8]
push eax
call fcn.100164b0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp eax, dword [esi + 4]
je 0x1001f359
mov esi, dword [eax + 0x20]
call ebx
test esi, esi
je 0x1001f35b
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
call esi
jmp 0x1001f35b
call ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.1000f9d0
call fcn.10015a20
push 0x1009c9a8
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.1000fe40
mov byte [ebp - 4], 2
call fcn.1001bac0
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp + 8]
push eax
call fcn.100164b0
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
je 0x1001f3c2
mov eax, dword [eax + 0x20]
mov dword [ebp + 8], eax
lea eax, [esi + 0x20]
push eax
call ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001f3c8
lea ecx, [ebp - 0x1c]
push ecx
call eax
mov ebx, eax
jmp 0x1001f3cd
lea eax, [esi + 0x20]
push eax
call ebx
mov ebx, 0xc0000138
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.1000f9d0
mov ecx, dword [edi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x22
jb 0x1001f446
cmp dword [edi + 0x14], 7
jbe 0x1001f3f0
mov edi, dword [edi]
push ecx
push edi
push 0x22
push str.SYSTEMCurrentControlSetServices_
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.1001da20
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [ebp - 0x34]
call fcn.10010ed0
lea ecx, [ebp - 0x4c]
call fcn.10010ed0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.1000fa60
call fcn.1000fa60
int3
Function at 0x10020000
Capabilities:
Access peb ldr_data
Get process heap force flags

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 0x1006dbb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
push edi
mov dword [esi], 0
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 4
call fcn.10020780
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 5
call fcn.10020780
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi + 0x94], xmm0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 7
mov word [esi + 0x94], ax
movups xmmword [esi + 0xac], xmm0
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], 7
mov word [esi + 0xac], ax
lea edi, [esi + 0xc4]
mov dword [ebp - 0x18], edi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov byte [ebp - 4], 9
push 0x44
mov dword [ebp - 0x1c], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.1004a319
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10020290
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006dbd0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
push 1
mov esi, ecx
call fcn.10020440
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x94]
cmp ecx, edi
je 0x100202d7
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x100202ce
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.100126f0
mov byte [esi + 0x10], 0
cmp dword [edi + 0x14], 7
jbe 0x100202e3
mov edi, dword [edi]
push 0
push 0
push 3
push 0
push 7
push 0x120089
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ecx
je 0x10020319
test ecx, ecx
jle 0x10020315
push ecx
call ebx
mov dword [esi], edi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
jle 0x10020410
push 0
push 0
push 0
push 0x1000002
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 4], 1
mov ecx, dword [esi + 4]
cmp edi, ecx
je 0x10020358
test ecx, ecx
jle 0x10020353
push ecx
call ebx
mov dword [esi + 4], edi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 0
test ecx, ecx
jle 0x1002037d
push 4
push ecx
mov byte [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
lea eax, [ebp - 0x10]
jmp 0x100203c8
push 2
push 0
push dword [esi]
mov byte [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
cmp edi, ecx
je 0x100203a9
test ecx, ecx
jle 0x100203a4
push ecx
call ebx
mov dword [esi + 4], edi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
jle 0x100203ef
push 0
push 0
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
lea eax, [ebp - 0x14]
lea ebx, [esi + 8]
cmp eax, ebx
je 0x100203e4
mov eax, dword [ebx]
cmp edi, eax
je 0x100203ef
test eax, eax
jle 0x100203e0
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx], edi
jmp 0x100203ef
test edi, edi
jle 0x100203ef
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [esi + 8], 0
je 0x10020410
push ecx
mov ecx, esi
call fcn.10020550
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, dword [eax + 0xbf4]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10020440
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006d370
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x10020472
jle 0x1002046b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10020490
jle 0x10020489
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [ebp - 4], 1
mov eax, dword [esi]
test eax, eax
je 0x100204ac
jle 0x100204a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x100204c3
jle 0x100204bc
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [esi + 0x34], 0
cmp byte [ebp + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
jne 0x10020535
cmp dword [esi + 0xa8], 7
lea ecx, [esi + 0x94]
jbe 0x100204ec
mov ecx, dword [esi + 0x94]
xor eax, eax
mov dword [esi + 0xa4], 0
mov word [ecx], ax
cmp byte [esi + 0x10], al
je 0x10020519
add esi, 0xac
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x10020510
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1002051f
add esi, 0xac
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x10020529
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10020550
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x10020577
mov eax, 0xc0000141
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1002070a
mov edx, dword [ebx + 0x3c]
add edx, ebx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
cmp dword [edx], 0x4550
jne 0x1002070a
mov eax, 0x20b
mov dword [esp + 0x18], 0x5e
lea ecx, [esi + 0x3c]
cmp word [edx + 0x18], ax
jne 0x100205ec
mov byte [esi + 0xd], 1
lea edi, [edx + 0x108]
mov eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], eax
mov eax, dword [edx + 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x54]
mov dword [esi + 0x30], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x2c], eax
movzx ecx, word [edx + 0x5c]
mov dword [esp + 0x14], ecx
lea ecx, [esi + 0x3c]
mov byte [esp + 0x13], 1
jmp 0x10020622
mov byte [esi + 0xd], 0
lea edi, [edx + 0xf8]
mov eax, dword [edx + 0x34]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov eax, dword [edx + 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x54]
mov dword [esi + 0x30], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x2c], eax
movzx ebx, word [edx + 0x5c]
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x14]
mov eax, edx
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + eax]
mov dword [esi + 0x44], eax
mov ax, word [edx + 0x16]
shr ax, 0xd
not al
and al, 1
cmp byte [esp + 0x13], 0
mov byte [esi + 0xe], al
je 0x10020653
add edx, 0xf8
jmp 0x10020659
add edx, 0xe8
mov eax, dword [edx]
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x100206a6
push ecx
push eax
mov ecx, esi
call fcn.10020720
test eax, eax
je 0x100206a6
test byte [eax + 0x10], 1
je 0x100206a6
sub eax, ebx
mov byte [esi + 0xf], 1
add eax, 0x10
lea ecx, [esi + 0xc4]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x94]
push eax
call fcn.1002dd50
test al, al
je 0x100206aa
push ecx
lea ecx, [esi + 0xc4]
call fcn.1002de80
jmp 0x100206aa
mov byte [esi + 0xf], 0
mov eax, dword [esi + 0x14]
xor ecx, ecx
xor ebx, ebx
cmp cx, word [eax + 6]
jae 0x100206ff
lea ecx, [esi + 0x48]
nop word [eax + eax]
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x50]
je 0x100206e6
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [eax + 0x20], xmm0
add dword [esi + 0x4c], 0x28
jmp 0x100206f0
push edi
push eax
call fcn.10020970
lea ecx, [esi + 0x48]
mov eax, dword [esi + 0x14]
inc ebx
add edi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x100206c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000007b
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10022460
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, ecx
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x10], xmm0
mov dword [edi + 4], eax
lea eax, [ebp - 0x24]
push eax
mov dword [edi], vtable.blackbone::Native.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x10], eax
je 0x100224c5
mov word [edi + 0xc], 0x101
mov eax, edi
mov dword [edi + 8], 0
mov byte [edi + 0xe], 1
pop edi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [ebp + 8]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
mov edx, dword [ebp + 8]
sete al
cmp edx, 1
mov byte [edi + 0xc], al
sete al
mov byte [edi + 0xd], al
cmp ecx, 1
jne 0x10022522
cmp edx, ecx
jne 0x1002253a
mov dword [edi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
jne 0x1002253a
test edx, edx
jne 0x1002253a
mov dword [edi + 8], 1
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov byte [edi + 0xf], 1
cmp ecx, 1
setne al
add eax, 2
mov dword [edi + 8], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8