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

Disassembly:
push 0x3c
mov eax, 0x44dce3
call fcn.0041be61
xor ebx, ebx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
movzx eax, byte [ebp + 8]
add eax, 0x405
push eax
call fcn.0043fa04
cmp dword [ebp - 0x30], 0xa
mov edi, 0x1000
jbe 0x43f53d
mov esi, 0x48fbe0
cmp dword [0x48fbf0], ebx
je 0x43f405
mov ecx, esi
call fcn.00407ac2
test al, al
jne 0x43f41d
lea ecx, [ebp - 0x28]
call fcn.00408076
push eax
mov ecx, esi
call fcn.00406b5a
lea ecx, [ebp - 0x28]
call fcn.00401dcb
push 0x460330
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00404504
pop ecx
mov esi, 0x48fc2c
push eax
mov ecx, esi
call fcn.00406b5a
lea ecx, [ebp - 0x28]
call fcn.00401dcb
cmp byte [ebp + 8], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
je 0x43f4a0
push 0x48fe1c
call fcn.00404c23
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00402d03
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x43f4f3
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
cmp eax, edi
jb 0x43f4ea
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00401dfe
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
jmp 0x43f4ea
push 0x48fe04
call fcn.00404c23
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00402d03
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x43f4f3
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
cmp eax, edi
jb 0x43f4ea
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00401dfe
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
push eax
push ecx
call fcn.0041b53b
pop ecx
pop ecx
cmp dword [0x48fc40], 8
push 0x46034c
cmovae esi, dword [0x48fc2c]
push esi
call fcn.0042555b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43f53d
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
push esi
cmovae ecx, dword [ebp - 0x40]
push 1
push dword [ebp - 0x30]
push ecx
call fcn.004251b7
dec eax
neg eax
push esi
sbb al, al
inc al
mov bl, al
call fcn.00424c3c
add esp, 0x14
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x43f571
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
cmp eax, edi
jb 0x43f568
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00401dfe
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
push eax
push ecx
call fcn.0041b53b
pop ecx
pop ecx
mov al, bl
call fcn.0041be10
ret 4
Function at 0x43f57b
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x44dd17
call fcn.0041be61
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
movzx eax, byte [ebp + 8]
lea eax, [eax*2 + 0x401]
push eax
call fcn.0043fa04
cmp dword [ebp - 0x18], 0xa
jbe 0x43f5ea
call fcn.0043fa6d
mov esi, eax
test esi, esi
je 0x43f5ea
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
push eax
call fcn.004251b7
dec eax
neg eax
push esi
sbb al, al
lea ebx, [eax + 1]
call fcn.00424c3c
add esp, 0x14
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x43f621
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x43f618
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401dfe
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041b53b
pop ecx
pop ecx
mov al, bl
call fcn.0041be10
ret 4

Function at 0x43f62b
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x44dd4b
call fcn.0041be61
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
push 0x3fa
call fcn.0043fa04
call fcn.0043f6cc
mov esi, eax
test esi, esi
je 0x43f68d
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
push eax
call fcn.004251b7
dec eax
neg eax
push esi
sbb al, al
lea ebx, [eax + 1]
call fcn.00424c3c
add esp, 0x14
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x43f6c4
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x43f6bb
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401dfe
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041b53b
pop ecx
pop ecx
mov al, bl
call fcn.0041be10
ret
Function at 0x43f744
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x48fcd8]
shr eax, 0x11
mov dword [ebp - 4], 1
push esi
push edi
test al, 1
je 0x43f773
cmp dword [0x48ffa4], 0
je 0x43f773
mov esi, 0x48ff94
push esi
call fcn.0043fa26
jmp 0x43f79d
and dword [0x48ffa4], 0
mov esi, 0x48ff94
cmp dword [0x48ffa8], 0x10
mov eax, esi
push esi
cmovae eax, dword [0x48ff94]
push 0x3fc
mov byte [eax], 0
call fcn.0043fa04
call fcn.0043fb1f
mov edi, eax
test edi, edi
je 0x43f7fe
mov edx, dword [0x48ffa8]
mov eax, esi
cmp edx, 0x10
cmovae eax, dword [0x48ff94]
mov eax, dword [eax]
cmp eax, dword [str.FQbe]
jne 0x43f7f2
mov eax, dword [0x48ffa4]
cmp edx, 0x10
mov ecx, esi
cmovae ecx, dword [0x48ff94]
add eax, 0xfffffffc
push edi
push 1
push eax
lea eax, [ecx + 4]
push eax
call fcn.004251b7
add esp, 0x10
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 4], al
push edi
call fcn.00424c3c
mov eax, dword [ebp - 4]
pop ecx
jmp 0x43f800
xor al, al
and dword [0x48ffa4], 0
cmp dword [0x48ffa8], 0x10
pop edi
cmovae esi, dword [0x48ff94]
mov byte [esi], 0
pop esi
leave
ret

