joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417271
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4172b3
call fcn.0041c082
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4172b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4172aa
xor eax, eax
jmp 0x4172bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004172c1
pop edi
pop esi
pop ebx
ret 4

Function at 0x41c6aa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41c6d8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41c6f6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041c610
jmp 0x41c6f6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41c6f6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041c610
test edi, edi
mov eax, edi
jne 0x41c6e0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x404328
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x404317
jg 0x404280
test edx, edx
je 0x404317
nop dword [eax]
call fcn.00405a60
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4042d4
jg 0x404297
test esi, esi
je 0x4042d4
cmp ebx, eax
jg 0x4042a7
jl 0x4042a1
cmp edi, esi
jae 0x4042a7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00408810
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4042fb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x404311
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x404280
jl 0x404311
test edi, edi
jne 0x404280
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40434a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40434c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4043ca
jg 0x40435f
test esi, esi
je 0x4043ca
test eax, eax
jl 0x4043ae
jg 0x404369
test ebx, ebx
je 0x4043ae
cmp edi, eax
jg 0x404379
jl 0x404373
cmp esi, ebx
jae 0x404379
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00408810
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x4043ca
jg 0x4043b1
test esi, esi
je 0x4043ca
jmp 0x4043b1
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4043ca
push eax
push esi
push 1
push edx
call fcn.004105e1
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4043e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404412
jl 0x404405
test ecx, ecx
jne 0x404412
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4044d2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00405a80
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40447e
jg 0x40443d
test esi, esi
je 0x40447e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x404455
mov eax, dword [esp + 0x10]
jl 0x40444f
cmp eax, esi
jae 0x404455
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00408810
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40449f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4044bb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x404424
jl 0x4044bb
test ecx, ecx
jne 0x404424
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x404511
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x404511
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00408810
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x404580
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x404537
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x404569
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00410bda
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x404594
cmp edi, eax
ja 0x404545
test ecx, ecx
je 0x404580
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00410bda
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x432004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404940
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040651f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40497c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40497c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040651f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404a66
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4049a4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4049d7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040fb9f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040651f
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x404a39
sub eax, 1
je 0x404a39
sub eax, 2
jne 0x404a66
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040fb9f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040651f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404a56
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004105e1
add esp, 0x10
cmp edi, eax
jne 0x404a66
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x404967
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040651f
mov esp, ebp
pop ebp
ret 4
Function at 0x405790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x432004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40584c
cmp byte [esi + 0x3d], 0
je 0x40584c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40583a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x405802
sub eax, 1
je 0x405806
sub eax, 2
jne 0x40583a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040651f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405823
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004105e1
add esp, 0x10
cmp edi, eax
jne 0x40583a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040651f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040651f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040651f
mov esp, ebp
pop ebp
ret

