joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c58
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x210], ebx
je 0x409ddc
cmp eax, dword [esi + 0x218]
jae 0x409ddc
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x2a]
xor edi, edi
xor ecx, ecx
inc edi
add eax, dword [esi + 0x220]
push ebx
adc ecx, dword [esi + 0x224]
mov dword [ebp - 8], edi
push ecx
push eax
push dword [esi + 0x20c]
call fcn.00577d2f
push dword [esi + 0x20c]
lea eax, [ebp - 0x28]
push edi
push 0x1e
push eax
call fcn.005779fa
add esp, 0x20
cmp dword [ebp - 0x28], 0x4034b50
jne 0x409ddc
cmp dword [ebp - 0x16], ebx
je 0x409ddc
movzx eax, word [ebp - 0xc]
cdq
mov ecx, eax
movzx eax, word [ebp - 0xe]
mov ebx, edx
cdq
add ecx, eax
push edi
adc ebx, edx
push ebx
push ecx
push dword [esi + 0x20c]
call fcn.00577d2f
movzx eax, word [ebp - 0x20]
add esp, 0x10
test eax, eax
je 0x409dbf
jle 0x409ddc
cmp eax, 7
jle 0x409ddc
cmp eax, 8
jne 0x409ddc
push dword [ebp - 0x16]
call fcn.0057365e
mov ebx, eax
pop ecx
test ebx, ebx
je 0x409ddc
push dword [esi + 0x20c]
push edi
push dword [ebp - 0x16]
push ebx
call fcn.005779fa
add esp, 0x10
cmp eax, edi
je 0x409d5a
and dword [ebp - 8], 0
push ebx
call fcn.0057403d
pop ecx
mov eax, dword [ebp - 8]
jmp 0x409dde
mov eax, dword [ebp - 0x16]
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x12]
push 0x38
push str.1.2.3
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x60]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x60], ebx
call fcn.005a29e0
add esp, 0x10
test eax, eax
jne 0x409d47
lea eax, [ebp - 0x60]
push 4
push eax
call fcn.005a2ab0
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call fcn.005a3fc0
add esp, 0xc
cmp esi, edi
jne 0x409daf
xor esi, esi
lea eax, [ebp - 0x60]
push eax
call fcn.005a3fc0
pop ecx
test esi, esi
je 0x409d4b
jmp 0x409d47
push dword [esi + 0x20c]
push edi
push dword [ebp - 0x16]
push dword [ebp + 8]
call fcn.005779fa
add esp, 0x10
cmp eax, edi
je 0x409d52
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40bfaa
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5d5799
call fcn.005c3f5c
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.wxObject.0
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.wxDCBase.0
call fcn.005247c0
fld1
mov cl, byte [esi + 8]
fst qword [esi + 0x20]
and cl, 0xe2
fst qword [esi + 0x28]
and al, 1
fst qword [esi + 0x30]
or cl, al
fst qword [esi + 0x38]
or cl, 2
fst qword [esi + 0x40]
xor eax, eax
fstp qword [esi + 0x48]
inc eax
mov byte [esi + 8], cl
lea ecx, [esi + 0x84]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], 5
mov dword [esi + 0x7c], 0x6a
mov dword [esi + 0x80], eax
call fcn.00523c10
mov byte [ebp - 4], 1
lea ecx, [esi + 0x8c]
call fcn.00523720
mov byte [ebp - 4], 2
push 8
call fcn.0050a710
pop ecx
push eax
lea ecx, [esi + 0x94]
call fcn.0040be14
mov byte [ebp - 4], 3
push 0xa
call fcn.00509ee0
pop ecx
push eax
lea ecx, [esi + 0x9c]
call fcn.0040bee5
mov byte [ebp - 4], 4
push 0x10
call fcn.00509ee0
pop ecx
push eax
lea ecx, [esi + 0xb0]
call fcn.0040bee5
mov byte [ebp - 4], 5
lea ecx, [esi + 0xc4]
call fcn.0040bf77
mov byte [ebp - 4], 6
lea ecx, [esi + 0xcc]
call fcn.005232c0
mov byte [ebp - 4], 7
and byte [esi + 8], 0xeb
mov byte [esi + 0xd4], bl
mov dword [esi + 0x64], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x68], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40e54a
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x5da421
call fcn.005c3f5c
sub esp, 0x488
push ebx
push esi
push edi
lea eax, [ebp - 0x38]
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
call fcn.00423489
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28c]
mov byte [ebp - 0x11], 0
call fcn.00409792
mov byte [ebp - 4], 2
push 0x104
lea eax, [ebp - 0x494]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x28c]
call fcn.004097c4
test eax, eax
je 0x40e610
push dword [ebp + 0xc]
lea esi, [ebp - 0x28c]
call fcn.00409b7d
mov esi, eax
cmp esi, 0xffffffff
je 0x40e5f9
mov ecx, esi
lea eax, [ebp - 0x28c]
call fcn.00409c37
push edi
push eax
lea eax, [ebp - 0x38]
call fcn.0040eccb
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
jne 0x40e5e6
call fcn.005749cd
push dword [ebp - 0x2c]
mov eax, esi
lea ecx, [ebp - 0x28c]
call fcn.00409c58
mov byte [ebp - 0x11], bl
lea edi, [ebp - 0x28c]
call fcn.00409837
cmp byte [ebp - 0x11], 0
jne 0x40e6a5
xor edi, edi
push 0x62bb0c
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.00574520
add esp, 0xc
test eax, eax
je 0x40e63f
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x6797f0
call fcn.0040b45d
mov dword [ebp - 0x18], ebx
jmp 0x40e726
push 2
push edi
push dword [ebp + 0xc]
call fcn.005774ca
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005776ec
pop ecx
push edi
push edi
push dword [ebp + 0xc]
mov esi, eax
call fcn.005774ca
add esp, 0xc
push edi
push esi
lea eax, [ebp - 0x38]
call fcn.0040eccb
mov eax, dword [ebp - 0x2c]
mov edi, eax
cmp eax, dword [ebp - 0x28]
jbe 0x40e67e
call fcn.005749cd
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x38]
push ebx
push esi
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.00438751
push eax
call fcn.005779fa
push dword [ebp + 0xc]
call fcn.00574721
add esp, 0x14
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
sub esi, edi
cmp edi, dword [ebp - 0x28]
jbe 0x40e6b7
call fcn.005749cd
mov eax, dword [ebp - 0x38]
push esi
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.00438751
push eax
lea ecx, [ebp - 0x60]
call fcn.004d62e0
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0x32
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
call fcn.004fe040
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004fa920
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
test al, al
jne 0x40e702
push 0x6797f0
jmp 0x40e706
lea eax, [ebp - 0x40]
push eax
call fcn.0040b45d
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0040b657
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.004d6220
mov byte [ebp - 4], bl
lea edi, [ebp - 0x28c]
call fcn.00409837
mov byte [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.004830dd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x40e755
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x5da3d9
call fcn.005c3f5c
sub esp, 0x488
push ebx
push esi
push edi
lea eax, [ebp - 0x38]
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
call fcn.00423489
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28c]
mov byte [ebp - 0x11], 0
call fcn.00409792
mov byte [ebp - 4], 2
push 0x104
lea eax, [ebp - 0x494]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x28c]
call fcn.004097c4
test eax, eax
je 0x40e81b
push dword [ebp + 0xc]
lea esi, [ebp - 0x28c]
call fcn.00409b7d
mov esi, eax
cmp esi, 0xffffffff
je 0x40e804
mov ecx, esi
lea eax, [ebp - 0x28c]
call fcn.00409c37
push edi
push eax
lea eax, [ebp - 0x38]
call fcn.0040eccb
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
jne 0x40e7f1
call fcn.005749cd
push dword [ebp - 0x2c]
mov eax, esi
lea ecx, [ebp - 0x28c]
call fcn.00409c58
mov byte [ebp - 0x11], bl
lea edi, [ebp - 0x28c]
call fcn.00409837
cmp byte [ebp - 0x11], 0
jne 0x40e8ae
xor edi, edi
push 0x62bb0c
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.00574520
add esp, 0xc
test eax, eax
je 0x40e848
mov ecx, dword [ebp + 8]
push 0x6797f0
call fcn.0040cac0
mov dword [ebp - 0x18], ebx
jmp 0x40e92d
push 2
push edi
push dword [ebp + 0xc]
call fcn.005774ca
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005776ec
pop ecx
push edi
push edi
push dword [ebp + 0xc]
mov esi, eax
call fcn.005774ca
add esp, 0xc
push edi
push esi
lea eax, [ebp - 0x38]
call fcn.0040eccb
mov eax, dword [ebp - 0x2c]
mov edi, eax
cmp eax, dword [ebp - 0x28]
jbe 0x40e887
call fcn.005749cd
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x38]
push ebx
push esi
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.00438751
push eax
call fcn.005779fa
push dword [ebp + 0xc]
call fcn.00574721
add esp, 0x14
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
sub esi, edi
cmp edi, dword [ebp - 0x28]
jbe 0x40e8c0
call fcn.005749cd
mov eax, dword [ebp - 0x38]
push esi
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.00438751
push eax
lea ecx, [ebp - 0x60]
call fcn.004d62e0
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0x32
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
call fcn.004fe040
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004fa920
mov ecx, dword [ebp + 8]
test al, al
jne 0x40e909
push 0x6797f0
jmp 0x40e90d
lea eax, [ebp - 0x40]
push eax
call fcn.0040cac0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0040b657
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.004d6220
mov byte [ebp - 4], bl
lea edi, [ebp - 0x28c]
call fcn.00409837
mov byte [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.004830dd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x40fdf8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x5d55fe
call fcn.005c3f5c
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
lea ecx, [esi + 0x40]
mov dword [esi], vtable.EL_CrcPatcher.0
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call fcn.004032e8
mov dword [ebp - 4], edi
mov dword [esi + 0x5c], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x410fd5
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x5da35c
call fcn.005c3f5c
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp dword [esi + 0x5c], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x411002
call edi
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
test byte [0x6b4094], 1
jne 0x411021
or dword [0x6b4094], 1
and dword [ebp - 4], 0
call edi
mov dword [0x6b4090], eax
or dword [ebp - 4], 0xffffffff
call edi
mov dword [ebp - 0x10], eax
sub eax, dword [0x6b4090]
cmp eax, 0x3e8
mov eax, dword [ebp + 8]
jae 0x411040
cmp eax, dword [ebp + 0x10]
jne 0x4110b3
cmp ebx, dword [ebp + 0x14]
jne 0x4110b3
sub eax, dword [esi + 0x38]
sbb ebx, dword [esi + 0x3c]
js 0x4110ab
jg 0x41104e
test eax, eax
jbe 0x4110ab
and dword [ebp + 8], 0
mov edi, dword [esi + 8]
mov dword [ebp + 0xc], ebx
and dword [ebp + 0xc], 0x80000000
and ebx, 0x7fffffff
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0x5c]
mov dword [ebp + 0x14], ebx
fild qword [ebp + 0x10]
fild qword [ebp + 8]
mov dword [ebp + 0xc], eax
fchs
faddp st(1)
fild dword [ebp + 0xc]
test eax, eax
jge 0x41108b
fadd dword [0x635c20]
fdiv qword [0x635c18]
fdivp st(1)
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
call fcn.0057cff0
or dword [edi + 0x210], 0xffffffff
mov dword [edi + 0x20c], eax
mov eax, dword [ebp - 0x10]
mov dword [0x6b4090], eax
call fcn.00411135
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x411b8e
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x5e4476
call fcn.005c3f5c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.004d4010
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x34]
mov dword [esi], vtable.EL_PatchThread.0
push eax
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.004caac4
mov byte [ebp - 4], 1
lea eax, [esi + 0x4c]
push eax
call fcn.004caac4
mov byte [ebp - 4], 2
lea eax, [esi + 0x64]
push eax
call fcn.004154f8
mov byte [ebp - 4], 3
lea eax, [esi + 0x1a8]
push eax
call fcn.00415645
mov byte [ebp - 4], 4
mov dword [esi + 0x230], ebx
mov dword [esi + 0x234], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x4180b3
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x5e1a79
call fcn.005c3f5c
sub esp, 0x4c
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 0x3c], ebx
je 0x4181f2
cmp byte [esi + 0x41], bl
je 0x4181f2
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4180eb
xor al, al
jmp 0x4181f4
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], 0xf
call fcn.004035c1
push 8
pop edi
cmp dword [ebp - 0x3c], edi
jae 0x41810f
push dword [ebp - 0x40]
lea ecx, [ebp - 0x54]
push edi
call fcn.004033fc
push ebx
push edi
push ebx
lea ecx, [ebp - 0x54]
call fcn.00408fa8
push edi
lea ecx, [ebp - 0x54]
call fcn.004035c1
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x54]
call fcn.00409660
mov ecx, eax
call fcn.004184d4
mov edi, dword [ebp - 0x40]
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
call fcn.00409660
mov ecx, eax
call fcn.004184d4
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
add ebx, edi
push ebx
push dword [ebp - 0x14]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x41818c
dec eax
je 0x418190
dec eax
dec eax
je 0x4181ee
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.004034fc
mov al, bl
jmp 0x4181f4
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
call fcn.00409660
mov ecx, eax
call fcn.004184d4
mov edi, dword [ebp - 0x18]
sub edi, eax
je 0x4181d0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
call fcn.00409660
mov ecx, eax
call fcn.004184d4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00578d2f
add esp, 0x10
cmp edi, eax
jne 0x418176
cmp byte [esi + 0x41], 0
je 0x4181ee
test edi, edi
jne 0x418126
push edi
push 8
lea ecx, [ebp - 0x54]
call fcn.00408f5a
jmp 0x418126
mov bl, 1
jmp 0x418178
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4185d9
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi], eax
mov eax, esi
mov esp, ebp
pop ebp
ret
Function at 0x41dbf7
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x5e3dcc
call fcn.005c3f5c
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x38], ebx
je 0x41dcb6
push str.TORRENT_PATCH_ERROR
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
push eax
lea ecx, [ebp - 0x10]
call fcn.004032b0
mov dword [ebp - 4], ebx
cmp dword [esi + 0x3c], 8
jb 0x41dc3e
mov esi, dword [esi + 0x28]
jmp 0x41dc41
add esi, 0x28
push esi
lea ecx, [ebp + 8]
call fcn.004032b0
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push 0x804
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004fa3d0
add esp, 0x18
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00401017
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401017
push 0x1e
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00576e90
mov eax, 0x614
mov word [ebp - 0x20], ax
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], str..Temp
mov dword [ebp - 0x16], str.Delete_fast_resume_data
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [0x68cc7c]
mov eax, dword [ecx]
call dword [eax + 0xa8]
cmp eax, ebx
je 0x41dccf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x420960
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
mov eax, dword [0x67ff88]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
cmp dword [0x6b3d74], ebx
jne 0x420982
call fcn.00420c50
cmp dword [0x6b3d7c], 2
je 0x4209a7
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0057ac48
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x4209dc
lea ecx, [esp + 0xc]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x420b00
lea edx, [esp + 4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 5
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x420ab8
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 2
push edx
call esi
test eax, eax
jne 0x420aac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x420aac
mov eax, dword [esp + 0x14]
push edi
push eax
call fcn.00574d4a
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push edx
mov edi, eax
mov eax, dword [esp + 0x1c]
push edi
push 2
push eax
call esi
test eax, eax
je 0x420aa2
xor esi, esi
cmp dword [edi], ebx
jbe 0x420aa2
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push ebp
lea ebp, [edi + 4]
mov edi, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp]
push ecx
push edx
call ebx
test eax, eax
je 0x420a97
mov dword [esp + 0x14], 1
inc esi
add ebp, 8
cmp esi, dword [edi]
jb 0x420a80
xor ebx, ebx
pop ebp
push edi
call fcn.00574f18
add esp, 4
pop edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 8], ebx
je 0x420b00
cmp dword [0x6b3d74], ebx
jne 0x420ad6
call fcn.00420c50
cmp dword [0x6b3d7c], 2
jne 0x420b00
cmp dword [0x6b3d74], 6
jb 0x420b00
lea eax, [esp + 4]
call fcn.00420b20
test eax, eax
jne 0x420afc
cmp dword [esp + 4], 3
jne 0x420b00
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
pop ebx
xor ecx, esp
call fcn.0057ac48
add esp, 0x1c
ret
Function at 0x420db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea ecx, [esp + 4]
push ecx
push edx
mov eax, 4
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
xor esi, esi
push esi
push str.EnableLUA
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420df1
lea esi, [eax + 1]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x420e00
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret 4