Function at 0x43f81c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x469034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x48fbf0], 0
push esi
mov esi, 0x48fbe0
jne 0x43f937
push ebx
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.00402e90
cmp dword [0x48fbf4], 8
mov eax, esi
cmovae eax, dword [0x48fbe0]
xor ebx, ebx
push ebx
push eax
call fcn.00424645
pop ecx
pop ecx
test eax, eax
je 0x43f895
push 0x45de50
mov ecx, esi
call fcn.00402e90
mov ecx, esi
call fcn.00407f19
cmp dword [0x48fbf0], ebx
je 0x43f8ba
cmp dword [0x48fbf4], 8
mov eax, esi
push ebx
cmovae eax, dword [0x48fbe0]
push eax
call fcn.00424645
pop ecx
pop ecx
test eax, eax
je 0x43f8cd
push str.TEMP
call fcn.0042548f
pop ecx
push eax
mov ecx, esi
call fcn.00402e90
cmp dword [0x48fbf0], ebx
je 0x43f8f2
cmp dword [0x48fbf4], 8
mov eax, esi
push ebx
cmovae eax, dword [0x48fbe0]
push eax
call fcn.00424645
pop ecx
pop ecx
test eax, eax
je 0x43f905
push 0x460360
call fcn.0042548f
pop ecx
push eax
mov ecx, esi
call fcn.00402e90
cmp dword [0x48fbf0], ebx
je 0x43f92a
cmp dword [0x48fbf4], 8
mov eax, esi
push ebx
cmovae eax, dword [0x48fbe0]
push eax
call fcn.00424645
pop ecx
pop ecx
test eax, eax
je 0x43f936
push 0x48fbb0
mov ecx, esi
call fcn.00404c8b
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041b52d
leave
ret
Function at 0x443c74
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x469034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [esi + 0xc], 0x201
jne 0x443d65
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041d2a0
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x44b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x244], eax
xor eax, eax
push 7
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
lea edi, [ebp - 0x234]
pop ecx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x238], 5
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_HideCaret]
mov eax, dword [ebx + 0xb8]
pop edi
cmp eax, dword [ebx + 0xbc]
je 0x443d68
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x443d68
and dword [eax], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b52d
leave
ret 0xc
Function at 0x449590
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4495ad
mov eax, dword [esi]
test eax, eax
je 0x4496d1
cmp word [eax], 0
je 0x4496d1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4496d1
test al, 0x10
jne 0x4496d1
cmp dword [esi + 0x14], 8
jb 0x4495df
mov esi, dword [esi]
push 0x460390
push esi
call fcn.0042555b
mov esi, eax
add esp, 8
test esi, esi
je 0x4496d1
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.00426e7b
push 2
push 0
push esi
call fcn.00426547
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00426e7b
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004273b2
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x4496c8
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.00425b8e
add esp, 0x10
test eax, eax
je 0x4496c8
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x4496c8
cmp dword [esp + 0x20], 0x48535844
jne 0x4496c8
cmp dword [esp + 0x24], 0x28
jne 0x4496c8
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.00424c3c
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40555a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
and dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00410628
mov esi, eax
test esi, esi
js 0x405616
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.00410628
mov esi, eax
test esi, esi
jne 0x40560f
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov eax, dword [ebp - 4]
push 0x2f
pop edx
movzx ecx, word [eax]
cmp dx, cx
je 0x4055c9
push 0x2d
pop edx
cmp dx, cx
jne 0x40562e
lea esi, [eax + 2]
push esi
push str.standalone
call edi
test eax, eax
jne 0x4055e3
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x4055f5
push esi
push str.standalone:temp
call edi
test eax, eax
jne 0x405635
mov dword [ebx], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.00410628
mov esi, eax
test esi, esi
je 0x4055b3
xor eax, eax
test esi, esi
cmovns esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x405623
push eax
call fcn.0040e741
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, 0x80070057
jmp 0x405619
push esi
push str.standalone:delete
call edi
mov esi, 0x80070057
jmp 0x405616
Function at 0x409a82
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x44], ebx
je 0x409a9f
xor esi, esi
inc esi
jmp 0x409c74
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x409af0
mov eax, dword [edi + 0xc]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
test esi, esi
js 0x409c74
lea eax, [ebp + 8]
push eax
push 2
push ebx
push dword [edi + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c74
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], 1
mov eax, dword [edi + 0x48]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Size
push ecx
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c65
mov eax, dword [edi + 0x50]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.Progress
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c65
push 4
lea eax, [edi + 0x74]
push eax
push 4
push 0
push str.LastAttemptHigh
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c65
push 4
lea eax, [edi + 0x70]
push eax
push 4
push 0
push str.LastAttemptLow
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c65
push 4
lea eax, [edi + 0x6c]
push eax
push 4
push 0
push str.LastError
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c65
push 4
lea eax, [edi + 0x5c]
push eax
push 4
push 0
push str.StateCache
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c65
push 4
lea eax, [edi + 0x60]
push eax
push 4
push 0
push str.StateExtract
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c65
push 4
lea eax, [edi + 0x64]
push eax
push 4
push 0
push str.StateVerify
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c65
push 4
lea eax, [edi + 0x68]
push eax
push 4
push 0
push str.StateAvailable
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 8], 0
je 0x409c74
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c673
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x116c
call fcn.00411ac9
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1164], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x116c], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
push 0x1154
mov dword [ebp - 0x1168], eax
lea eax, [ebp - 0x1158]
push edi
push eax
mov dword [ebp - 0x115c], edi
mov dword [ebx], edi
call fcn.0041259b
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x1150]
mov dword [ebp - 0x1158], 0x1154
push 0x80
push eax
mov dword [ebp - 0x1154], 7
call fcn.00416833
add esp, 0x1c
mov dword [ebp - 0x1160], 0x1048
lea eax, [ebp - 0x1160]
push eax
lea eax, [ebp - 0x1050]
push eax
push edi
push edi
push str.Path
push dword [ebp - 0x1164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c7a3
lea eax, [ebp - 0x1160]
mov dword [ebp - 0x1160], 4
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push str.Priority
push dword [ebp - 0x1164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c7a3
lea eax, [ebp - 0x115c]
push eax
push dword [ebp - 0x1168]
lea eax, [ebp - 0x1158]
push eax
push dword [ebp - 0x116c]
call fcn.0040c5fc
mov esi, eax
test esi, esi
js 0x40c7a3
mov eax, dword [ebp - 0x115c]
mov esi, edi
mov dword [ebx], eax
mov dword [ebp - 0x115c], edi
jmp 0x40c7a9
mov edi, dword [ebp - 0x115c]
test edi, edi
je 0x40c7be
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 4
add eax, edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004119c3
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40cb30
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 0x250]
mov edi, esi
cmp eax, 0xffffffff
jne 0x40cb4d
inc edi
jmp 0x40cc18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
cmp dword [ebp + 8], esi
je 0x40cc18
cmp dword [ebx + 0x14], esi
jne 0x40cc18
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x250], eax
cmp eax, 0xffffffff
jne 0x40cba7
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40cc18
push 0
push 0
push dword [ebx + 0x244]
push dword [ebx + 0x240]
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40cbdb
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40cc18
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40cbff
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40cc18
mov eax, dword [ebx + 0x244]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x240]
push eax
push edx
mov ecx, dword [esi]
push eax
push edx
push esi
call dword [ecx + 0x50]
mov eax, dword [ebx + 0x250]
cmp eax, 0xffffffff
je 0x40cc31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x40ddce
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
push ebx
push edi
mov dword [ebp - 4], edx
mov edi, 0x80070000
mov eax, dword [ecx + 8]
mov dword [ebp - 8], edx
test eax, eax
je 0x40ddfb
lea ecx, [ebp - 4]
push ecx
push eax
push edx
call fcn.0040dfb8
mov ebx, eax
jmp 0x40de3a
lea eax, [ebp - 4]
push eax
push dword [ecx + 0x30]
movzx eax, byte [ecx + 0x12]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push eax
lea eax, [ecx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40de3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40de6e
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40de66
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40de6e
xor ebx, ebx
cmp dword [ebp - 8], ebx
sete bl
cmp dword [ebp - 4], 0
je 0x40de7d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40dfb8
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x44
pop ebx
push 1
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xff
call fcn.00411704
mov edi, eax
test edi, edi
jne 0x40dfea
mov esi, 0x8007000e
jmp 0x40e0bb
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.0040e383
mov esi, eax
test esi, esi
js 0x40e0bb
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40e0b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40e0a0
cmp dword [ebp - 0xc], ebx
jbe 0x40e05f
push 1
push dword [ebp - 0xc]
push edi
call fcn.00411750
mov ebx, eax
test ebx, ebx
jne 0x40e05d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e0bb
mov edi, ebx
cmp dword [ebp - 8], 0xff
jbe 0x40e07a
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.0040e383
mov esi, eax
test esi, esi
js 0x40e0bb
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40e0b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e0bb
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor edi, edi
xor esi, esi
cmp dword [ebp - 4], 0
je 0x40e0c9
push dword [ebp - 4]
call fcn.0040e741
test edi, edi
je 0x40e0d3
push edi
call fcn.00411726
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e0de
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e180
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e180
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x40e17a
push 0x5c
pop edx
cmp ax, dx
cmove ebx, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x40e117
test ebx, ebx
je 0x40e17a
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040e0de
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40e17f
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e176
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e166
xor esi, esi
inc esi
jmp 0x40e17f
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40e17f
xor esi, esi
jmp 0x40e17f
mov esi, 0x80070003
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8