joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbcee80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0xd25720
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, dword [esp + 0x84]
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov edi, edx
mov dword [esp + 0x18], ebx
call fcn.00b80bc0
add esp, 4
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0x1c]
mov ebp, 8
cmp dword [esp + 0x30], ebp
jae 0xbceee5
lea ecx, [esp + 0x1c]
mov eax, dword [edi + 0x60]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test al, al
je 0xbcf045
mov eax, dword [esi + 8]
cmp eax, ebx
je 0xbcf045
sub eax, 2
je 0xbcefef
sub eax, 2
je 0xbcefaf
mov ebp, 0xf
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea eax, [esp + 0x38]
mov ebx, esi
mov byte [esp + 0x7c], 1
call fcn.00c59d20
mov ecx, dword [esp + 0x38]
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jae 0xbcef54
lea ecx, [esp + 0x38]
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0xbcef63
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov edi, dword [edi + 0x60]
push edx
push ecx
push 3
push 0
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x4c], esi
jb 0xbcef97
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00cb8a36
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
mov ebp, 8
jmp 0xbcf026
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x54]
push edx
call fcn.00b80bc0
add esp, 4
cmp dword [eax + 0x14], ebp
jb 0xbcefc6
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0xbcefd4
lea ecx, [esp + 0x1c]
mov edi, dword [edi + 0x60]
push ecx
push edi
mov esi, eax
call fcn.00b730c0
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.00b74e90
cmp esi, ebx
jmp 0xbcf023
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0xbcf003
lea edx, [esp + 0x1c]
mov eax, dword [edi + 0x60]
push ebp
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push 0xb
push ebx
push edx
mov edx, dword [eax]
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
sete bl
mov dword [esp + 0x7c], 0xffffffff
cmp dword [esp + 0x30], ebp
jb 0xbcf041
mov eax, dword [esp + 0x1c]
push eax
call fcn.00cb8a36
add esp, 4
mov al, bl
jmp 0xbcf062
mov dword [esp + 0x7c], 0xffffffff
cmp dword [esp + 0x30], ebp
jb 0xbcf060
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00cb8a36
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00cb8a41
add esp, 0x6c
ret 4
Function at 0xbcf3f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0xd256e0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x34]
xor ebx, ebx
push eax
mov esi, edx
mov dword [esp + 0x18], ebx
call fcn.00b80bc0
add esp, 4
mov dword [esp + 0x5c], ebx
cmp dword [esp + 0x48], 8
mov ecx, dword [esp + 0x34]
jae 0xbcf44d
lea ecx, [esp + 0x34]
mov eax, dword [esi + 0x60]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x5c], 1
cmp dword [edi + 0xc], ebx
je 0xbcf529
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test al, al
je 0xbcf529
lea eax, [esp + 0x18]
mov ebx, edi
call fcn.00c59d20
test al, al
je 0xbcf527
mov ecx, dword [esp + 0x18]
mov edi, 0x10
cmp dword [esp + 0x2c], edi
jae 0xbcf4af
lea ecx, [esp + 0x18]
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0xbcf4be
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x28]
mov esi, dword [esi + 0x60]
push edx
push ecx
push 3
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x2c], edi
jb 0xbcf4f2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00cb8a36
add esp, 4
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x48], 8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jb 0xbcf523
mov edx, dword [esp + 0x34]
push edx
call fcn.00cb8a36
add esp, 4
mov al, bl
jmp 0xbcf56f
xor ebx, ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x2c], 0x10
jb 0xbcf541
mov eax, dword [esp + 0x18]
push eax
call fcn.00cb8a36
add esp, 4
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x48], 8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0xbcf56d
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00cb8a36
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00cb8a41
add esp, 0x50
ret 4
Function at 0xbcf590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0xd2ee60
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
lea edx, [esp + 0x5c]
mov dword [esp + 0x18], ebx
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
call fcn.00b80bc0
mov edi, 8
add esp, 4
cmp dword [eax + 0x14], edi
jb 0xbcf5fe
mov eax, dword [eax]
mov ecx, dword [esi + 0x60]
lea edx, [esp + 0x14]
push edx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0xbcf62c
cmp dword [esp + 0x18], 3
jne 0xbcf62c
mov byte [esp + 0x13], bl
cmp dword [esp + 0x14], ebx
jne 0xbcf631
mov byte [esp + 0x13], 1
cmp dword [esp + 0x70], edi
jb 0xbcf644
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00cb8a36
add esp, 4
cmp byte [esp + 0x13], bl
jne 0xbcf6e1
mov edx, dword [esp + 0x14]
push edx
call fcn.00cb7a7c
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x8c], ebx
call fcn.00b80bc0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0xbcf681
mov eax, dword [eax]
mov ecx, dword [esi + 0x60]
lea edx, [esp + 0x14]
push edx
push edi
lea edx, [esp + 0x20]
push edx
push ebx
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0xbcf6ae
mov eax, dword [esp + 0x18]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
cmp eax, ebx
setne byte [esp + 0x13]
cmp dword [esp + 0x70], 8
jb 0xbcf6c7
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00cb8a36
add esp, 4
cmp byte [esp + 0x13], bl
je 0xbcf6e8
push edi
mov dword [esp + 0x8c], 0xffffffff
call fcn.00cb9081
add esp, 4
xor al, al
jmp 0xbcf78b
lea edx, [esp + 0x44]
mov dword [esp + 0x2c], vtable.ipc::proto::VariableArray.0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 4
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x14]
push eax
lea esi, [esp + 0x30]
mov ecx, edi
call fcn.00c59aa0
add esp, 4
test al, al
je 0xbcf765
mov ecx, esi
mov esi, dword [esp + 0x20]
cmp ecx, esi
je 0xbcf751
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.00b91c90
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x13]
push ecx
mov ecx, dword [esp + 0x28]
push esi
push edx
call fcn.00bcfd30
lea ecx, [esp + 0x2c]
mov byte [esp + 0x88], bl
call fcn.00b914b0
push edi
mov dword [esp + 0x8c], 0xffffffff
call fcn.00cb9081
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00cb8a41
mov esp, ebp
pop ebp
ret 4
Function at 0xbd22f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0xd2ba0b
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00b79870
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ecx
mov dword [ecx], vtable.ipc::proto::Variable.0
mov dword [ecx + 4], ebx
mov edx, dword [esp + 0x24]
mov byte [esp + 0x14], 2
fldz
fstp qword [ecx + 0x18]
mov dword [ecx + 0x30], ebx
mov dword [ecx + 8], ebx
mov byte [ecx + 0xc], bl
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x20], 0xd95620
mov dword [ecx + 0x24], ebx
mov dword [ecx + 0x28], ebx
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x34], ebx
call fcn.00b91130
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0xc
Function at 0xbd8e80
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0xbd8e99
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x28], 0
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0xbd8eaf
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x2c], 0
pop esi
jmp 0xc84210
mov eax, dword [0xd9b258]
push esi
cmp eax, 0xffffffff
je 0xc01c1d
mov ecx, dword [0xd9b258]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0xc01c1d
push esi
call fcn.00c01b40
push esi
call fcn.00cb8a36
add esp, 4
mov edx, dword [0xd9b258]
cmp edx, 0xffffffff
jne 0xc01c4f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
je 0xc01c5d
push 0xffffffffffffffff
push esi
push 0xd9b258
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0xc01c4f
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [0xd9b258]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
mov eax, dword [0xd9f70c]
cmp eax, 0xffffffff
je 0xc8433a
mov ecx, dword [0xd9f70c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call esi
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
je 0xc84337
dec dword [ebx]
jne 0xc84337
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov eax, dword [0xd9c194]
mov dword [0xdad898], ebp
mov dword [0xdad89c], ebp
mov dword [0xdad8a0], ebp
cmp eax, 0xffffffff
je 0xc84298
mov ecx, dword [0xd9c194]
push ecx
call esi
cmp eax, ebp
je 0xc84298
mov edx, dword [0xd9c194]
cmp edx, 0xffffffff
je 0xc84298
mov eax, dword [0xd9c194]
push eax
call esi
cmp eax, ebp
je 0xc84298
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [0xd9b26c]
cmp ecx, 0xffffffff
je 0xc842d1
mov edx, dword [0xd9b26c]
push edx
call esi
cmp eax, ebp
je 0xc842d1
mov eax, dword [0xd9b26c]
cmp eax, 0xffffffff
je 0xc842d1
mov ecx, dword [0xd9b26c]
push ecx
call esi
cmp eax, ebp
je 0xc842d1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [0xd9b6dc]
cmp ecx, 0xffffffff
je 0xc8430b
mov edx, dword [0xd9b6dc]
push edx
call esi
cmp eax, ebp
je 0xc8430b
mov eax, dword [0xd9b6dc]
cmp eax, 0xffffffff
je 0xc8430b
mov ecx, dword [0xd9b6dc]
push ecx
call esi
cmp eax, ebp
je 0xc8430b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
push 1
call eax
push edi
xor edi, edi
call fcn.00c0c380
call fcn.00c02780
call fcn.00c07770
mov edi, dword [ebx + 0x10]
cmp edi, ebp
je 0xc8432e
mov edx, dword [edi]
call fcn.00bfad90
mov dword [ebx + 0x10], ebp
pop edi
pop esi
pop ebp
pop ebx
jmp 0xc01bf0
pop esi
pop ebp
pop ebx
ret
Function at 0xbda320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xd2c0fa
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dl, byte [ecx + 0x10]
mov ecx, dword [ecx]
mov byte [esp + 0x14], dl
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 4]
mov dword [esp + 0x20], esi
call edx
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], 1
mov dword [esi + 8], ebx
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x1c]
mov ecx, esi
call fcn.00bf47a0
mov byte [esp + 0x38], 2
cmp dword [esi + 8], 7
jne 0xbda3c9
push esi
lea ecx, [esp + 0x13]
call fcn.00bf5ae0
cmp eax, ebx
je 0xbda3c9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 1
mov byte [esp + 0x38], bl
call fcn.00bf46c0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00cb8a41
add esp, 0x30
ret 0x10

