joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50b9a0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x200c
call fcn.005b6f10
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push ebx
push esi
push edi
mov edi, dword [esp + 0x2020]
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
xor ebx, ebx
push ebx
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x50b9fc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50bafb
mov ecx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x50bae7
push 0xfff
lea ecx, [esp + 0x1019]
push ebx
push ecx
mov byte [esp + 0x1020], bl
call fcn.005b5540
add esp, 0xc
cmp dword [esp + 0x2028], ebx
mov edi, 0x5f4d60
jne 0x50ba53
mov edi, 0x5f4d5c
push ebp
mov ebp, dword [esp + 0x2028]
push edi
push ebp
push str._d:_s
lea edx, [esp + 0x1024]
push 0x1000
push edx
call fcn.005b1bc7
push 0xfff
lea eax, [esp + 0x31]
push ebx
push eax
mov byte [esp + 0x38], bl
call fcn.005b5540
add esp, 0x20
cmp dword [esi + 0x34], 0x10
jb 0x50ba96
mov esi, dword [esi + 0x20]
jmp 0x50ba99
add esi, 0x20
push esi
push edi
push ebp
push str._d:_s::Enabled:_s
lea ecx, [esp + 0x28]
push 0x1000
push ecx
call fcn.005b1bc7
add esp, 0x18
lea eax, [esp + 0x18]
lea edx, [eax + 1]
pop ebp
jmp 0x50bac0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x50bac0
mov ecx, dword [esp + 0x10]
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
push 1
push ebx
lea eax, [esp + 0x1024]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005b1988
add esp, 0x200c
ret 0x10
Function at 0x50bb20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push esi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x50bb73
lea ecx, [esp + 4]
push ecx
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x50bb73
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret 4
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.DoNotAllowExceptions
mov esi, 4
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50bbb3
cmp dword [esp + 0x14], eax
je 0x50bbd4
mov edx, dword [esp + 4]
push esi
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push str.DoNotAllowExceptions
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret 4

