joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x44], ecx
cmp ecx, dword [esp + 0x54]
je 0x512602
mov eax, dword [esp + 0x4c]
cmp eax, ecx
je 0x512602
push edi
mov edi, dword [esp + 0x5c]
nop word [eax + eax]
movups xmm0, xmmword [eax]
movups xmmword [esp + 4], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 4]
push eax
movups xmmword [esp + 0x18], xmm0
lea eax, [esp + 0x28]
movups xmm0, xmmword [ecx]
push eax
movups xmmword [esp + 0x2c], xmm0
movups xmm0, xmmword [ecx + 0x10]
mov ecx, dword [esp + 0x74]
movups xmmword [esp + 0x3c], xmm0
call fcn.00513810
test eax, eax
js 0x5124e2
mov eax, dword [esp + 0x50]
dec edi
mov ecx, dword [esp + 0x54]
add eax, 0x20
mov dword [esp + 0x50], eax
cmp eax, ecx
jne 0x512490
pop edi
add esp, 0x48
ret
push esi
mov esi, dword [esp + 0x64]
nop word [eax + eax]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x4c]
add ecx, 0xffffffe0
mov dword [esp + 0x48], esi
dec esi
mov dword [esp + 0x5c], ecx
cmp eax, ecx
je 0x5125bf
movups xmm0, xmmword [eax - 0x20]
movups xmmword [esp + 8], xmm0
movups xmm0, xmmword [eax - 0x10]
lea eax, [esp + 8]
push eax
movups xmmword [esp + 0x1c], xmm0
lea eax, [esp + 0x2c]
movups xmm0, xmmword [ecx]
push eax
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [ecx + 0x10]
mov ecx, dword [esp + 0x78]
movups xmmword [esp + 0x40], xmm0
call fcn.00513810
test eax, eax
jns 0x5124f0
mov ecx, dword [esp + 0x5c]
add ecx, 0x20
mov dword [esp + 0x5c], ecx
cmp edi, 1
jne 0x512597
mov eax, dword [esp + 0x54]
push eax
push ecx
push dword [esp + 0x60]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x44], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0x54]
push eax
movups xmmword [esp + 0x28], xmm0
call fcn.005130e0
movups xmm0, xmmword [esp + 0x48]
add esp, 0x10
mov eax, dword [eax]
pop esi
pop edi
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x10]
movups xmmword [eax + 0x10], xmm0
add esp, 0x48
ret
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x54]
push edi
push ecx
push dword [esp + 0x70]
push dword [esp + 0x70]
call fcn.00512610
add esp, 0x20
pop esi
pop edi
add esp, 0x48
ret
mov eax, dword [esp + 0x58]
add ecx, 0x20
mov esi, dword [esp + 0x54]
mov dword [esp + 0x5c], ecx
push ecx
movups xmm0, xmmword [eax]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0x54]
push eax
movups xmmword [esp + 0x48], xmm0
call fcn.00513050
movups xmm0, xmmword [esp + 0x28]
add esp, 0x10
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x38]
movups xmmword [esi + 0x10], xmm0
pop esi
pop edi
add esp, 0x48
ret
Function at 0x5129c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 0x14]
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x6c]
push esi
mov esi, dword [esp + 0x64]
cmp ebp, edx
jge 0x512af3
mov eax, ebp
shl eax, 5
mov dword [esp + 0x1c], eax
push edi
sub edx, ebp
add eax, esi
cmp edx, ebp
mov dword [esp + 0x14], eax
mov ecx, ebp
mov edi, eax
cmovl ecx, edx
mov ebp, ebx
sub edx, ecx
shl ecx, 5
add ecx, eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ecx
movups xmm0, xmmword [esi]
lea eax, [esp + 0x24]
push eax
movups xmmword [esp + 0x28], xmm0
lea eax, [esp + 0x48]
movups xmm0, xmmword [esi + 0x10]
lea ebx, [ebp + 0x20]
push eax
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x20], ebx
movups xmm0, xmmword [edi]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esp + 0x5c], xmm0
call fcn.00513810
test eax, eax
jns 0x512a8e
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
add edi, 0x20
movups xmmword [ebp], xmm0
movups xmmword [ebp + 0x10], xmm1
cmp edi, dword [esp + 0x10]
jne 0x512aa6
mov eax, dword [esp + 0x14]
cmp esi, eax
je 0x512a88
nop
movups xmm1, xmmword [esi]
movups xmm0, xmmword [esi + 0x10]
add esi, 0x20
movups xmmword [ebx], xmm1
movups xmmword [ebx + 0x10], xmm0
add ebx, 0x20
cmp esi, eax
jne 0x512a70
mov eax, dword [esp + 0x10]
jmp 0x512ad8
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
add esi, 0x20
movups xmmword [ebp], xmm0
movups xmmword [ebp + 0x10], xmm1
cmp esi, dword [esp + 0x14]
je 0x512ab3
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x512a12
mov eax, dword [esp + 0x10]
cmp edi, eax
je 0x512ad8
nop dword [eax + eax]
movups xmm1, xmmword [edi]
movups xmm0, xmmword [edi + 0x10]
add edi, 0x20
movups xmmword [ebx], xmm1
movups xmmword [ebx + 0x10], xmm0
add ebx, 0x20
cmp edi, eax
jne 0x512ac0
mov edx, dword [esp + 0x78]
mov esi, eax
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], esi
cmp ebp, edx
jl 0x5129e8
pop edi
mov eax, dword [esp + 0x68]
cmp esi, eax
je 0x512b17
sub ebx, esi
nop dword [eax]
movups xmm1, xmmword [esi]
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + esi], xmm1
movups xmmword [ebx + esi + 0x10], xmm0
add esi, 0x20
cmp esi, eax
jne 0x512b00
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x51c1e0
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0xac
push 0xffffffffffffffff
push 0x5c6355
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x72b01c]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xb8]
mov esi, dword [ebp + 0xb4]
mov dword [ebp - 0x1c], esi
sub eax, 0
je 0x51c350
sub eax, 1
je 0x51c343
sub eax, 1
jne 0x51c28d
lea eax, [ebp + 0xc]
mov dword [ebp], 0x40
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0x40
push 0x40
push eax
push 0x1008
push dword [edi]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x51c2ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x51c2c8
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51c28d
push eax
call fcn.0059a133
add esp, 4
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.00594d69
lea esp, [ebp + 0xac]
pop ebp
ret 8
push 0xff
lea ecx, [ebp]
call fcn.0051d990
push dword [ebp + 4]
push dword [ebp + 8]
push 0x1008
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51c27a
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.004b4d80
add esp, 0xc
mov ecx, esi
push eax
call fcn.004ca110
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x51c327
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51c327
push 4
push 2
push dword [ebp - 0x28]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51c2a2
push eax
call fcn.0059a133
add esp, 4
jmp 0x51c2a2
push 0xd
lea eax, [ebp + 0x8c]
push eax
push 0x14
jmp 0x51c35b
push 9
lea eax, [ebp + 0x8c]
push eax
push 0x15
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51c28d
push 0xffffffffffffffff
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004b4d80
add esp, 0xc
mov ecx, esi
push eax
call fcn.004ca110
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51c2a2
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51c2a2
push 4
push 2
push dword [ebp - 0x18]
call fcn.0045fe90
add esp, 0xc
jmp 0x51c2a2
Function at 0x51dcd0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x72b01c]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x51dd81
push 8
lea eax, [esp + 8]
push eax
push 0x1014
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51dd79
mov ax, word [esp + 4]
cmp ax, 0x31
je 0x51dd79
cmp ax, 0x30
jne 0x51dd31
mov dword [esi + 4], 1
mov eax, 1
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00594d69
add esp, 0x2c
ret
cmp ax, 0x32
je 0x51dd5d
push 0xb
lea eax, [esp + 0x18]
push eax
push 0x13
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51dd79
movzx ecx, word [esp + 0x14]
movzx eax, word [esp + 4]
add ecx, 2
cmp eax, ecx
jne 0x51dd79
mov dword [esi + 4], 2
mov eax, 2
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00594d69
add esp, 0x2c
ret
mov eax, 3
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.00594d69
add esp, 0x2c
ret
Function at 0x51fac0
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x5c68de
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x72b01c]
xor eax, ebp
mov dword [ebp + 0x200], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xff
lea eax, [ebp]
mov dword [ebp - 4], 0
push eax
push 0x5a
push dword [ebp + 0x210]
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51fb9a
push 0xffffffffffffffff
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004b4d80
mov ecx, dword [esi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x51fb9a
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x51fb9a
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00594d69
lea esp, [ebp + 0x204]
pop ebp
ret
Function at 0x520880
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x72b01c]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 8], edi
cmp dword [esi + 0x10], 0
jne 0x520911
push 0xb
lea eax, [esp + 0x1c]
push eax
push 0x13
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x520911
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004b4d80
mov ecx, dword [esi + 8]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [esi + 8], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x520911
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x520911
push 4
push 2
push dword [esp + 0x14]
call fcn.0045fe90
add esp, 0xc
lea ecx, [esi + 8]
push ecx
mov ecx, edi
call fcn.004ca110
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00594d69
add esp, 0x2c
ret 4
Function at 0x529c80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x8c], 0
mov dword [esi], vtable.QWinSettingsPrivate.0
je 0x529dcf
cmp dword [esi + 0x88], 0
je 0x529dcf
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052b530
test eax, eax
je 0x529dcf
cmp byte [edi + 0x14], 0
jne 0x529dcf
mov ecx, edi
call fcn.0052b530
test eax, eax
je 0x529dcf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00496d70
cmp dword [esi + 0x88], 0
mov ebx, eax
je 0x529d40
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052b530
test eax, eax
je 0x529d40
cmp byte [edi + 0x14], 0
jne 0x529d40
mov ecx, edi
call fcn.0052b530
jmp 0x529d42
xor eax, eax
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
or edi, 0xffffffff
test ebx, ebx
je 0x529db0
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
test edx, edx
je 0x529d78
mov eax, 1
lock xadd dword [edx], eax
lea ecx, [ebp - 0x1c]
call fcn.00496d70
push eax
push str.QSettings:_Failed_to_delete_key___ls_
push ebx
call fcn.0049f850
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
test ecx, ecx
je 0x529db0
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x529db0
push 4
push 2
push dword [ebp - 0x1c]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x529dcf
lock xadd dword [eax], edi
cmp edi, 1
jne 0x529dcf
push 4
push 2
push dword [ebp - 0x28]
call fcn.0045fe90
add esp, 0xc
xor ebx, ebx
cmp dword [esi + 0x88], ebx
jle 0x529e36
xor ecx, ecx
lea edx, [esi + 0x80]
mov dword [ebp - 0x10], ecx
mov eax, dword [edx]
test eax, eax
je 0x529df1
mov eax, dword [eax]
cmp eax, 1
jle 0x529e01
push 0
push 0
push 0
mov ecx, edx
call fcn.0052c7f0
mov ecx, dword [ebp - 0x10]
mov edi, dword [esi + 0x84]
add edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x529e1a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
inc ebx
mov dword [edi + 4], 0
add ecx, 0x1c
lea edx, [esi + 0x80]
mov dword [ebp - 0x10], ecx
cmp ebx, dword [esi + 0x88]
jl 0x529de4
lea ecx, [esi + 0x80]
call fcn.00529b50
mov ecx, esi
call fcn.004d5cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52aea0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7305
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0052a220
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x24], ebx
jle 0x52afea
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x28]
or edx, 0x2001f
add esi, 8
mov dword [ebp - 0x14], edx
or edi, 0xffffffff
mov ecx, dword [esi - 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [esi - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x52af1e
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push edx
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
call fcn.00496d70
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x52af7b
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x52af78
push dword [ebp + 0xc]
push edi
call fcn.0052aea0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
call fcn.00496d70
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
test edi, edi
jne 0x52afb1
or edi, 0xffffffff
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x52afa0
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52afa0
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
inc ebx
add esi, 0xc
cmp ebx, dword [ebp - 0x24]
jge 0x52afea
mov edx, dword [ebp - 0x14]
jmp 0x52af00
lea ecx, [ebp - 0x20]
call fcn.00496d70
push eax
push str.QSettings:_RegDeleteKey_failed_on_subkey___ls_
push edi
call fcn.0049f850
mov eax, dword [ebp - 0x20]
add esp, 0xc
test eax, eax
je 0x52afea
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x52afea
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00477570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5309a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7c55
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x78]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x20], esi
test eax, eax
jne 0x530ac9
cmp dword [ebx + 0x90], 0xffffffff
jne 0x530b57
cmp dword [ebx + 0x7c], 0xffffffff
je 0x530b3e
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
nop dword [eax]
test eax, eax
jg 0x530a22
jl 0x530a1e
cmp edi, 0x2000000
jae 0x530a22
mov eax, edi
jmp 0x530a27
mov eax, 0x2000000
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x530a82
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x530a6a
add esi, eax
adc ecx, 0
sub edi, eax
mov eax, dword [ebp - 0x14]
sbb eax, 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebp + 0x10]
jg 0x530a6a
jl 0x530a10
cmp esi, dword [ebp + 0xc]
jb 0x530a10
mov eax, esi
mov edx, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
or eax, ecx
jne 0x530a6a
lea eax, [ebp - 0x38]
push 0xffffffffffffffff
push eax
call fcn.004fd670
add esp, 8
mov ecx, dword [ebp - 0x20]
push eax
push 1
mov dword [ebp - 4], 1
call fcn.00508730
lea ecx, [ebp - 0x38]
call fcn.004019e0
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
call fcn.005a3a58
push eax
call fcn.005a3732
add esp, 8
cmp eax, 0xffffffff
je 0x530b57
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x530aee
cmp eax, 3
jne 0x530b57
push dword [ebx + 0x78]
call fcn.005a1413
add esp, 4
test eax, eax
je 0x530b57
lea eax, [ebp - 0x2c]
push 0xffffffffffffffff
push eax
call fcn.004fd830
add esp, 8
push eax
push 1
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00508730
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x530b3e
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x530b3e
push 4
push 2
push dword [ebp - 0x2c]
call fcn.0045fe90
add esp, 0xc
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050a800
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x530dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7cbd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x78], 0
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x20], eax
jne 0x530ef9
cmp dword [ebx + 0x90], 0xffffffff
jne 0x530ef9
cmp dword [ebx + 0x7c], 0xffffffff
je 0x530ee0
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
nop dword [eax + eax]
test eax, eax
jg 0x530e52
jl 0x530e4e
cmp edi, 0x2000000
jae 0x530e52
mov eax, edi
jmp 0x530e57
mov eax, 0x2000000
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x530eb2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x530e9a
add esi, eax
adc ecx, 0
sub edi, eax
mov eax, dword [ebp - 0x14]
sbb eax, 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebp + 0x10]
jg 0x530e9a
jl 0x530e40
cmp esi, dword [ebp + 0xc]
jb 0x530e40
mov eax, esi
mov edx, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
or eax, ecx
jne 0x530e9a
lea eax, [ebp - 0x2c]
push 0xffffffffffffffff
push eax
call fcn.004fd670
add esp, 8
mov ecx, dword [ebp - 0x20]
push eax
push 2
mov dword [ebp - 4], 0
call fcn.00508730
lea ecx, [ebp - 0x2c]
call fcn.004019e0
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050b3d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x531560
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov ebx, dword [eax + 0x7c]
cmp ebx, 0xffffffff
jne 0x53168c
cmp dword [eax + 0x90], ebx
jne 0x53165b
cmp dword [eax + 0x78], 0
jne 0x53165b
lea esi, [eax + 0x18]
mov ecx, esi
call fcn.00508c10
test al, al
jne 0x531729
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.005089b0
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.004af570
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004019e0
push ecx
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [eax], 3
call fcn.004afbd0
lea ecx, [ebp - 0x1c]
test al, al
je 0x531651
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004affc0
mov bl, al
test bl, bl
jne 0x531633
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004ace20
push eax
push 0xc
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00508730
lea ecx, [ebp - 0x34]
call fcn.004019e0
lea ecx, [ebp - 0x1c]
call fcn.004af700
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004af700
jmp 0x531729
cmp ebx, 0xffffffff
jne 0x53168c
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x531672
push ecx
call fcn.005a3a58
add esp, 4
jmp 0x531678
mov eax, dword [eax + 0x90]
push eax
call fcn.005a3732
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x531729
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x5cb3f0]
mov ecx, edi
call esi
mov ecx, dword [edi]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], edx
call dword [0x5cb3f0]
mov ecx, edi
call esi
test al, al
je 0x531711
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x531711
mov eax, dword [edi]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [eax + 0x1c]
cmp ecx, ebx
jg 0x5316e6
mov eax, dword [ebp - 0x10]
jl 0x5316ed
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x5316e9
jmp 0x5316ed
mov edx, dword [ebp + 8]
mov eax, edx
mov ecx, ebx
push ecx
push eax
mov ecx, esi
call dword [0x5cb3f0]
mov ecx, edi
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, dword [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x5cb3f0]
mov ecx, edi
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8