Function at 0xbda610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xd2d61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [ecx]
push ecx
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], esi
call eax
mov dword [esp + 0x1c], 1
mov byte [esp + 0x14], al
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.00bf47a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0xbda6b2
push esi
lea ecx, [esp + 0xf]
call fcn.00bf5ae0
test eax, eax
je 0xbda6b2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.00bf46c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00cb8a41
add esp, 0x2c
ret 0x10
Function at 0xbe1e60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0xd2d61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [ecx]
push ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, edx
mov dword [esp + 0x14], esi
call eax
cdq
mov dword [esp + 0x1c], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.00bf47a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0xbe1f0a
push esi
lea ecx, [esp + 0xf]
call fcn.00bf5ae0
test eax, eax
je 0xbe1f0a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.00bf46c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00cb8a41
add esp, 0x2c
ret 0x10
Function at 0xbe22f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0xd255e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x18], 0
cmp dword [esi + 0x14], 8
jb 0xbe2338
mov ebx, dword [esi]
jmp 0xbe233a
mov ebx, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
call ebp
cmp eax, 0xffffffff
je 0xbe2352
shr al, 4
and al, 1
jmp 0xbe2434
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00be2520
mov dword [esp + 0x44], 2
cmp dword [esi + 0x14], 8
mov edi, dword [esi + 0x10]
jb 0xbe2373
mov eax, dword [esi]
jmp 0xbe2375
mov eax, esi
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x20]
call fcn.00b7fc20
test eax, eax
jne 0xbe23aa
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0xbe23a3
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00cb8a36
add esp, 4
xor al, al
jmp 0xbe2434
lea edx, [esp + 0x1c]
push edx
call fcn.00be22f0
add esp, 4
test al, al
jne 0xbe23db
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0xbe23a3
mov eax, dword [esp + 0x1c]
push eax
call fcn.00cb8a36
add esp, 4
xor al, al
jmp 0xbe2434
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0xbe2421
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0xbe240c
cmp dword [esi + 0x14], 8
jb 0xbe23fd
mov esi, dword [esi]
push esi
call ebp
cmp eax, 0xffffffff
je 0xbe240c
shr eax, 4
and al, 1
jne 0xbe2421
lea esi, [esp + 0x1c]
mov dword [esp + 0x44], 0xffffffff
call fcn.00be24f0
xor al, al
jmp 0xbe2434
lea esi, [esp + 0x1c]
mov dword [esp + 0x44], 0xffffffff
call fcn.00be24f0
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00cb8a41
add esp, 0x34
ret