Function at 0x50bde0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 0x5f4e58
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x50be37
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005b1988
add esp, 0x114
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
xor edi, edi
push 0x103
lea edx, [esp + 0x1d]
push 0
push edx
mov byte [esp + 0x24], 0
call fcn.005b5540
mov edx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x103
call ebp
mov esi, eax
test esi, esi
jne 0x50beb1
lea eax, [esp + 0x18]
push eax
call fcn.005ced1c
lea ecx, [esp + 0x1c]
push str.controlset
push ecx
call fcn.005b7994
add esp, 0xc
test eax, eax
je 0x50beb1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
call fcn.0050bbf0
add edi, 1
test esi, esi
je 0x50be42
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005b1988
add esp, 0x114
ret
Function at 0x50bee0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 0x5f4e58
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x50bf39
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005b1988
add esp, 0x114
ret 8
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
xor edi, edi
push 0x103
lea edx, [esp + 0x1d]
push 0
push edx
mov byte [esp + 0x24], 0
call fcn.005b5540
mov edx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x103
call ebp
mov esi, eax
test esi, esi
jne 0x50bfc3
lea eax, [esp + 0x18]
push eax
call fcn.005ced1c
lea ecx, [esp + 0x1c]
push str.controlset
push ecx
call fcn.005b7994
add esp, 0xc
test eax, eax
je 0x50bfc3
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0050bce0
add edi, 1
test esi, esi
je 0x50bf44
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005b1988
add esp, 0x114
ret 8
Function at 0x50c1f0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push 0xffffffffffffffff
push 0x5d0c68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esp + 0x10]
push eax
push 0x5f4e90
push 1
push edi
push 0x5f4e80
call ebx
test eax, eax
jl 0x50c2b3
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x50c2b3
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x50c2a7
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x50c2a7
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x50c2a7
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x50c2a7
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
jge 0x50c2ca
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 8
lea eax, [esp + 0x14]
push eax
push 0x5f4eb0
push 1
push edi
push 0x5f4ea0
mov dword [esp + 0x28], edi
call ebx
cmp eax, edi
jl 0x50c29b
lea ecx, [esp + 0x24]
call fcn.00528f40
cmp dword [esi + 0x34], 0x10
mov dword [esp + 0x3c], edi
jb 0x50c2fe
mov eax, dword [esi + 0x20]
jmp 0x50c301
lea eax, [esi + 0x20]
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.00529190
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [esp + 0x44]
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
neg edx
sbb edx, edx
and edx, 0xfffffff5
add edx, 0x11
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push esi
push eax
call edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x50c37a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x50c38a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00528f50
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 8
Function at 0x50e740
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x5d0fa6
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x474]
mov esi, ecx
mov edi, 0x20019
call fcn.004ff5a0
test eax, eax
je 0x50e797
mov edi, 0x20119
push 0x49
xor ebx, ebx
push str.SYSTEMCurrentControlSetServicesMsLbfoProviderParametersNdisAdapters_
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00409790
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x478], ebx
call fcn.00408200
mov eax, dword [esp + 0x48]
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jae 0x50e7e0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x50e811
cmp dword [esp + 0x5c], esi
jb 0x50e80a
mov edx, dword [esp + 0x48]
push edx
call fcn.00595eb8
add esp, 4
xor eax, eax
jmp 0x50e8ee
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea esp, [esp]
push 0x400
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.005b5540
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x74]
push edx
push esi
push eax
mov dword [esp + 0x38], 0x400
call edi
cmp eax, ebx
jne 0x50e8ca
lea eax, [esp + 0x60]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x50e870
sub eax, edx
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x24]
call fcn.00409790
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
mov byte [esp + 0x474], 1
call fcn.0045a3e0
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x46c], bl
jb 0x50e8be
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00595eb8
add esp, 4
add esi, 1
cmp esi, 0x20
jl 0x50e820
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x5c], 0x10
jb 0x50e8e9
mov eax, dword [esp + 0x48]
push eax
call fcn.00595eb8
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.005b1988
add esp, 0x45c
ret
Function at 0x514ae0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x24
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push 1
push eax
call fcn.00501110
mov eax, dword [esp + 0x10]
add esp, 8
cmp dword [esp + 0x1c], 0x10
jae 0x514b0c
lea eax, [esp + 8]
push 0
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
call fcn.005b7149
add esp, 0x14
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x514b57
cmp dword [esp + 0x1c], 0x10
jb 0x514b43
mov eax, dword [esp + 8]
push eax
call fcn.00595eb8
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005b1988
add esp, 0x24
ret
cmp dword [esp + 0x1c], 0x10
jb 0x514b6b
mov ecx, dword [esp + 8]
push ecx
call fcn.00595eb8
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, esp
xor eax, eax
call fcn.005b1988
add esp, 0x24
ret
Function at 0x514b80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5d1821
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x480]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x71]
push ebx
push eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0x78], bl
call fcn.005b5540
add esp, 0xc
push 0x400
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x6c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x514bf6
mov edx, dword [str.yw_]
mov cl, byte [0x5f58b8]
mov dword [eax], edx
mov byte [eax + 4], cl
call fcn.004ff5a0
test eax, eax
mov esi, 0xf
jne 0x514c2c
call fcn.004ff5a0
test eax, eax
je 0x514d3b
lea eax, [esp + 0x6c]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x514c40
sub eax, edx
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x58]
call fcn.00409790
push 8
push str.syswow64
lea ecx, [esp + 0x38]
mov dword [esp + 0x480], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00409790
push 8
push str.system32
lea ecx, [esp + 0x1c]
mov byte [esp + 0x480], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00409790
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x484], 2
call fcn.004fc450
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x2c], edi
jb 0x514cd8
mov eax, dword [esp + 0x18]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x514cf7
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00595eb8
add esp, 4
mov edi, dword [esp + 0x68]
cmp edi, 0x10
mov ecx, dword [esp + 0x54]
jae 0x514d08
lea ecx, [esp + 0x54]
lea edx, [esp + 0x6c]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x514d10
cmp edi, 0x10
mov dword [esp + 0x478], 0xffffffff
jb 0x514d3b
mov edx, dword [esp + 0x54]
push edx
call fcn.00595eb8
add esp, 4
lea eax, [esp + 0x6c]
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea edx, [eax + 1]
jmp 0x514d50
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x514d50
sub eax, edx
push eax
lea eax, [esp + 0x70]
push eax
mov ecx, ebp
call fcn.00409790
mov eax, ebp
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.005b1988
add esp, 0x468
ret
Function at 0x514da0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push ebp
mov ebp, dword [esp + 0x814]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x411]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x418], bl
call fcn.005b5540
mov edx, dword [0x5f58c0]
mov eax, dword [0x5f58c4]
mov ecx, dword [str.qatchelient.ini]
push 0x3ef
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x5f58c8]
mov dword [esp + 0x20], edx
mov dl, byte [0x5f58cc]
lea eax, [esp + 0x2d]
push ebx
push eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], dl
call fcn.005b5540
add esp, 0x18
push 0x400
lea ecx, [esp + 0x410]
push ecx
mov byte [esp + 0x15], 0x77
mov byte [esp + 0x1a], 0x63
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0xc]
mov edx, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x514e44
push esi
push edi
lea edi, [esp + 0x414]
sub eax, edx
add edi, 0xffffffff
jmp 0x514e60
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x514e60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x414]
pop edi
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x514e93
sub eax, edx
push eax
lea edx, [esp + 0x410]
push edx
mov ecx, ebp
call fcn.00409790
mov ecx, dword [esp + 0x80c]
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.005b1988
add esp, 0x808
ret
Function at 0x515210
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d18e8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.004ff4e0
test eax, eax
je 0x5153b6
push edi
call fcn.0051ae10
add esp, 4
test eax, eax
je 0x5153b6
xor ebx, ebx
mov eax, edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x515290
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.00409790
push 1
push 0x5f4230
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], ebx
call fcn.004080f0
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x5152c0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004080f0
mov ebp, dword [esp + 0x78]
cmp ebp, ebx
je 0x51532f
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x51532f
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x5152f5
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.0051afa0
add esp, 8
push ebx
push esi
lea ecx, [esp + 0x40]
call fcn.00425e70
cmp eax, 0xffffffff
lea ecx, [esp + 0x38]
je 0x51532a
call fcn.0040bf30
lea ecx, [esp + 0x1c]
call fcn.0040bf30
jmp 0x5153b6
call fcn.0040bf30
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and eax, 0xfffffff8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp ebp, ebx
mov eax, dword [esp + 0x20]
je 0x515363
cmp dword [esp + 0x34], 0x10
jae 0x515356
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x14]
push ecx
push eax
call fcn.0051aed0
jmp 0x515394
mov ebx, 0x10
cmp dword [esp + 0x34], ebx
jae 0x515372
lea eax, [esp + 0x20]
push eax
call fcn.00504080
mov eax, dword [esp + 0x24]
add esp, 4
cmp dword [esp + 0x34], ebx
jae 0x515389
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.0051ae40
add esp, 8
or esi, 7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x34], 0x10
jb 0x5153b6
mov eax, dword [esp + 0x20]
push eax
call fcn.00595eb8
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005b1988
add esp, 0x50
ret
Function at 0x5157f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d1966
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x10c]
xor ebx, ebx
xor edi, edi
cmp esi, ebx
je 0x5158ef
cmp byte [esi], bl
je 0x5158ef
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x5159a3
push 0x40
lea eax, [esp + 0xbc]
push ebx
push eax
call fcn.005b5540
movsx ecx, byte [esi]
push ecx
lea edx, [esp + 0xc8]
push 0x5f5980
push edx
call fcn.005b1b4c
add esp, 0x18
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5159a3
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 8
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push 0x2d0c14
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x5158e3
cmp byte [esp + 0x14], bl
jne 0x5158de
cmp byte [esp + 0x16], bl
je 0x5158e3
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5159a3
push 1
push 2
lea ecx, [esp + 0x40]
call fcn.0040b040
lea eax, [esp + 0x38]
push 0x5f5970
push eax
mov dword [esp + 0x10c], ebx
call fcn.00409b60
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004094f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x104], 1
jb 0x51593a
mov eax, dword [eax + 4]
jmp 0x51593d
add eax, 4
push eax
push str.IsUSBHardDrives
push 0x1ba
push str..ywSMPpubDeviceOnlyId.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x34], esi
jb 0x515971
mov edx, dword [esp + 0x20]
push edx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x104], 0xffffffff
call fcn.00409e00
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.005b1988
add esp, 0xf8
ret