Function at 0x417930
Capabilities:
Read file on windows

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404655
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404696
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404692
nop word [eax + eax]
cmp esi, edx
jae 0x404696
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404680
cmp esi, edx
jb 0x40469b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x409880
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.website_link
add ecx, 0x1c
call fcn.005457cf
test eax, eax
je 0x4098dd
mov ecx, eax
call fcn.00545b5e
push eax
lea ecx, [ebp - 4]
call fcn.00404ca0
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
je 0x4098c5
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 4]
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4098dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40a3a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x677e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x800
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x808], 0
call fcn.0057ee10
add esp, 0xc
lea eax, [ebp - 0x804]
push dword [esi + 4]
push 0x400
push eax
push dword [esi + 8]
push 0x6505cc
push str.AutoUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.00404ca0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret 4
Function at 0x40a710
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab05e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x677e70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.CFileDownloader.0
mov dword [esi + 8], vtable.AU::CMessageLoop.0
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], 0
lea edi, [esi + 0x14]
mov dword [ebp - 0x18], edi
mov dword [edi + 4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
mov dword [edi], vtable.BULL::CCallbackHTTPTaskPtr_class_CFileDownloader_.0
mov dword [ebp - 0x10], 0
call fcn.0040c210
mov ecx, dword [ebp - 0x10]
mov dword [edi + 4], ecx
test ecx, ecx
je 0x40a79e
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [edi + 4]
mov dword [eax + 0x24], esi
mov byte [ebp - 4], 1
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x40a7b7
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x40a7d7
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x40a7f7
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x34], eax
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x40a817
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 0x30], 0x40b240
mov eax, dword [esi + 0x18]
mov dword [eax + 0x40], 0x40b450
mov eax, dword [esi + 0x18]
mov dword [eax + 0x54], 0x40b710
mov eax, dword [esi + 0x18]
mov dword [eax + 0x34], 0x40b9f0
mov eax, dword [esi + 0x18]
mov dword [eax + 0x3c], 0x40b8b0
mov eax, esi
mov dword [esi + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ce70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword fs:[0x2c]
push esi
mov esi, ecx
mov edx, dword [eax]
mov eax, dword [0x695a78]
cmp eax, dword [edx + 4]
jle 0x40cec0
push 0x695a78
call fcn.0053e619
add esp, 4
cmp dword [0x695a78], 0xffffffff
jne 0x40cec0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x5b7930
mov dword [0x695a7c], eax
call fcn.0053e98d
push 0x695a78
call fcn.0053e5da
add esp, 8
push dword [0x695a7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add eax, esi
push eax
push dword [0x695a7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
dec eax
neg eax
pop esi
sbb eax, eax
inc eax
ret
Function at 0x40ef20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab86c
mov eax, dword fs:[0]
push eax
mov eax, 0x181c
call fcn.0053f090
mov eax, dword [0x677e70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x18]
lea eax, [ebp - 0x1020]
push 0x650efc
push eax
call fcn.0040cfa0
add esp, 8
mov dword [ebp - 4], 0
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
mov eax, dword [ebp - 0x1020]
cmp eax, ecx
je 0x40efa0
push eax
call fcn.0053eac5
add esp, 4
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f04b
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0x400
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x818]
call fcn.0040c4d0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x1828]
push dword [ebp - 0x818]
push 0x650f08
push eax
call fcn.0040cfa0
add esp, 8
mov byte [ebp - 4], 3
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov eax, dword [ebp - 0x1828]
lea ecx, [ebp - 0x1820]
cmp eax, ecx
je 0x40f02e
push eax
call fcn.0053eac5
add esp, 4
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x810]
cmp eax, ecx
je 0x40f047
push eax
call fcn.0053eac5
add esp, 4
xor al, al
jmp 0x40f04d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret 4
Function at 0x40f1c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab92d
mov eax, dword fs:[0]
push eax
mov eax, 0x181c
call fcn.0053f090
mov eax, dword [0x677e70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x20]
lea eax, [ebp - 0x1020]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push 0x650f1c
push eax
call fcn.0040cfa0
add esp, 0x10
mov dword [ebp - 4], 0
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
mov eax, dword [ebp - 0x1020]
cmp eax, ecx
je 0x40f246
push eax
call fcn.0053eac5
add esp, 4
mov eax, dword [esi + 0x1c]
push dword [esi + 0x20]
cmp dword [eax - 0xc], 0
jne 0x40f306
push 0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40f389
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0x400
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x818]
call fcn.0040c4d0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x1020]
push dword [ebp - 0x818]
push 0x650f4c
push eax
call fcn.0040cfa0
add esp, 8
mov byte [ebp - 4], 3
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov eax, dword [ebp - 0x1020]
lea ecx, [ebp - 0x1018]
cmp eax, ecx
je 0x40f2e6
push eax
call fcn.0053eac5
add esp, 4
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x810]
cmp eax, ecx
je 0x40f2ff
push eax
call fcn.0053eac5
add esp, 4
xor al, al
jmp 0x40f38b
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40f389
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0x400
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x818]
call fcn.0040c4d0
mov dword [ebp - 4], 5
lea eax, [ebp - 0x1828]
push dword [ebp - 0x818]
push 0x650f4c
push eax
call fcn.0040cfa0
add esp, 8
mov byte [ebp - 4], 6
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov eax, dword [ebp - 0x1828]
lea ecx, [ebp - 0x1820]
jmp 0x40f2d9
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret 4
Function at 0x40fda0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abb48
mov eax, dword fs:[0]
push eax
mov eax, 0x105c
call fcn.0053f090
mov eax, dword [0x677e70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebx + 0x1c]
lea eax, [ebp - 0x818]
push dword [ebx + 0x18]
push str._e___s__s_
push eax
call fcn.0040cfa0
add esp, 0xc
mov dword [ebp - 4], 0
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x810]
cmp eax, ecx
je 0x40fe1e
push eax
call fcn.0053eac5
add esp, 4
mov ecx, 4
mov dword [ebp - 0x1024], 4
call fcn.0040ce70
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0x18]
sub eax, 0x10
push eax
call fcn.004053d0
lea edi, [eax + 0x10]
mov dword [ebp - 0x1028], edi
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x1c]
sub eax, 0x10
push eax
call fcn.004053d0
add esp, 8
lea esi, [eax + 0x10]
mov dword [ebp - 0x102c], esi
mov byte [ebp - 4], 3
cmp dword [ebx + 0x20], 0
je 0x40ff47
push 0x38
lea eax, [ebp - 0x1064]
mov dword [ebp - 0x1068], 0x3c
push 0
push eax
call fcn.0057ee10
add esp, 0xc
mov dword [ebp - 0x105c], str.runas
lea eax, [ebp - 0x1068]
mov dword [ebp - 0x1058], edi
mov dword [ebp - 0x1054], esi
mov dword [ebp - 0x104c], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40ffa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x40ff10
lea eax, [ebp - 0x818]
push 0x651028
push eax
call fcn.0040cfa0
mov byte [ebp - 4], 4
add esp, 4
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x810]
jmp 0x40ff94
cmp eax, 2
jne 0x40ff2c
lea eax, [ebp - 0x818]
push str._AsAdmin
push eax
call fcn.0040cfa0
mov byte [ebp - 4], 5
jmp 0x40feec
push eax
lea eax, [ebp - 0x818]
push 0x65107c
push eax
call fcn.0040cfa0
mov byte [ebp - 4], 6
add esp, 8
jmp 0x40feef
push 1
push 0
push esi
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jae 0x40ffa1
push eax
lea eax, [ebp - 0x1020]
push 0x65107c
push eax
call fcn.0040cfa0
add esp, 8
mov byte [ebp - 4], 7
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov eax, dword [ebp - 0x1020]
lea ecx, [ebp - 0x1018]
cmp eax, ecx
je 0x40ffa1
push eax
call fcn.0053eac5
add esp, 4
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ffbf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x40ffd8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0xfffffffc
call fcn.0040ce70
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret 4