Function at 0xbe28e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xd276b3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea edi, [esp + 0x10]
call fcn.00c30e10
mov esi, eax
push 0x58
mov dword [esp + 0x3c], 0
call fcn.00cb8a50
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0xbe2942
push eax
call fcn.00be2df0
jmp 0xbe2944
xor eax, eax
push 0xffffffffffffffff
push 0
mov byte [esp + 0x40], 0
lea ecx, [eax + 0x3c]
push esi
mov dword [0xdad7c8], eax
call fcn.00b79870
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0xbe2977
mov eax, dword [esp + 0x10]
push eax
call fcn.00cb8a36
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00cb8a41
add esp, 0x30
ret
Function at 0xbe4040
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, ecx
call fcn.00b809e0
test al, al
jne 0xbe409f
lea eax, [esp + 4]
push esi
push eax
call fcn.00be3bb0
mov eax, dword [esp + 0xc]
mov esi, 8
add esp, 8
cmp dword [esp + 0x18], esi
jae 0xbe407b
lea eax, [esp + 4]
push 5
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x18], esi
jb 0xbe409f
mov ecx, dword [esp + 4]
push ecx
call fcn.00cb8a36
add esp, 4
mov ecx, dword [esp + 0x20]
pop esi
xor ecx, esp
call fcn.00cb8a41
add esp, 0x20
ret

