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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x20c]
sub esp, 0x20
push ebx
push edi
test eax, eax
jne 0x409c83
xor eax, eax
jmp 0x409df4
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push eax
call fcn.005b665f
push dword [esi + 0x20c]
call fcn.005b69fa
add esp, 0x14
push dword [esi + 0x20c]
mov ebx, eax
push 1
lea eax, [ebp - 0x20]
mov edi, edx
push 0x16
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
call fcn.005b632a
add esp, 0x10
cmp dword [ebp - 0x20], 0x6054b50
je 0x409d0c
lea eax, [ebp - 8]
push eax
push esi
call fcn.00409adf
test eax, eax
je 0x409c7c
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push 0
push edi
push ebx
push dword [esi + 0x20c]
call fcn.005b665f
push dword [esi + 0x20c]
lea eax, [ebp - 0x20]
push 1
push 0x16
push eax
call fcn.005b632a
add esp, 0x20
cmp dword [ebp - 0x20], 0x6054b50
jne 0x409c7c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
add ecx, eax
xor eax, eax
mov edx, ebx
sub edx, ecx
mov ecx, edi
sbb ecx, eax
movzx eax, word [ebp - 0x18]
mov dword [esi + 0x218], eax
xor eax, eax
sub ebx, dword [ebp - 0x14]
push 0
sbb edi, eax
push edi
push ebx
push dword [esi + 0x20c]
mov dword [esi + 0x220], edx
mov dword [esi + 0x224], ecx
call fcn.005b665f
movzx eax, word [ebp - 0x18]
imul eax, eax, 0x2e
add eax, dword [ebp - 0x14]
push eax
call fcn.005b1f5c
add esp, 0x14
mov dword [esi + 0x210], eax
test eax, eax
je 0x409c7c
push dword [esi + 0x20c]
push 1
push dword [ebp - 0x14]
push eax
call fcn.005b632a
mov eax, dword [esi + 0x210]
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [esi + 0x214], ecx
xor edx, edx
add esp, 0x10
xor ecx, ecx
cmp dx, word [ebp - 0x18]
jae 0x409dc8
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
cmp dword [eax], 0x2014b50
jne 0x409dc8
movzx edi, word [eax + 0x1e]
movzx edx, word [eax + 0x20]
add edx, edi
movzx edi, word [eax + 0x1c]
add edi, eax
lea eax, [edi + edx + 0x2e]
movzx edx, word [ebp - 0x18]
inc ecx
cmp ecx, edx
jl 0x409d9a
movzx eax, word [ebp - 0x18]
cmp ecx, eax
je 0x409df1
mov eax, dword [esi + 0x210]
test eax, eax
je 0x409c7c
push eax
call fcn.005b293b
and dword [esi + 0x210], 0
pop ecx
jmp 0x409c7c
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x409ed3
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 0x40a057
cmp eax, dword [esi + 0x218]
jae 0x40a057
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.005b665f
push dword [esi + 0x20c]
lea eax, [ebp - 0x28]
push edi
push 0x1e
push eax
call fcn.005b632a
add esp, 0x20
cmp dword [ebp - 0x28], 0x4034b50
jne 0x40a057
cmp dword [ebp - 0x16], ebx
je 0x40a057
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.005b665f
movzx eax, word [ebp - 0x20]
add esp, 0x10
test eax, eax
je 0x40a03a
jle 0x40a057
cmp eax, 7
jle 0x40a057
cmp eax, 8
jne 0x40a057
push dword [ebp - 0x16]
call fcn.005b1f5c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40a057
push dword [esi + 0x20c]
push edi
push dword [ebp - 0x16]
push ebx
call fcn.005b632a
add esp, 0x10
cmp eax, edi
je 0x409fd5
and dword [ebp - 8], 0
push ebx
call fcn.005b293b
pop ecx
mov eax, dword [ebp - 8]
jmp 0x40a059
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.005e6530
add esp, 0x10
test eax, eax
jne 0x409fc2
lea eax, [ebp - 0x60]
push 4
push eax
call fcn.005e6600
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call fcn.005e7b10
add esp, 0xc
cmp esi, edi
jne 0x40a02a
xor esi, esi
lea eax, [ebp - 0x60]
push eax
call fcn.005e7b10
pop ecx
test esi, esi
je 0x409fc6
jmp 0x409fc2
push dword [esi + 0x20c]
push edi
push dword [ebp - 0x16]
push dword [ebp + 8]
call fcn.005b632a
add esp, 0x10
cmp eax, edi
je 0x409fcd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c30c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x61a3b9
call fcn.0060aa10
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.00563240
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.00562690
mov byte [ebp - 4], 1
lea ecx, [esi + 0x8c]
call fcn.005621a0
mov byte [ebp - 4], 2
push 8
call fcn.00549360
pop ecx
push eax
lea ecx, [esi + 0x94]
call fcn.0040c176
mov byte [ebp - 4], 3
push 0xa
call fcn.00548b30
pop ecx
push eax
lea ecx, [esi + 0x9c]
call fcn.0040c247
mov byte [ebp - 4], 4
push 0x10
call fcn.00548b30
pop ecx
push eax
lea ecx, [esi + 0xb0]
call fcn.0040c247
mov byte [ebp - 4], 5
lea ecx, [esi + 0xc4]
call fcn.0040c2d9
mov byte [ebp - 4], 6
lea ecx, [esi + 0xcc]
call fcn.00561d40
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 0x40e869
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x622ad1
call fcn.0060aa10
sub esp, 0x488
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], edi
call fcn.00418b11
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28c]
mov byte [ebp - 0x11], 0
call fcn.00409a0b
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.00409a3d
test eax, eax
je 0x40e928
push dword [ebp + 0xc]
lea esi, [ebp - 0x28c]
call fcn.00409df8
mov esi, eax
cmp esi, 0xffffffff
je 0x40e911
mov ecx, esi
lea eax, [ebp - 0x28c]
call fcn.00409eb2
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0040efa3
push edi
lea ecx, [ebp - 0x38]
call fcn.00484f95
push eax
mov eax, esi
lea ecx, [ebp - 0x28c]
call fcn.00409ed3
mov byte [ebp - 0x11], bl
lea edi, [ebp - 0x28c]
call fcn.00409ab0
cmp byte [ebp - 0x11], 0
jne 0x40e9b4
xor edi, edi
push 0x6819e4
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.005b2e53
add esp, 0xc
test eax, eax
je 0x40e957
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x6db028
call fcn.0040b7c5
mov dword [ebp - 0x18], ebx
jmp 0x40ea2f
push 2
push edi
push dword [ebp + 0xc]
call fcn.005b5dfa
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005b601c
pop ecx
push edi
push edi
push dword [ebp + 0xc]
mov esi, eax
call fcn.005b5dfa
add esp, 0xc
push edi
push esi
lea ecx, [ebp - 0x38]
call fcn.0040efa3
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.0040f547
push dword [ebp + 0xc]
push ebx
push esi
lea esi, [ebp - 0x40]
call fcn.00448f0d
push eax
call fcn.005b632a
push dword [ebp + 0xc]
call fcn.005b3054
add esp, 0x14
mov esi, dword [ebp - 0x28]
sub esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.0040f547
push esi
lea esi, [ebp - 0x40]
call fcn.00448f0d
push eax
lea ecx, [ebp - 0x60]
call fcn.00514cb0
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0x32
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x20]
call fcn.0053cd00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.005395c0
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
test al, al
jne 0x40ea0b
push 0x6db028
jmp 0x40ea0f
lea eax, [ebp - 0x20]
push eax
call fcn.0040b7c5
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0040b754
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00514bf0
mov byte [ebp - 4], bl
lea edi, [ebp - 0x28c]
call fcn.00409ab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00402552
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 0x40ea5d
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x622a8b
call fcn.0060aa10
sub esp, 0x488
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], edi
call fcn.00418b11
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28c]
mov byte [ebp - 0x11], 0
call fcn.00409a0b
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.00409a3d
test eax, eax
je 0x40eb1c
push dword [ebp + 0xc]
lea esi, [ebp - 0x28c]
call fcn.00409df8
mov esi, eax
cmp esi, 0xffffffff
je 0x40eb05
mov ecx, esi
lea eax, [ebp - 0x28c]
call fcn.00409eb2
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0040efa3
push edi
lea ecx, [ebp - 0x38]
call fcn.00484f95
push eax
mov eax, esi
lea ecx, [ebp - 0x28c]
call fcn.00409ed3
mov byte [ebp - 0x11], bl
lea edi, [ebp - 0x28c]
call fcn.00409ab0
cmp byte [ebp - 0x11], 0
jne 0x40eba6
xor edi, edi
push 0x6819e4
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.005b2e53
add esp, 0xc
test eax, eax
je 0x40eb49
mov ecx, dword [ebp + 8]
push 0x6db028
call fcn.0040ce1e
mov dword [ebp - 0x18], ebx
jmp 0x40ec1f
push 2
push edi
push dword [ebp + 0xc]
call fcn.005b5dfa
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005b601c
pop ecx
push edi
push edi
push dword [ebp + 0xc]
mov esi, eax
call fcn.005b5dfa
add esp, 0xc
push edi
push esi
lea ecx, [ebp - 0x38]
call fcn.0040efa3
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.0040f547
push dword [ebp + 0xc]
push ebx
push esi
lea esi, [ebp - 0x40]
call fcn.00448f0d
push eax
call fcn.005b632a
push dword [ebp + 0xc]
call fcn.005b3054
add esp, 0x14
mov esi, dword [ebp - 0x28]
sub esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.0040f547
push esi
lea esi, [ebp - 0x40]
call fcn.00448f0d
push eax
lea ecx, [ebp - 0x60]
call fcn.00514cb0
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0x32
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x20]
call fcn.0053cd00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.005395c0
mov ecx, dword [ebp + 8]
test al, al
jne 0x40ebfb
push 0x6db028
jmp 0x40ebff
lea eax, [ebp - 0x20]
push eax
call fcn.0040ce1e
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0040b754
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00514bf0
mov byte [ebp - 4], bl
lea edi, [ebp - 0x28c]
call fcn.00409ab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00402552
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 0x4105bb
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x61d27e
call fcn.0060aa10
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.004034fb
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 0x4118e6
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x620ec6
call fcn.0060aa10
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 0x411913
call edi
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
test byte [0x71a0c4], 1
jne 0x411932
or dword [0x71a0c4], 1
and dword [ebp - 4], 0
call edi
mov dword [0x71a0c0], eax
or dword [ebp - 4], 0xffffffff
call edi
mov dword [ebp - 0x10], eax
sub eax, dword [0x71a0c0]
cmp eax, 0x3e8
mov eax, dword [ebp + 8]
jae 0x411951
cmp eax, dword [ebp + 0x10]
jne 0x4119c4
cmp ebx, dword [ebp + 0x14]
jne 0x4119c4
sub eax, dword [esi + 0x38]
sbb ebx, dword [esi + 0x3c]
js 0x4119bc
jg 0x41195f
test eax, eax
jbe 0x4119bc
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 0x41199c
fadd dword [0x68d4a0]
fdiv qword [0x68d498]
fdivp st(1)
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
call fcn.005bc570
or dword [edi + 0x22c], 0xffffffff
mov dword [edi + 0x228], eax
mov eax, dword [ebp - 0x10]
mov dword [0x71a0c0], eax
call fcn.00411a46
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x416a67
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x62a8f2
call fcn.0060aa10
sub esp, 0x4c
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 0x3c], ebx
je 0x416ba6
cmp byte [esi + 0x41], bl
je 0x416ba6
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x416a9f
xor al, al
jmp 0x416ba8
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], 0xf
call fcn.00403c2c
push 8
pop edi
cmp dword [ebp - 0x3c], edi
jae 0x416ac3
push dword [ebp - 0x40]
lea ecx, [ebp - 0x54]
push edi
call fcn.00403a67
push ebx
push edi
push ebx
lea ecx, [ebp - 0x54]
call fcn.00409288
push edi
lea ecx, [ebp - 0x54]
call fcn.00403c2c
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040990a
mov ecx, eax
call fcn.0041722a
mov edi, dword [ebp - 0x40]
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040990a
mov ecx, eax
call fcn.0041722a
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 0x416b40
dec eax
je 0x416b44
dec eax
dec eax
je 0x416ba2
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.00403b67
mov al, bl
jmp 0x416ba8
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040990a
mov ecx, eax
call fcn.0041722a
mov edi, dword [ebp - 0x18]
sub edi, eax
je 0x416b84
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040990a
mov ecx, eax
call fcn.0041722a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005b7cae
add esp, 0x10
cmp edi, eax
jne 0x416b2a
cmp byte [esi + 0x41], 0
je 0x416ba2
test edi, edi
jne 0x416ada
push edi
push 8
lea ecx, [ebp - 0x54]
call fcn.0040923a
jmp 0x416ada
mov bl, 1
jmp 0x416b2c
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41b32d
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 0x41fe70
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x62cc90
call fcn.0060aa10
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x41ff30
push str.TORRENT_PATCH_ERROR
push ecx
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
push eax
lea ecx, [ebp - 0x10]
call fcn.004034c3
mov dword [ebp - 4], ebx
cmp dword [edi + 0x3c], 8
jb 0x41feb8
mov edi, dword [edi + 0x28]
jmp 0x41febb
add edi, 0x28
push edi
lea ecx, [ebp + 8]
call fcn.004034c3
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.00539080
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.005b57c0
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 [0x6f0d00]
mov eax, dword [ecx]
call dword [eax + 0xa8]
cmp eax, ebx
je 0x41ff49
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x421580
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x404
mov eax, dword [0x6e163c]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x200
lea eax, [esp + 4]
push eax
push 0x1001
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [esp]
push ecx
push 0
call fcn.005bb69b
mov ecx, dword [esp + 0x408]
add esp, 8
xor ecx, esp
call fcn.005b8641
add esp, 0x404
ret
Function at 0x422c30
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
mov eax, dword [0x6e163c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
cmp dword [0x719580], ebx
jne 0x422c52
call fcn.00422fa0
cmp dword [0x719588], 2
je 0x422c77
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005b8641
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 0x422cac
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 0x422dd0
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 0x422d88
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 0x422d7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x422d7c
mov eax, dword [esp + 0x14]
push edi
push eax
call fcn.005b3680
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 0x422d72
xor esi, esi
cmp dword [edi], ebx
jbe 0x422d72
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 0x422d67
mov dword [esp + 0x14], 1
inc esi
add ebp, 8
cmp esi, dword [edi]
jb 0x422d50
xor ebx, ebx
pop ebp
push edi
call fcn.005b3848
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 0x422dd0
cmp dword [0x719580], ebx
jne 0x422da6
call fcn.00422fa0
cmp dword [0x719588], 2
jne 0x422dd0
cmp dword [0x719580], 6
jb 0x422dd0
lea eax, [esp + 4]
call fcn.00422df0
test eax, eax
jne 0x422dcc
cmp dword [esp + 4], 3
jne 0x422dd0
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
pop ebx
xor ecx, esp
call fcn.005b8641
add esp, 0x1c
ret
Function at 0x423100
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 0x423141
lea esi, [eax + 1]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x423150
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret 4

Function at 0x431651
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62a01c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push esi
push edi
mov esi, ecx
sub esp, 0x1c
lea eax, [esi + 0x50]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0042a4b7
xor eax, eax
mov dword [esp + 0xf0], eax
cmp dword [esi + 0x30], eax
je 0x43169c
mov esi, dword [esi + 0x30]
jmp 0x43169f
mov esi, dword [esi + 0x34]
push esi
lea eax, [esp + 0x3c]
push eax
or dword [esp + 0xf8], 0xffffffff
call fcn.00430090
add esp, 0x24
mov dword [esp + 0xd4], 1
push str.file_sizes
push dword [ebp + 8]
call fcn.0042e643
mov esi, eax
call fcn.0042ea3b
push dword [esp + 0x28]
lea edi, [esp + 0x20]
lea esi, [esp + 0x10]
mov ebx, eax
call fcn.00411f96
push dword [esp + 0x2c]
lea esi, [esp + 0x18]
call fcn.00411f96
mov eax, dword [esp + 0xc]
test eax, eax
je 0x431702
cmp eax, dword [esp + 0x14]
je 0x431707
call fcn.005b331a
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
je 0x4317e3
lea eax, [esp + 0x34]
push eax
call fcn.0042ede9
mov byte [esp + 0xd4], 2
lea esi, [esp + 0xc]
call fcn.00448f0d
mov edx, eax
lea eax, [esp + 0x78]
call fcn.0042eb79
mov byte [esp + 0xd4], 3
push eax
lea eax, [esp + 0x38]
call fcn.0041c6a6
mov byte [esp + 0xd4], 2
lea ecx, [esp + 0x78]
call fcn.0042e9bc
call fcn.00448f0d
lea edx, [eax + 8]
lea eax, [esp + 0x50]
call fcn.0042eb79
mov byte [esp + 0xd4], 4
push eax
lea eax, [esp + 0x38]
call fcn.0041c6a6
mov byte [esp + 0xd4], 2
lea ecx, [esp + 0x50]
call fcn.0042e9bc
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x38]
call fcn.0042eb35
mov byte [esp + 0xd4], 5
push eax
mov eax, ebx
call fcn.0041c6a6
mov byte [esp + 0xd4], 2
lea ecx, [esp + 0xa0]
call fcn.0042e9bc
mov byte [esp + 0xd4], 1
lea eax, [esp + 0x34]
push eax
call fcn.0042fd26
call fcn.00435df2
jmp 0x4316f4
or dword [esp + 0xd4], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.00425c68
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4