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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 4
xor eax, eax
pop edi
push 2
push eax
push eax
push dword [ebx + 0x20c]
mov esi, 0xffff
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.005b89af
push dword [ebx + 0x20c]
call fcn.005b8d4a
add esp, 0x14
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
test edx, edx
ja 0x4096ec
jb 0x4096c8
cmp eax, esi
jae 0x4096ec
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
test edx, edx
jb 0x4097d9
ja 0x4096ec
cmp eax, 4
jbe 0x4097d9
jmp 0x4096ec
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 4]
add edi, 0x400
adc esi, 0
cmp esi, dword [ebp - 0xc]
jb 0x409712
ja 0x409704
cmp edi, dword [ebp - 0x10]
jbe 0x409712
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x409718
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov esi, eax
sub esi, dword [ebp - 8]
mov ecx, eax
mov edi, edx
sbb edi, dword [ebp - 4]
sub ecx, esi
mov eax, edx
sbb eax, edi
test eax, eax
jb 0x409745
ja 0x409738
cmp ecx, 0x404
jbe 0x409745
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x404
jmp 0x40974b
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
push 0
push edi
push esi
push dword [ebx + 0x20c]
call fcn.005b89af
push dword [ebx + 0x20c]
lea eax, [ebp - 0x430]
push 1
push dword [ebp - 0x20]
push eax
call fcn.005b867a
add esp, 0x20
cmp eax, 1
jne 0x4097d9
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffd
jmp 0x4097aa
dec eax
cmp byte [ebp + eax - 0x430], 0x50
jne 0x4097aa
cmp byte [ebp + eax - 0x42f], 0x4b
jne 0x4097aa
cmp byte [ebp + eax - 0x42e], 5
jne 0x4097aa
cmp byte [ebp + eax - 0x42d], 6
je 0x4097b0
test eax, eax
jg 0x409781
jmp 0x4097bf
cdq
add eax, esi
adc edx, edi
mov dword [ebp - 0x18], eax
or eax, edx
mov dword [ebp - 0x14], edx
jne 0x4097d9
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jb 0x4096e3
ja 0x4097d9
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jb 0x4096e3
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
test ecx, ecx
je 0x4097eb
mov edx, dword [ebp - 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
or eax, dword [ebp - 0x14]
je 0x4097f5
xor eax, eax
inc eax
jmp 0x4097f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4097fe
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 0x409817
xor eax, eax
jmp 0x409988
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push eax
call fcn.005b89af
push dword [esi + 0x20c]
call fcn.005b8d4a
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.005b867a
add esp, 0x10
cmp dword [ebp - 0x20], 0x6054b50
je 0x4098a0
lea eax, [ebp - 8]
push eax
push esi
call fcn.00409673
test eax, eax
je 0x409810
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push 0
push edi
push ebx
push dword [esi + 0x20c]
call fcn.005b89af
push dword [esi + 0x20c]
lea eax, [ebp - 0x20]
push 1
push 0x16
push eax
call fcn.005b867a
add esp, 0x20
cmp dword [ebp - 0x20], 0x6054b50
jne 0x409810
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.005b89af
movzx eax, word [ebp - 0x18]
imul eax, eax, 0x2e
add eax, dword [ebp - 0x14]
push eax
call fcn.005b3e2c
add esp, 0x14
mov dword [esi + 0x210], eax
test eax, eax
je 0x409810
push dword [esi + 0x20c]
push 1
push dword [ebp - 0x14]
push eax
call fcn.005b867a
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 0x40995c
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
cmp dword [eax], 0x2014b50
jne 0x40995c
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 0x40992e
movzx eax, word [ebp - 0x18]
cmp ecx, eax
je 0x409985
mov eax, dword [esi + 0x210]
test eax, eax
je 0x409810
push eax
call fcn.005b4dc6
and dword [esi + 0x210], 0
pop ecx
jmp 0x409810
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x409a67
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 0x409beb
cmp eax, dword [esi + 0x218]
jae 0x409beb
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.005b89af
push dword [esi + 0x20c]
lea eax, [ebp - 0x28]
push edi
push 0x1e
push eax
call fcn.005b867a
add esp, 0x20
cmp dword [ebp - 0x28], 0x4034b50
jne 0x409beb
cmp dword [ebp - 0x16], ebx
je 0x409beb
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.005b89af
movzx eax, word [ebp - 0x20]
add esp, 0x10
test eax, eax
je 0x409bce
jle 0x409beb
cmp eax, 7
jle 0x409beb
cmp eax, 8
jne 0x409beb
push dword [ebp - 0x16]
call fcn.005b3e2c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x409beb
push dword [esi + 0x20c]
push edi
push dword [ebp - 0x16]
push ebx
call fcn.005b867a
add esp, 0x10
cmp eax, edi
je 0x409b69
and dword [ebp - 8], 0
push ebx
call fcn.005b4dc6
pop ecx
mov eax, dword [ebp - 8]
jmp 0x409bed
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.005e8d10
add esp, 0x10
test eax, eax
jne 0x409b56
lea eax, [ebp - 0x60]
push 4
push eax
call fcn.005e8ed0
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call fcn.00607460
add esp, 0xc
cmp esi, edi
jne 0x409bbe
xor esi, esi
lea eax, [ebp - 0x60]
push eax
call fcn.00607460
pop ecx
test esi, esi
je 0x409b5a
jmp 0x409b56
push dword [esi + 0x20c]
push edi
push dword [ebp - 0x16]
push dword [ebp + 8]
call fcn.005b867a
add esp, 0x10
cmp eax, edi
je 0x409b61
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40bf13
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x61cd0e
call fcn.0060d220
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.005650e0
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.00564530
mov byte [ebp - 4], 1
lea ecx, [esi + 0x8c]
call fcn.00564040
mov byte [ebp - 4], 2
push 8
call fcn.0054b0a0
pop ecx
push eax
lea ecx, [esi + 0x94]
call fcn.0040bd7d
mov byte [ebp - 4], 3
push 0xa
call fcn.0054a870
pop ecx
push eax
lea ecx, [esi + 0x9c]
call fcn.0040be4e
mov byte [ebp - 4], 4
push 0x10
call fcn.0054a870
pop ecx
push eax
lea ecx, [esi + 0xb0]
call fcn.0040be4e
mov byte [ebp - 4], 5
lea ecx, [esi + 0xc4]
call fcn.0040bee0
mov byte [ebp - 4], 6
lea ecx, [esi + 0xcc]
call fcn.00563be0
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 0x40e474
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x625379
call fcn.0060d220
sub esp, 0x488
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], edi
call fcn.004189bb
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28c]
mov byte [ebp - 0x11], 0
call fcn.0040959f
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.004095d1
test eax, eax
je 0x40e533
push dword [ebp + 0xc]
lea esi, [ebp - 0x28c]
call fcn.0040998c
mov esi, eax
cmp esi, 0xffffffff
je 0x40e51c
mov ecx, esi
lea eax, [ebp - 0x28c]
call fcn.00409a46
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0040ebae
push edi
lea ecx, [ebp - 0x38]
call fcn.00484294
push eax
mov eax, esi
lea ecx, [ebp - 0x28c]
call fcn.00409a67
mov byte [ebp - 0x11], bl
lea edi, [ebp - 0x28c]
call fcn.00409644
cmp byte [ebp - 0x11], 0
jne 0x40e5bf
xor edi, edi
push 0x683adc
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.005b806d
add esp, 0xc
test eax, eax
je 0x40e562
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x6dd128
call fcn.0040b3a3
mov dword [ebp - 0x18], ebx
jmp 0x40e63a
push 2
push edi
push dword [ebp + 0xc]
call fcn.005b814a
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005b836c
pop ecx
push edi
push edi
push dword [ebp + 0xc]
mov esi, eax
call fcn.005b814a
add esp, 0xc
push edi
push esi
lea ecx, [ebp - 0x38]
call fcn.0040ebae
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.00407790
push dword [ebp + 0xc]
push ebx
push esi
lea esi, [ebp - 0x40]
call fcn.0049297c
push eax
call fcn.005b867a
push dword [ebp + 0xc]
call fcn.005b59ef
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.00407790
push esi
lea esi, [ebp - 0x40]
call fcn.0049297c
push eax
lea ecx, [ebp - 0x60]
call fcn.00516bc0
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0x32
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x20]
call fcn.0053e9e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.0053b2c0
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
test al, al
jne 0x40e616
push 0x6dd128
jmp 0x40e61a
lea eax, [ebp - 0x20]
push eax
call fcn.0040b3a3
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0040b54f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00516b00
mov byte [ebp - 4], bl
lea edi, [ebp - 0x28c]
call fcn.00409644
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040217e
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 0x40e668
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x625333
call fcn.0060d220
sub esp, 0x488
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], edi
call fcn.004189bb
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28c]
mov byte [ebp - 0x11], 0
call fcn.0040959f
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.004095d1
test eax, eax
je 0x40e727
push dword [ebp + 0xc]
lea esi, [ebp - 0x28c]
call fcn.0040998c
mov esi, eax
cmp esi, 0xffffffff
je 0x40e710
mov ecx, esi
lea eax, [ebp - 0x28c]
call fcn.00409a46
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0040ebae
push edi
lea ecx, [ebp - 0x38]
call fcn.00484294
push eax
mov eax, esi
lea ecx, [ebp - 0x28c]
call fcn.00409a67
mov byte [ebp - 0x11], bl
lea edi, [ebp - 0x28c]
call fcn.00409644
cmp byte [ebp - 0x11], 0
jne 0x40e7b1
xor edi, edi
push 0x683adc
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.005b806d
add esp, 0xc
test eax, eax
je 0x40e754
mov ecx, dword [ebp + 8]
push 0x6dd128
call fcn.0040ca29
mov dword [ebp - 0x18], ebx
jmp 0x40e82a
push 2
push edi
push dword [ebp + 0xc]
call fcn.005b814a
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005b836c
pop ecx
push edi
push edi
push dword [ebp + 0xc]
mov esi, eax
call fcn.005b814a
add esp, 0xc
push edi
push esi
lea ecx, [ebp - 0x38]
call fcn.0040ebae
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.00407790
push dword [ebp + 0xc]
push ebx
push esi
lea esi, [ebp - 0x40]
call fcn.0049297c
push eax
call fcn.005b867a
push dword [ebp + 0xc]
call fcn.005b59ef
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.00407790
push esi
lea esi, [ebp - 0x40]
call fcn.0049297c
push eax
lea ecx, [ebp - 0x60]
call fcn.00516bc0
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0x32
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x20]
call fcn.0053e9e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.0053b2c0
mov ecx, dword [ebp + 8]
test al, al
jne 0x40e806
push 0x6dd128
jmp 0x40e80a
lea eax, [ebp - 0x20]
push eax
call fcn.0040ca29
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0040b54f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00516b00
mov byte [ebp - 4], bl
lea edi, [ebp - 0x28c]
call fcn.00409644
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040217e
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 0x41005d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x61fc04
call fcn.0060d220
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.00403133
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 0x411400
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x6252d9
call fcn.0060d220
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 0x41142d
call edi
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
test byte [0x71c2a4], 1
jne 0x41144c
or dword [0x71c2a4], 1
and dword [ebp - 4], 0
call edi
mov dword [0x71c2a0], eax
or dword [ebp - 4], 0xffffffff
call edi
mov dword [ebp - 0x10], eax
sub eax, dword [0x71c2a0]
cmp eax, 0x3e8
mov eax, dword [ebp + 8]
jae 0x41146b
cmp eax, dword [ebp + 0x10]
jne 0x4114de
cmp ebx, dword [ebp + 0x14]
jne 0x4114de
sub eax, dword [esi + 0x38]
sbb ebx, dword [esi + 0x3c]
js 0x4114d6
jg 0x411479
test eax, eax
jbe 0x4114d6
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 0x4114b6
fadd dword [0x68f5b8]
fdiv qword [0x68f5b0]
fdivp st(1)
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
call fcn.005bf510
or dword [edi + 0x22c], 0xffffffff
mov dword [edi + 0x228], eax
mov eax, dword [ebp - 0x10]
mov dword [0x71c2a0], eax
call fcn.00411560
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4159b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62562f
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4159f6
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x415a1e
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x415a1e
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x4159e2
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x415a2a
or eax, 0xffffffff
jmp 0x4159e2
cmp dword [esi + 0x3c], edi
jne 0x415a42
push eax
movsx eax, bl
push eax
call fcn.005b9932
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x415a25
jmp 0x415a1a
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1b], bl
call fcn.00416131
mov dword [esp + 0x6c], edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0040949e
mov ecx, eax
call fcn.00416d5b
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040949e
mov ecx, eax
call fcn.00416d5b
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x415b4e
cmp eax, 1
jg 0x415b90
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.0040949e
mov ecx, eax
call fcn.00416d5b
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x415ae7
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040949e
mov ecx, eax
call fcn.00416d5b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005ba135
add esp, 0x10
cmp edi, eax
jne 0x415b74
lea eax, [esp + 0x13]
mov byte [esi + 0x41], 1
cmp dword [esp + 0x1c], eax
jne 0x415bac
test edi, edi
ja 0x415b11
cmp dword [esp + 0x58], 0x20
jae 0x415b74
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.00408dce
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0040949e
mov ecx, eax
call fcn.00416d5b
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040949e
mov ecx, eax
call fcn.00416d5b
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x27]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x415a95
or esi, 0xffffffff
or dword [esp + 0x6c], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00403762
mov eax, esi
jmp 0x4159e2
cmp eax, 3
jne 0x415b74
movsx eax, byte [esp + 0x13]
push dword [esi + 0x4c]
push eax
call fcn.005b9932
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x415b77
mov esi, dword [ebp + 8]
jmp 0x415b77
Function at 0x4165fb
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x62d1ee
call fcn.0060d220
sub esp, 0x4c
push ebx
push edi
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x41670e
cmp byte [esi + 0x41], 0
je 0x41670e
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x416634
xor al, al
jmp 0x416710
push edi
push 8
lea ecx, [ebp - 0x54]
call fcn.00416131
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040949e
mov ecx, eax
call fcn.00416d5b
mov edi, dword [ebp - 0x40]
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040949e
mov ecx, eax
call fcn.00416d5b
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
add edi, ebx
push edi
push dword [ebp - 0x14]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x4166a8
dec eax
je 0x4166ac
dec eax
dec eax
je 0x41670a
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.00403762
mov al, bl
jmp 0x416710
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040949e
mov ecx, eax
call fcn.00416d5b
mov edi, dword [ebp - 0x18]
sub edi, eax
je 0x4166ec
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040949e
mov ecx, eax
call fcn.00416d5b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005ba135
add esp, 0x10
cmp edi, eax
jne 0x416692
cmp byte [esi + 0x41], 0
je 0x41670a
test edi, edi
jne 0x416642
push edi
push 8
lea ecx, [ebp - 0x54]
call fcn.00408dce
jmp 0x416642
mov bl, 1
jmp 0x416694
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41af9b
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 0x41fd44
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x62f572
call fcn.0060d220
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x41fe04
push str.TORRENT_PATCH_ERROR
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
push eax
lea ecx, [ebp - 0x10]
call fcn.004030fb
mov dword [ebp - 4], ebx
cmp dword [edi + 0x3c], 8
jb 0x41fd8c
mov edi, dword [edi + 0x28]
jmp 0x41fd8f
add edi, 0x28
push edi
lea ecx, [ebp + 8]
call fcn.004030fb
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.0053ad70
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.005b79e0
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 [0x6f2e50]
mov eax, dword [ecx]
call dword [eax + 0xa8]
cmp eax, ebx
je 0x41fe1d
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 0x420a30
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x404
mov eax, dword [0x6e377c]
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.005be63b
mov ecx, dword [esp + 0x408]
add esp, 8
xor ecx, esp
call fcn.005bae23
add esp, 0x404
ret