Function at 0xbe5780
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0xd293b3
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x24]
mov dword [esi + 0xc], ecx
push edi
mov dword [esi], vtable.ggadget::View::Impl::TimerWatchCallback.0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edx
mov dword [esi + 0x20], edi
push eax
lea ecx, [esi + 0x34]
push ecx
xor ebx, ebx
mov dword [eax], 0x9c43
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
call fcn.00c00800
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov al, 1
mov byte [esp + 0x1c], al
push 0xc
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ebp
mov byte [esi + 0x58], al
call fcn.00cb8a50
add esp, 4
cmp eax, edi
je 0xbe5835
mov dword [eax], vtable.._AV__MethodSlot0_XVTimerWatchCallback_Impl_View_ggadget__P81234_AEXXZ_ggadget__.0
mov dword [eax + 4], esi
mov dword [eax + 8], 0xbe5ab0
mov edi, eax
mov eax, dword [esi + 0x18]
add eax, 0x160
push edi
call fcn.00bfacd0
mov dword [esi + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x1c
Function at 0xbecf60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xd2d61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], esi
call eax
fstp qword [esp + 0x14]
mov dword [esp + 0x1c], 3
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.00bf47a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0xbecff8
push esi
lea ecx, [esp + 0xf]
call fcn.00bf5ae0
test eax, eax
je 0xbecff8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.00bf46c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00cb8a41
add esp, 0x2c
ret 0x10

Function at 0xbed140
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0xd2d61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], esi
call eax
cdq
mov dword [esp + 0x1c], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.00bf47a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0xbed1dd
push esi
lea ecx, [esp + 0xf]
call fcn.00bf5ae0
test eax, eax
je 0xbed1dd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.00bf46c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00cb8a41
add esp, 0x2c
ret 0x10