Function at 0x4352b9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dcf40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [esp + 0xc]
push eax
call fcn.004363a1
mov esi, eax
and dword [esp + 0xa4], 0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
call fcn.004363a1
mov byte [esp + 0xa4], 1
push 1
push esi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005a4fe0
add esp, 0x10
mov byte [esp + 0xa4], 0
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00403955
or dword [esp + 0xa4], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00403955
mov eax, dword [esp + 4]
neg eax
sbb eax, eax
test eax, fcn.00459869
je 0x435395
push str.boost::filesystem::copy_file
lea ecx, [esp + 0x10]
call fcn.00402b00
mov dword [esp + 0xa4], 2
push dword [esp + 8]
lea eax, [esp + 0x10]
push dword [esp + 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00435e8c
mov byte [esp + 0xa4], 3
push eax
call fcn.004080d6
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x435f48
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dcf40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [esp + 0xc]
push eax
call fcn.004363a1
mov esi, eax
and dword [esp + 0xa4], 0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
call fcn.004363a1
mov byte [esp + 0xa4], 1
push esi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.005a4f80
add esp, 0xc
mov byte [esp + 0xa4], 0
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00403955
or dword [esp + 0xa4], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00403955
mov eax, dword [esp + 4]
neg eax
sbb eax, eax
test eax, fcn.00459869
je 0x436022
push str.boost::filesystem::rename
lea ecx, [esp + 0x10]
call fcn.00402b00
mov dword [esp + 0xa4], 2
push dword [esp + 8]
lea eax, [esp + 0x10]
push dword [esp + 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00435e8c
mov byte [esp + 0xa4], 3
push eax
call fcn.004080d6
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43773c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5db9c6
call fcn.005c3f5c
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [esi], vtable.libtorrent::torrent_plugin.0
xor ecx, ecx
mov dword [ebp - 4], ecx
lea eax, [esi + 4]
mov dword [eax], ecx
mov dword [ebp - 0x10], eax
mov dword [eax + 4], ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x10]
push eax
mov dword [esi], vtable.smart_ban_plugin.0
call fcn.0043823f
mov byte [ebp - 4], 4
call fcn.005c1b59
mov dword [esi + 0x30], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8